1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/xsl/tests/xsltprocessor_importStylesheet-invalidparam.phpt
T
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

19 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