mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-12 07:29:45 +00:00
adjust phpstan memory, small phpstan fixes added HostResolverTest
This commit is contained in:
@@ -146,7 +146,7 @@ class TarBuilderTest extends TestCase
|
||||
mkdir($extractDir);
|
||||
$this->extractTar($tarPath, $extractDir);
|
||||
|
||||
$scanned = array_diff(scandir($extractDir), ['.', '..']);
|
||||
$scanned = array_diff(scandir($extractDir) ?: [], ['.', '..']);
|
||||
$this->assertCount(0, $scanned, 'Expected empty directory');
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ class TarBuilderTest extends TestCase
|
||||
mkdir($extractDir);
|
||||
$this->extractTar($tarPath, $extractDir);
|
||||
|
||||
$scanned = array_diff(scandir($extractDir), ['.', '..']);
|
||||
$scanned = array_diff(scandir($extractDir) ?: [], ['.', '..']);
|
||||
$this->assertCount(0, $scanned, 'Expected no files after clear()');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user