diff --git a/test/Github/Tests/Api/Repository/ContentsTest.php b/test/Github/Tests/Api/Repository/ContentsTest.php index be930ab1a00..a8cc4098005 100644 --- a/test/Github/Tests/Api/Repository/ContentsTest.php +++ b/test/Github/Tests/Api/Repository/ContentsTest.php @@ -53,7 +53,7 @@ public function shouldReturnTrueWhenFileExists() ->with('/repos/KnpLabs/php-github-api/contents/composer.json', array('ref' => null)) ->will($this->returnValue($response)); - $this->assertEquals(true, $api->exists('KnpLabs', 'php-github-api', 'composer.json')); + $this->assertTrue($api->exists('KnpLabs', 'php-github-api', 'composer.json')); } public function getFailureStubsForExistsTest() diff --git a/test/Github/Tests/Integration/RepoTest.php b/test/Github/Tests/Integration/RepoTest.php index 050c5575ab9..90328b909aa 100644 --- a/test/Github/Tests/Integration/RepoTest.php +++ b/test/Github/Tests/Integration/RepoTest.php @@ -21,7 +21,7 @@ public function shouldShowPRDiffIfHeaderIsPresent() $diff = $this->client->api('pull_request')->show('KnpLabs', 'php-github-api', '92'); - $this->assertTrue('string' === gettype($diff)); + $this->assertInternalType('string', $diff); } /** diff --git a/test/Github/Tests/ResultPagerTest.php b/test/Github/Tests/ResultPagerTest.php index e72c1b3e092..17be7278ffa 100644 --- a/test/Github/Tests/ResultPagerTest.php +++ b/test/Github/Tests/ResultPagerTest.php @@ -52,7 +52,7 @@ public function shouldGetAllResults() $paginator = new ResultPager($client); $result = $paginator->fetchAll($memberApi, $method, $parameters); - $this->assertEquals($amountLoops * count($content), count($result)); + $this->assertCount($amountLoops * count($content), $result); } /** @@ -94,7 +94,7 @@ public function shouldGetAllSearchResults() $paginator = new ResultPager($client); $result = $paginator->fetchAll($searchApi, $method, array('knplabs')); - $this->assertEquals($amountLoops * count($content['items']), count($result)); + $this->assertCount($amountLoops * count($content['items']), $result); } public function testFetch()