mirror of
https://github.com/php/php-src.git
synced 2026-04-20 14:31:06 +02:00
The reflection failure is because the XML extension is used to check the module dependency information, but that extension can be configured to not depend on ext/libxml, resulting in a different output. The solution is to check another extension instead. The test failures in ext/xml/tests are because of different behaviour between libxml2 and Expat error handling. These are expected differences and the solution is to split the tests. Closes GH-13522.
18 lines
275 B
PHP
18 lines
275 B
PHP
--TEST--
|
|
ReflectionExtension::getDependencies()
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$ext = new ReflectionExtension("dom");
|
|
$deps = $ext->getDependencies();
|
|
var_dump($deps);
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
["libxml"]=>
|
|
string(8) "Required"
|
|
["domxml"]=>
|
|
string(9) "Conflicts"
|
|
}
|