Phlexy\Lexer\TestAbstract::provideTestLexingException PHP Method

provideTestLexingException() public method

    public function provideTestLexingException()
    {
        return array(array(array('foo' => 0, 'bar' => 1), 'baz', 'Unexpected character "b" on line 1'), array(array('foo' => 0, 'bar' => 1), 'foobazbar', 'Unexpected character "b" on line 1'));
    }

Usage Example

Exemplo n.º 1
0
 public function provideTestLexingException()
 {
     $tests = parent::provideTestLexingException();
     foreach ($tests as &$test) {
         $test[0] = array('INITIAL' => $test[0]);
     }
     return $tests;
 }