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 b048bd7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/Timer/TimersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace React\Tests\EventLoop\Timer;

use React\EventLoop\TimerInterface;
use React\Tests\EventLoop\TestCase;
use React\EventLoop\Timer\Timer;
use React\EventLoop\Timer\Timers;
Expand Down Expand Up @@ -30,10 +29,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 b048bd7

Please sign in to comment.