Skip to content

Commit 84c010e

Browse files
committed
Forward compatibility with PHPUnit v5
1 parent 3ea5e32 commit 84c010e

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
@@ -22,6 +22,6 @@
2222
},
2323
"require-dev": {
2424
"clue/block-react": "~1.0",
25-
"phpunit/phpunit": "^4.8"
25+
"phpunit/phpunit": "^5.0 || ^4.8"
2626
}
2727
}

tests/FactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testCancelCreateClientWithCancellableHostnameResolver()
162162

163163
public function testCancelCreateClientWithUncancellableHostnameResolver()
164164
{
165-
$promise = $this->getMock('React\Promise\PromiseInterface');
165+
$promise = $this->getMockBuilder('React\Promise\PromiseInterface')->getMock();
166166
$this->resolver->expects($this->once())->method('resolve')->with('example.com')->willReturn($promise);
167167

168168
$promise = $this->factory->createClient('example.com:0');

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function expectCallableNever()
2626

2727
protected function createCallableMock()
2828
{
29-
return $this->getMock('CallableStub');
29+
return $this->getMockBuilder('CallableStub')->getMock();
3030
}
3131

3232
protected function createResolverMock()

0 commit comments

Comments
 (0)