Skip to content

Commit acf64a4

Browse files
committed
Fix failing test between PHP 7.4.0 and PHP 7.4.7
1 parent 6651192 commit acf64a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/FunctionalFactoryTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ public function testOpenReturnsPromiseWhichRejectsWithExceptionWhenPathIsInvalid
6161
echo 'Error: ' . $e->getMessage() . PHP_EOL;
6262
});
6363

64-
$this->expectOutputString('Error: Unable to open database: unable to open database file' . PHP_EOL);
64+
// Unable to open database: unable to open database file
65+
// Unable to open database: bad parameter or other API misuse (only between PHP 7.4.0 and PHP 7.4.7 as per https://3v4l.org/9SjgK)
66+
$this->expectOutputRegex('/^' . preg_quote('Error: Unable to open database: ', '/') . '.*$/');
6567
Loop::run();
6668
}
6769

0 commit comments

Comments
 (0)