public function resolveCallsCreateRoutesFromConfiguration()
{
/** @var Router|\PHPUnit_Framework_MockObject_MockObject $router */
$router = $this->getAccessibleMock(Router::class, ['createRoutesFromConfiguration']);
$this->inject($router, 'routerCachingService', $this->mockRouterCachingService);
$this->inject($router, 'systemLogger', $this->mockSystemLogger);
// not saying anything, but seems better than to expect the exception we'd get otherwise
/** @var Route|\PHPUnit_Framework_MockObject_MockObject $mockRoute */
$mockRoute = $this->createMock(Route::class);
$mockRoute->expects($this->once())->method('resolves')->will($this->returnValue(true));
$mockRoute->expects($this->atLeastOnce())->method('getResolvedUriPath')->will($this->returnValue('foobar'));
$this->inject($router, 'routes', [$mockRoute]);
// this we actually want to know
$router->expects($this->once())->method('createRoutesFromConfiguration');
$router->resolve([]);
}