We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d3e91c + 3114a12 commit 2a9970fCopy full SHA for 2a9970f
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