Add php and lib-base as special libraries to add dependencies to the root node (#618)

* Remove E_STRICT

* Add lib-base and php as special libs

* Remove debug code

* Fix phpunit with new config structure

* Fix phpunit test and fix license dumper bug for new type of lib

* Add missing lib type filter for windows builder
This commit is contained in:
Jerry Ma
2025-03-08 14:29:44 +08:00
committed by GitHub
parent 15c7e41501
commit d30d1fc447
18 changed files with 138 additions and 34 deletions

View File

@@ -71,7 +71,7 @@ class ExtensionTest extends TestCase
public function testRunCliCheckWindows()
{
if (is_unix()) {
$this->markTestIncomplete('This test is for Windows only');
$this->markTestSkipped('This test is for Windows only');
} else {
$this->extension->runCliCheckWindows();
$this->assertTrue(true);

View File

@@ -26,7 +26,7 @@ class UnixSystemUtilTest extends TestCase
default => null,
};
if ($util_class === null) {
self::markTestIncomplete('This test is only for Unix');
self::markTestSkipped('This test is only for Unix');
}
$this->util = new $util_class();
}

View File

@@ -29,6 +29,8 @@ final class DependencyUtilTest extends TestCase
],
];
Config::$lib = [
'lib-base' => ['type' => 'root'],
'php' => ['type' => 'root'],
'libaaa' => [
'source' => 'test1',
'static-libs' => ['libaaa.a'],

View File

@@ -34,6 +34,8 @@ final class LicenseDumperTest extends TestCase
public function testDumpWithSingleLicense(): void
{
Config::$lib = [
'lib-base' => ['type' => 'root'],
'php' => ['type' => 'root'],
'fake_lib' => [
'source' => 'fake_lib',
],
@@ -57,6 +59,8 @@ final class LicenseDumperTest extends TestCase
public function testDumpWithMultipleLicenses(): void
{
Config::$lib = [
'lib-base' => ['type' => 'root'],
'php' => ['type' => 'root'],
'fake_lib' => [
'source' => 'fake_lib',
],