phpunit fix

This commit is contained in:
crazywhalecc 2025-10-20 13:48:52 +08:00
parent f8801e224f
commit 487980c9a8
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,6 @@ class ConfigValidatorTest extends TestCase
'filename' => 'test.tar.gz', 'filename' => 'test.tar.gz',
'path' => 'test/path', 'path' => 'test/path',
'provide-pre-built' => true, 'provide-pre-built' => true,
'prefer-stable' => false,
'license' => [ 'license' => [
'type' => 'file', 'type' => 'file',
'path' => 'LICENSE', 'path' => 'LICENSE',

View File

@ -44,6 +44,9 @@ class SPCConfigUtilTest extends TestCase
public function testConfig(): void public function testConfig(): void
{ {
if (PHP_OS_FAMILY !== 'Linux') {
$this->markTestSkipped('SPCConfigUtil tests are only applicable on Linux.');
}
// normal // normal
$result = (new SPCConfigUtil())->config(['bcmath']); $result = (new SPCConfigUtil())->config(['bcmath']);
$this->assertStringContainsString(BUILD_ROOT_PATH . '/include', $result['cflags']); $this->assertStringContainsString(BUILD_ROOT_PATH . '/include', $result['cflags']);