1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext/xsl/tests/xsltprocessor_transformToDoc_no_stylesheet.phpt
T
2021-06-14 14:52:44 +02:00

20 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