Skip to content

Commit

Permalink
testLexerThrowsExceptionIfArrayIsNotValid
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Jun 1, 2014
1 parent ddaa326 commit e57d0d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Concise/Syntax/LexerTest.php
Expand Up @@ -129,4 +129,14 @@ public function testLexerThrowsExceptionIfSingleQuotedStringIsNotClosed()
$lexer = new Lexer();
$result = $lexer->parse("'abc");
}

/**
* @expectedException \Exception
* @expectedExceptionMessage Invalid array.
*/
public function testLexerThrowsExceptionIfArrayIsNotValid()
{
$lexer = new Lexer();
$result = $lexer->parse('[abc');
}
}

0 comments on commit e57d0d1

Please sign in to comment.