function it_can_be_set_up_with_a_container_and_routing_configs(ContainerInterface $container, SlimAppAdapter $slimAppAdapter, RoutingManager $routingManager)
 {
     // ACT
     $this->takeRoutingConfigs(['config/routes.php'], $container);
     // ASSERT
     $routingManager->configureSlimAppWithRoutes(['config/routes.php'], $container, $slimAppAdapter)->shouldHaveBeenCalled();
 }
 public function testApplyingRoutes()
 {
     // ARRANGE
     $container = $this->getMockContainer();
     $routes = [__DIR__ . '/../../../fixtures/sample-routes.php'];
     // ACT
     $this->routingManager->configureSlimAppWithRoutes($routes, $container, $this->slimAppAdapter);
     // ASSERT
     $slimRoute = $this->getSlimRouteFromApplication($this->slimApp);
     $this->assertEquals(['GET'], $slimRoute->getMethods());
     $this->assertEquals('/person/{id}', $slimRoute->getPattern());
 }
 public function takeRoutingConfigs(array $paths, ContainerInterface $containerWithControllers)
 {
     $this->routingManager->configureSlimAppWithRoutes($paths, $containerWithControllers, $this->slimAppAdapter);
 }