Skip to content

Commit a3a6d77

Browse files
authored
Merge pull request #654 from acrobat/phpunit6-test-fix
Make test compatible with phpunit 5 and 6
2 parents 9bc5675 + f2b6490 commit a3a6d77

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)