From 379e5ce2e87ac94e20d30e5301e8d3cb559221dd Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Fri, 7 Mar 2014 18:04:44 +0400 Subject: [PATCH] https://github.com/PHPOffice/PHPWord/issues/46 Positive test fix. --- 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 77f1ee4e..8ad6c145 100644 --- a/Tests/PHPWord/TemplateTest.php +++ b/Tests/PHPWord/TemplateTest.php @@ -41,14 +41,14 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase $actualZip = new \ZipArchive(); $actualZip->open($actualDocument); - $actualXml = $zip->getFromName('word/document.xml'); + $actualXml = $actualZip->getFromName('word/document.xml'); if ($actualZip->close() === false) { throw new \Exception('Could not close zip file "' . $actualDocument . '".'); } $expectedZip = new \ZipArchive(); $expectedZip->open($expectedDocument); - $expectedXml = $zip->getFromName('word/document.xml'); + $expectedXml = $expectedZip->getFromName('word/document.xml'); if ($expectedZip->close() === false) { throw new \Exception('Could not close zip file "' . $expectedDocument . '".'); }