public function initializeDoesNotFlushCachesInDevelopmentContextIfRoutingSettingsHaveNotChanged()
{
$cachedRoutingSettings = ['Some.Package' => true, 'Some.OtherPackage' => ['position' => 'start', 'suffix' => 'Foo', 'variables' => ['foo' => 'bar']]];
$actualRoutingSettings = $cachedRoutingSettings;
$this->inject($this->routerCachingService, 'routingSettings', $actualRoutingSettings);
$this->mockApplicationContext->expects($this->atLeastOnce())->method('isDevelopment')->will($this->returnValue(true));
$this->mockRouteCache->expects($this->atLeastOnce())->method('get')->with('routingSettings')->will($this->returnValue($cachedRoutingSettings));
$this->mockRouteCache->expects($this->never())->method('flush');
$this->mockResolveCache->expects($this->never())->method('flush');
$this->routerCachingService->_call('initializeObject');
}