change with-micro-ext-test to without

This commit is contained in:
crazywhalecc
2024-01-29 10:04:21 +08:00
committed by Jerry Ma
parent 9ee7d7769a
commit 0b1a321615
4 changed files with 14 additions and 7 deletions

View File

@@ -369,8 +369,10 @@ abstract class BuilderBase
foreach ($this->getExts() as $ext) {
$ext_name = $ext->getDistName();
$php .= "echo 'Running micro with {$ext_name} test' . PHP_EOL;\n";
$php .= "assert(extension_loaded('{$ext_name}'));\n\n";
if (!empty($ext_name)) {
$php .= "echo 'Running micro with {$ext_name} test' . PHP_EOL;\n";
$php .= "assert(extension_loaded('{$ext_name}'));\n\n";
}
}
$php .= "echo '[micro-test-end]';\n";
return $php;