Skip to content

Commit f2b6490

Browse files
committed
Make method compatible with phpunit 5 and 6
1 parent 9bc5675 commit f2b6490

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Github/Tests/Api/Repository/ContentsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ public function getFailureStubsForExistsTest()
6767
}
6868

6969
/**
70+
* @param \PHPUnit_Framework_MockObject_Stub|\PHPUnit\Framework\MockObject\Stub\Exception
71+
*
7072
* @test
7173
* @dataProvider getFailureStubsForExistsTest
7274
*/
73-
public function shouldReturnFalseWhenFileIsNotFound(\PHPUnit_Framework_MockObject_Stub $failureStub)
75+
public function shouldReturnFalseWhenFileIsNotFound($failureStub)
7476
{
75-
$expectedValue = array('some-header' => 'value');
76-
7777
$api = $this->getApiMock();
7878
$api->expects($this->once())
7979
->method('head')

0 commit comments

Comments
 (0)