mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
phpunit fix
This commit is contained in:
parent
f8801e224f
commit
487980c9a8
@ -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',
|
||||||
|
|||||||
@ -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']);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user