php-src/ext/xsl/tests/xsltprocessor_importStylesheet-invalidparam.phpt
Nikita Popov 39131219e8
Migrate more SKIPIF -> EXTENSIONS (#7139)
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00

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