Skip to content

Commit cdeecae

Browse files
committed
Set back test case to default language 'en' to avoid using LC_ALL=C on the phpunit cli
Was removed in 7531639 Signed-off-by: William Desportes <[email protected]>
1 parent aeccfec commit cdeecae

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/TestCase.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323
*/
2424
abstract class TestCase extends BaseTestCase
2525
{
26+
public function setUp(): void
27+
{
28+
global $lang;
29+
// This line makes sure the test suite uses English so we can assert
30+
// on the error messages, if it is not here you will need to use
31+
// LC_ALL=C ./vendor/bin/phpunit
32+
// Users can have French language as default on their OS
33+
// That would make the assertions fail
34+
$lang = 'en';
35+
}
36+
2637
/**
2738
* Gets the token list generated by lexing this query.
2839
*

0 commit comments

Comments
 (0)