mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
phpunit fix
This commit is contained in:
@@ -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']);
|
||||||
|
|||||||
Reference in New Issue
Block a user