public function testGetRouteCollectionForRequestEmpty()
 {
     $request = Request::create('/my/path');
     $this->candidatesMock->expects($this->once())->method('getCandidates')->with($request)->will($this->returnValue(array()));
     $routeProvider = new RouteProvider($this->managerRegistryMock, $this->candidatesMock);
     $collection = $routeProvider->getRouteCollectionForRequest($request);
     $this->assertInstanceOf('Symfony\\Component\\Routing\\RouteCollection', $collection);
     $this->assertCount(0, $collection);
 }
 /**
  * The root route will always be found.
  */
 public function testGetRouteCollectionForRequestColonInUrl()
 {
     $collection = $this->repository->getRouteCollectionForRequest(Request::create('http://foo.com/jcr:content'));
     $this->assertInstanceOf('Symfony\\Component\\Routing\\RouteCollection', $collection);
     $this->assertCount(0, $collection);
 }