Skip to content

Commit f7ad25f

Browse files
symeoncmb69
authored andcommitted
Test XSLTProcessor::importStylesheet() with invalid stylesheet
1 parent 767a77a commit f7ad25f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
XSLTProcessor::importStylesheet() - Test with invalid stylesheet
3+
--SKIPIF--
4+
<?php
5+
if (!extension_loaded('xsl')) {
6+
exit('Skip - XSL extension not loaded');
7+
}
8+
?>
9+
--FILE--
10+
<?php
11+
12+
$xslt = new XSLTProcessor();
13+
$dummy = new stdClass();
14+
var_dump($xslt->importStylesheet($dummy));
15+
16+
?>
17+
--EXPECTF--
18+
Warning: Invalid Document in %s on line %d
19+
bool(false)

0 commit comments

Comments
 (0)