Notes on error control usage were added.
This commit is contained in:
Roman Syroeshko 2014-03-04 14:36:39 +04:00
parent b765312469
commit 670765f80f

View File

@ -36,6 +36,10 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase
array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl'))
);
/*
* We have to use error control below, because XSLTProcessor::setParameter omits warning on failure.
* This warning fails the test.
*/
@$template->applyXslStyleSheet($xslDOMDocument, array(1 => 'somevalue'));
}
@ -58,6 +62,10 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase
array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl'))
);
/*
* We have to use error control below, because DOMDocument::loadXML omits warning on failure.
* This warning fails the test.
*/
@$template->applyXslStyleSheet($xslDOMDocument);
}
}