8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Timer
1 parent 75bead6 commit b048bd7Copy full SHA for b048bd7
tests/Timer/TimersTest.php
@@ -2,7 +2,6 @@
2
3
namespace React\Tests\EventLoop\Timer;
4
5
-use React\EventLoop\TimerInterface;
6
use React\Tests\EventLoop\TestCase;
7
use React\EventLoop\Timer\Timer;
8
use React\EventLoop\Timer\Timers;
@@ -30,10 +29,8 @@ public function testContains()
30
29
{
31
$timers = new Timers();
32
33
- /** @var TimerInterface $timer1 */
34
- $timer1 = $this->createMock('React\EventLoop\TimerInterface');
35
- /** @var TimerInterface $timer2 */
36
- $timer2 = $this->createMock('React\EventLoop\TimerInterface');
+ $timer1 = new Timer(0.1, function () {});
+ $timer2 = new Timer(0.1, function () {});
37
38
$timers->add($timer1);
39
0 commit comments