diff --git a/Tests/PHPWord/TemplateTest.php b/Tests/PHPWord/TemplateTest.php index 748c8d77..7ea31f64 100644 --- a/Tests/PHPWord/TemplateTest.php +++ b/Tests/PHPWord/TemplateTest.php @@ -60,26 +60,4 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase @$template->applyXslStyleSheet($xslDOMDocument); } - - /** - * @covers ::applyXslStyleSheet - * @expectedException Exception - * @expectedExceptionMessage Could not transform the given XML document. - * @test - */ - final public function testXslStyleSheetCanNotBeAppliedOnFailureOfTransformation() - { - $template = new PHPWord_Template( - \join(\DIRECTORY_SEPARATOR, - array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'templates', 'empty_main_document_part.docx')) - ); - - $xslDOMDocument = new \DOMDocument(); - $xslDOMDocument->load( - \join(\DIRECTORY_SEPARATOR, - array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl')) - ); - - @$template->applyXslStyleSheet($xslDOMDocument); - } } \ No newline at end of file diff --git a/Tests/_files/templates/empty_main_document_part.docx b/Tests/_files/templates/empty_main_document_part.docx deleted file mode 100644 index f3ebe478..00000000 Binary files a/Tests/_files/templates/empty_main_document_part.docx and /dev/null differ