From bdcbd149e7809b580dce978daa56662fa538a2f5 Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Mon, 3 Mar 2014 17:03:09 +0400 Subject: [PATCH] https://github.com/PHPOffice/PHPWord/issues/46 FIXED (again): compatibility with PHP 5.3. FIXED (again): misprint in method name. --- Tests/PHPWord/TemplateTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/PHPWord/TemplateTest.php b/Tests/PHPWord/TemplateTest.php index d80b1bbd..c821323b 100644 --- a/Tests/PHPWord/TemplateTest.php +++ b/Tests/PHPWord/TemplateTest.php @@ -23,7 +23,7 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase * @expectedExceptionMessage Could not set values for the given XSL style sheet parameters. * @test */ - final public function testXsLStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue() + final public function testXslStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue() { $template = new PHPWord_Template( \join(\DIRECTORY_SEPARATOR, @@ -36,7 +36,7 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl')) ); - @$template->applyXslStyleSheet($xslDOMDocument, [1 => 'somevalue']); + @$template->applyXslStyleSheet($xslDOMDocument, array(1 => 'somevalue')); } /**