parse() public method

Parse URL and return the IDs contained in the URL.
public parse ( string $url ) : array
$url string
return array
 /**
  * Test parsing when pattern does not match the end of the URL
  *
  * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
  * @expectedExceptionMessage URL '/foo/23/bar' did not match any route.
  */
 public function testPatternDoesNotMatchTrailing()
 {
     $urlHandler = new Common\RequestParser\Pattern(array('pattern' => '/foo/{foo}'));
     $urlHandler->parse('/foo/23/bar');
 }