add test case for issue #1253
This commit is contained in:
parent
7f55816eba
commit
7eb19c8f76
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
BIN
tests/PhpWord/_files/templates/document22-xml.docx
Normal file
BIN
tests/PhpWord/_files/templates/document22-xml.docx
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user