adapt code for php 5.3

This commit is contained in:
Nicolas Dermine 2018-02-06 09:30:24 +01:00
parent 623bd993d8
commit 12ad6fa865
1 changed files with 2 additions and 1 deletions

View File

@ -248,7 +248,8 @@ final class TemplateProcessorTest extends \PHPUnit\Framework\TestCase
$templatePath = 'test.docx';
$objWriter->save($templatePath);
$variableCount = (new TemplateProcessor($templatePath))->getVariableCount();
$templateProcessor = new TemplateProcessor($templatePath);
$variableCount = $templateProcessor->getVariableCount();
unlink($templatePath);
$this->assertEquals(