diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Lexer/LexerTest.php | 6 | ||||
-rw-r--r-- | tests/Parser/ParserTest.php | 6 | ||||
-rw-r--r-- | tests/TestCase.php | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/tests/Lexer/LexerTest.php b/tests/Lexer/LexerTest.php index 56eaa6e..91ddb6c 100644 --- a/tests/Lexer/LexerTest.php +++ b/tests/Lexer/LexerTest.php @@ -16,9 +16,9 @@ class LexerTest extends TestCase { $lexer = new Lexer(''); - $lexer->error(__('error #1'), 'foo', 1, 2); + $lexer->error('error #1', 'foo', 1, 2); $lexer->error( - sprintf(__('%2$s #%1$d'), 2, 'error'), + sprintf('%2$s #%1$d', 2, 'error'), 'bar', 3, 4 @@ -43,7 +43,7 @@ class LexerTest extends TestCase $lexer = new Lexer(''); $lexer->strict = true; - $lexer->error(__('strict error'), 'foo', 1, 4); + $lexer->error('strict error', 'foo', 1, 4); } /** diff --git a/tests/Parser/ParserTest.php b/tests/Parser/ParserTest.php index 9de423a..cf83f3e 100644 --- a/tests/Parser/ParserTest.php +++ b/tests/Parser/ParserTest.php @@ -53,8 +53,8 @@ class ParserTest extends TestCase { $parser = new Parser(new TokensList()); - $parser->error(__('error #1'), new Token('foo'), 1); - $parser->error(sprintf(__('%2$s #%1$d'), 2, 'error'), new Token('bar'), 2); + $parser->error('error #1', new Token('foo'), 1); + $parser->error(sprintf('%2$s #%1$d', 2, 'error'), new Token('bar'), 2); $this->assertEquals( $parser->errors, @@ -75,6 +75,6 @@ class ParserTest extends TestCase $parser = new Parser(new TokensList()); $parser->strict = true; - $parser->error(__('strict error'), new Token('foo'), 3); + $parser->error('strict error', new Token('foo'), 3); } } diff --git a/tests/TestCase.php b/tests/TestCase.php index a3bde76..824beb4 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -10,6 +10,8 @@ use PhpMyAdmin\SqlParser\Lexer; use PhpMyAdmin\SqlParser\Parser; use PhpMyAdmin\SqlParser\TokensList; +$GLOBALS['lang'] = 'en'; + /** * Implements useful methods for testing. * |