8000 Switch to mock builder as it works across all PHPUnit versions. · Undefined-Variables/event-loop@680f267 · GitHub
[go: up one dir, main page]

Skip to content

Commit 680f267

Browse files
committed
Switch to mock builder as it works across all PHPUnit versions.
1 parent 41f4723 commit 680f267

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/TestCase.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ protected function expectCallableNever()
3636

3737
protected function createCallableMock()
3838
{
39-
$stub = 'React\Tests\EventLoop\CallableStub';
40-
41-
if (method_exists($this, 'createMock')) {
42-
return $this->createMock($stub);
43-
}
44-
45-
return $this->getMock($stub);
39+
return $this->getMockBuilder('React\Tests\EventLoop\CallableStub')->getMock();
4640
}
4741
}

0 commit comments

Comments
 (0)
0