public function testLexingException(array $lexerDefinition, $input, $expectedExceptionMessage)
{
$this->setExpectedException('Phlexy\\LexingException', $expectedExceptionMessage);
$lexer = $this->createLexerFactory()->createLexer($lexerDefinition, '');
$lexer->lex($input);
}