list); $this->assertEquals( [ [ 'Unexpected character.', 0, '$', 22, ], [ 'Unexpected dot.', 0, '.', 17, ], ], Error::get([$lexer, $parser]) ); } public function testFormat() { $this->assertEquals( ['#1: error msg (near "token" at position 100)'], Error::format([['error msg', 42, 'token', 100]]) ); } }