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/bootstrap.php | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/tests/Lexer/LexerTest.php b/tests/Lexer/LexerTest.php index 8893d7b..5e4b42e 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 0d0cd97..8f02944 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/bootstrap.php b/tests/bootstrap.php index 3c3c446..d37e4c4 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -11,6 +11,8 @@ use SqlParser\Parser; require_once 'vendor/autoload.php'; +$GLOBALS['lang'] = 'en'; + /** * Implements useful methods for testing. * |