1--TEST--
2XSLTProcessor::importStylesheet() - Test with invalid stylesheet
3--SKIPIF--
4<?php
5if (!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();
14try {
15    var_dump($xslt->importStylesheet($dummy));
16} catch (ValueError $e) {
17    echo $e->getMessage(), "\n";
18}
19
20?>
21--EXPECT--
22XSLTProcessor::importStylesheet(): Argument #1 ($stylesheet) must be a valid XML node
23