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