We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
reactphp
clue
WyriHaximus
Learn more about funding links in repositories.
Report abuse
1 parent 8046965 commit 3114a12Copy full SHA for 3114a12
tests/FunctionResolveTest.php
@@ -50,7 +50,7 @@ public function testCancellingPromiseWillCancelLoopTimer()
50
{
51
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
52
53
- $timer = $this->getMockBuilder('React\EventLoop\Timer\TimerInterface')->getMock();
+ $timer = $this->getMockBuilder(interface_exists('React\EventLoop\TimerInterface') ? 'React\EventLoop\TimerInterface' : 'React\EventLoop\Timer\TimerInterface')->getMock();
54
$loop->expects($this->once())->method('addTimer')->will($this->returnValue($timer));
55
56
$promise = Timer\resolve(0.01, $loop);
0 commit comments