Skip to content

Commit f7feb8d

Browse files
committed
Compatibility with PHPUnit v5
1 parent 5a0683a commit f7feb8d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react/event-loop": "0.3.*|0.4.*"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "^4.8"
21+
"phpunit/phpunit": "^5.0 || ^4.8"
2222
},
2323
"autoload": {
2424
"psr-4": { "Clue\\React\\Ami\\": "src/" }

tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public function testUnexpectedResponseEmitsErrorAndClosesClient()
4545

4646
private function createStreamMock()
4747
{
48-
return new Stream(fopen('php://memory', 'r+'), $this->getMock('React\EventLoop\LoopInterface'));
48+
return new Stream(fopen('php://memory', 'r+'), $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock());
4949
}
5050
}

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function expectCallableOnce()
2727
*/
2828
protected function createCallableMock()
2929
{
30-
return $this->getMock('CallableStub');
30+
return $this->getMockBuilder('CallableStub')->getMock();
3131
}
3232
}
3333

0 commit comments

Comments
 (0)