1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00
Files
archived-php-src/ext/xsl/tests/xsltprocessor_importStylesheet-invalidparam.phpt
2020-04-24 10:12:50 +02:00

20 lines
358 B
PHP

--TEST--
XSLTProcessor::importStylesheet() - Test with invalid stylesheet
--SKIPIF--
<?php
if (!extension_loaded('xsl')) {
exit('Skip - XSL extension not loaded');
}
?>
--FILE--
<?php
$xslt = new XSLTProcessor();
$dummy = new stdClass();
var_dump($xslt->importStylesheet($dummy));
?>
--EXPECTF--
Warning: Invalid Document in %s on line %d
bool(false)