Skip to content

Commit 2a9970f

Browse files
authored
Merge pull request #31 from clue-labs/loop
Fix test suite forward compatibility with upcoming EventLoop releases
2 parents 2d3e91c + 3114a12 commit 2a9970f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tests/FunctionResolveTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testCancellingPromiseWillCancelLoopTimer()
5050
{
5151
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
5252

53-
$timer = $this->getMockBuilder('React\EventLoop\Timer\TimerInterface')->getMock();
53+
$timer = $this->getMockBuilder(interface_exists('React\EventLoop\TimerInterface') ? 'React\EventLoop\TimerInterface' : 'React\EventLoop\Timer\TimerInterface')->getMock();
5454
$loop->expects($this->once())->method('addTimer')->will($this->returnValue($timer));
5555

5656
$promise = Timer\resolve(0.01, $loop);

0 commit comments

Comments
 (0)