mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
17 lines
348 B
PHP
17 lines
348 B
PHP
--TEST--
|
|
Calling XSLTProcessor::transformToDoc() without stylesheet
|
|
--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
|