getParser(); $this->assertSame( [ 'rc' => $expected_rc, 'match' => $expected_match, 'length' => strlen($expected_match) ], [ 'rc' => $parser->parse($string, $pos), 'match' => $parser->getMatch(), 'length' => $parser->getLength() ] ); } }