Skip to content

Commit 36b63a1

Browse files
committed
skip test, because php 8.0 contain internally validation
1 parent 4b4dfb4 commit 36b63a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PhpWord/TemplateProcessorTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ final public function testXslStyleSheetCanBeApplied($actualDocumentFqfn)
140140
*/
141141
final public function testXslStyleSheetCanNotBeAppliedOnFailureOfSettingParameterValue()
142142
{
143+
// Test is not needed for PHP 8.0, because internally validation throws TypeError exception.
144+
if (\PHP_VERSION_ID >= 80000) {
145+
$this->markTestSkipped('not needed for PHP 8.0');
146+
}
147+
143148
$templateProcessor = new TemplateProcessor(__DIR__ . '/_files/templates/blank.docx');
144149

145150
$xslDomDocument = new \DOMDocument();

0 commit comments

Comments
 (0)