Skip to content

Commit

Permalink
test: remove unneeded assertSame()
Browse files Browse the repository at this point in the history
PHPStan reports false positive because of this code.
  • Loading branch information
kenjis committed Jul 2, 2024
1 parent 5218f33 commit b0e6329
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/libaries/GitHubTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,12 @@ public function testServiceUsesConfig()

public function testLiveUsesCache()
{
$this->assertSame([], cache()->getCacheInfo());

$github = service('github', null, null, false);
$github->getCommit(['bcit-ci', 'CodeIgniter', '0199f68db46d375af2d4cb831c679d3040601f25']);

$result = cache()->getCacheInfo();

$this->assertNotSame([], $result); // @phpstan-ignore-line
$this->assertNotSame([], $result);
$this->assertCount(1, $result);
}

Expand Down

0 comments on commit b0e6329

Please sign in to comment.