add test case for issue #1253

This commit is contained in:
Martin Hanzl 2018-10-11 09:40:12 +02:00
parent 7f55816eba
commit 7eb19c8f76
2 changed files with 10 additions and 0 deletions

View File

@ -276,4 +276,14 @@ final class TemplateProcessorTest extends \PHPUnit\Framework\TestCase
);
}
}
public function testMainPartNameDetection()
{
$templatePath = 'templates/document22-xml.docx';
$templateProcessor = new TemplateProcessor($templatePath);
$variables = array('test');
$this->assertEquals($variables, $templateProcessor->getVariables());
}
}

Binary file not shown.