Skip to content

Commit c790a63

Browse files
committed
Compatiblility with PHPUnit v5
1 parent 1d5d370 commit c790a63

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"ringcentral/psr7": "^1.2"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^4.8",
28+
"phpunit/phpunit": "^5.0 || ^4.8",
2929
"react/socket-client": "^0.5",
3030
"clue/block-react": "^1.1"
3131
}

tests/AbstractTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function expectCallableOnceParameter($type)
5353
*/
5454
protected function createCallableMock()
5555
{
56-
return $this->getMock('Tests\\Clue\\React\\HttpProxy\\CallableStub');
56+
return $this->getMockBuilder('Tests\\Clue\\React\\HttpProxy\\CallableStub')->getMock();
5757
}
5858
}
5959

tests/ProxyConnectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ProxyConnectorTest extends AbstractTestCase
1212

1313
public function setUp()
1414
{
15-
$this->connector = $this->getMock('React\SocketClient\ConnectorInterface');
15+
$this->connector = $this->getMockBuilder('React\SocketClient\ConnectorInterface')->getMock();
1616
}
1717

1818
/**

0 commit comments

Comments
 (0)