Skip to content

Commit b0e6329

Browse files
committed
test: remove unneeded assertSame()
PHPStan reports false positive because of this code.
1 parent 5218f33 commit b0e6329

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/libaries/GitHubTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,12 @@ public function testServiceUsesConfig()
9393

9494
public function testLiveUsesCache()
9595
{
96-
$this->assertSame([], cache()->getCacheInfo());
97-
9896
$github = service('github', null, null, false);
9997
$github->getCommit(['bcit-ci', 'CodeIgniter', '0199f68db46d375af2d4cb831c679d3040601f25']);
10098

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

103-
$this->assertNotSame([], $result); // @phpstan-ignore-line
101+
$this->assertNotSame([], $result);
104102
$this->assertCount(1, $result);
105103
}
106104

0 commit comments

Comments
 (0)