Skip to content

Commit ec23a9c

Browse files
committed
Weirdness in One Test for Phpunit 9 (Php7.* and Php8.0)
PhpWordTest tries to save as if it were a browser even though that is not the case. This causes a problem for Phpunit 9 (Php 7.* or 8.0) if not run in separate process. So let it run separate. No harm for Php8.1+, except for a slight performance penalty.
1 parent c7f6a80 commit ec23a9c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/PhpWordTests/PhpWordTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,14 @@ public function testAddTitleStyle(): void
157157
}
158158

159159
/**
160-
* Test save.
160+
* Weird test - tries to save as if it were a browser even though that
161+
* is not the case. This causes a problem for Phpunit 9 (Php 7.* or 8.0)
162+
* if not run in separate process. So let it run separate. No harm
163+
* for Php8.1+, except for a slight performance penalty.
164+
*
165+
* @runInSeparateProcess
166+
*
167+
* @preserveGlobalState disabled
161168
*/
162169
public function testSave(): void
163170
{

0 commit comments

Comments
 (0)