Skip to content

Commit

Permalink
Using a real Timer instance, since pre-historic PHPUnit versions ar…
Browse files Browse the repository at this point in the history
…e being used in CI
  • Loading branch information
Ocramius committed Jun 13, 2018
1 parent 75bead6 commit d83c940
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/Timer/TimersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ public function testContains()
{
$timers = new Timers();

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

$timers->add($timer1);

Expand Down

0 comments on commit d83c940

Please sign in to comment.