1--TEST--
2Calling XSLTProcessor::transformToDoc() without stylesheet
3--EXTENSIONS--
4xsl
5--FILE--
6<?php
7
8$doc = new DOMDocument('1.0', 'utf-8');
9
10$xsl = new XSLTProcessor;
11try {
12    $xsl->transformToDoc($doc);
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16
17?>
18--EXPECT--
19XSLTProcessor::transformToDoc() can only be called after a stylesheet has been imported
20