From f2b649098f87b944f7171104cf4122bfc024b10b Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Sat, 9 Dec 2017 23:15:33 +0100 Subject: [PATCH] Make method compatible with phpunit 5 and 6 --- test/Github/Tests/Api/Repository/ContentsTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Github/Tests/Api/Repository/ContentsTest.php b/test/Github/Tests/Api/Repository/ContentsTest.php index e14b3785b46..be930ab1a00 100644 --- a/test/Github/Tests/Api/Repository/ContentsTest.php +++ b/test/Github/Tests/Api/Repository/ContentsTest.php @@ -67,13 +67,13 @@ public function getFailureStubsForExistsTest() } /** + * @param \PHPUnit_Framework_MockObject_Stub|\PHPUnit\Framework\MockObject\Stub\Exception + * * @test * @dataProvider getFailureStubsForExistsTest */ - public function shouldReturnFalseWhenFileIsNotFound(\PHPUnit_Framework_MockObject_Stub $failureStub) + public function shouldReturnFalseWhenFileIsNotFound($failureStub) { - $expectedValue = array('some-header' => 'value'); - $api = $this->getApiMock(); $api->expects($this->once()) ->method('head')