Skip to content

Commit 3a5543e

Browse files
committed
fix tests on php 7.2
1 parent 67ad74e commit 3a5543e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/Unit/Parsing/ParserStateTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ public function consumeWhiteSpaceStopsAtNonWhitespace(string $nonWhitespace, str
309309
*/
310310
public function constructorThrowsForTextThatIsNotValidUtf8(): void
311311
{
312+
if (\PHP_VERSION_ID < 70304) {
313+
self::markTestSkipped('preg_split returns false for invalid UTF-8 since PHP 7.3.4 (https://bugs.php.net/76127)');
314+
}
315+
312316
$this->expectException(\RuntimeException::class);
313317
$this->expectExceptionMessage('Unexpected error');
314318

0 commit comments

Comments
 (0)