mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
19 lines
367 B
PHP
19 lines
367 B
PHP
--TEST--
|
|
Calling XSLTProcessor::transformToDoc() without stylesheet
|
|
--EXTENSIONS--
|
|
xsl
|
|
--FILE--
|
|
<?php
|
|
|
|
$doc = new DOMDocument('1.0', 'utf-8');
|
|
|
|
$xsl = new XSLTProcessor;
|
|
try {
|
|
$xsl->transformToDoc($doc);
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
XSLTProcessor::transformToDoc() can only be called after a stylesheet has been imported
|