Skip to content

Commit 3114a12

Browse files
committedDec 22, 2017
Fix test suite forward compatibility with upcoming EventLoop releases
1 parent 8046965 commit 3114a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎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)
Please sign in to comment.