mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 08:15:39 +08:00
Fix PHPUnit test on Windows, ignore calling linux system util for other OS
This commit is contained in:
@@ -19,6 +19,10 @@ final class PkgConfigUtilTest extends TestCase
|
||||
|
||||
public static function setUpBeforeClass(): void
|
||||
{
|
||||
if (PHP_OS_FAMILY === 'Windows') {
|
||||
// Skip tests on Windows as pkg-config is not typically available
|
||||
self::markTestSkipped('PkgConfigUtil tests are not applicable on Windows.');
|
||||
}
|
||||
parent::setUpBeforeClass();
|
||||
|
||||
// Save original PATH
|
||||
|
||||
Reference in New Issue
Block a user