Skip to content

Commit d83c940

Browse files
committed
Using a real Timer instance, since pre-historic PHPUnit versions are being used in CI
1 parent 75bead6 commit d83c940

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/Timer/TimersTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ public function testContains()
3030
{
3131
$timers = new Timers();
3232

33-
/** @var TimerInterface $timer1 */
34-
$timer1 = $this->createMock('React\EventLoop\TimerInterface');
35-
/** @var TimerInterface $timer2 */
36-
$timer2 = $this->createMock('React\EventLoop\TimerInterface');
33+
$timer1 = new Timer(0.1, function () {});
34+
$timer2 = new Timer(0.1, function () {});
3735

3836
$timers->add($timer1);
3937

0 commit comments

Comments
 (0)