Skip to content

Commit b048bd7

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

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/Timer/TimersTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace React\Tests\EventLoop\Timer;
44

5-
use React\EventLoop\TimerInterface;
65
use React\Tests\EventLoop\TestCase;
76
use React\EventLoop\Timer\Timer;
87
use React\EventLoop\Timer\Timers;
@@ -30,10 +29,8 @@ public function testContains()
3029
{
3130
$timers = new Timers();
3231

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

3835
$timers->add($timer1);
3936

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy