Skip to content

Commit 379e5ce

Browse files
author
Roman Syroeshko
committed
https://github.com/PHPOffice/PHPWord/issues/46
Positive test fix.
1 parent 19636a0 commit 379e5ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PHPWord/TemplateTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ final public function testXslStyleSheetCanBeApplied()
4141

4242
$actualZip = new \ZipArchive();
4343
$actualZip->open($actualDocument);
44-
$actualXml = $zip->getFromName('word/document.xml');
44+
$actualXml = $actualZip->getFromName('word/document.xml');
4545
if ($actualZip->close() === false) {
4646
throw new \Exception('Could not close zip file "' . $actualDocument . '".');
4747
}
4848

4949
$expectedZip = new \ZipArchive();
5050
$expectedZip->open($expectedDocument);
51-
$expectedXml = $zip->getFromName('word/document.xml');
51+
$expectedXml = $expectedZip->getFromName('word/document.xml');
5252
if ($expectedZip->close() === false) {
5353
throw new \Exception('Could not close zip file "' . $expectedDocument . '".');
5454
}

0 commit comments

Comments
 (0)