mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
18 lines
378 B
PHP
18 lines
378 B
PHP
--TEST--
|
|
XSLTProcessor::importStylesheet() - Test with invalid stylesheet
|
|
--EXTENSIONS--
|
|
xsl
|
|
--FILE--
|
|
<?php
|
|
|
|
$xslt = new XSLTProcessor();
|
|
$dummy = new stdClass();
|
|
try {
|
|
var_dump($xslt->importStylesheet($dummy));
|
|
} catch (ValueError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
XSLTProcessor::importStylesheet(): Argument #1 ($stylesheet) must be a valid XML node
|