summaryrefslogtreecommitdiff
path: root/ext/xsl/tests/xsltprocessor_transformToDoc_no_stylesheet.phpt
blob: c590b694fa005356a88ac739e97f11b277107592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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