Skip to content

Commit

Permalink
Compatiblility with PHPUnit v5
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Apr 14, 2017
1 parent f778528 commit 6645b7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"react/promise": "^2.1 || ^1.2"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"phpunit/phpunit": "^5.0 || ^4.8",
"react/event-loop": "0.3.*|0.4.*",
"react/dns": "0.3.*|0.4.*",
"clue/socks-server": "^0.5.1",
Expand Down
2 changes: 1 addition & 1 deletion tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ClientTest extends TestCase
public function setUp()
{
$this->loop = React\EventLoop\Factory::create();
$this->connector = $this->getMock('React\SocketClient\ConnectorInterface');
$this->connector = $this->getMockBuilder('React\SocketClient\ConnectorInterface')->getMock();
$this->client = new Client('127.0.0.1:1080', $this->connector);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function expectCallableOnceParameter($type)
*/
protected function createCallableMock()
{
return $this->getMock('CallableStub');
return $this->getMockBuilder('CallableStub')->getMock();
}

protected function expectPromiseResolve($promise)
Expand Down

0 comments on commit 6645b7f

Please sign in to comment.