/** * @expectedException SqlParser\Exceptions\LexerException * @expectedExceptionMessage strict error * @expectedExceptionCode 4 */ public function testErrorStrict() { $lexer = new Lexer(''); $lexer->strict = true; $lexer->error(__('strict error'), 'foo', 1, 4); }