public function setUp()
 {
     $container = new Container();
     $container->configureFromFile(__DIR__ . '/../../../../../config/di.php');
     $this->routingManager = $container->get('sainsburys.sainsburys-http-service.routing-manager');
     $this->slimAppAdapter = $container->get('sainsburys.sainsburys-http-service.slim-app-adapter');
     $this->slimApp = $container->get('sainsburys.sainsburys-http-service.slim-app');
 }
 /**
  * @When I try to get the service ID :serviceId
  */
 public function iTryToGetTheServiceId($serviceId)
 {
     try {
         $this->container->get($serviceId);
     } catch (\Exception $exception) {
         $this->exceptionThrown = $exception;
     }
 }
 public static function factory(array $routingConfigFiles, ContainerInterface $containerWithControllers) : Application
 {
     $containerWithFramework = new Container();
     $containerWithFramework->configureFromFile(__DIR__ . '/../../../config/di.php');
     $application = $containerWithFramework->get('sainsburys.sainsburys-http-service.application');
     /** @var $application Application */
     $application->takeRoutingConfigs($routingConfigFiles, $containerWithControllers);
     return $application;
 }
 public function testDiConfig()
 {
     // ARRANGE
     $container = new Container();
     $container->configureFromFile(__DIR__ . '/../../../../../config/di.php');
     // ACT
     $result = $container->get('sainsburys.sainsburys-http-service.application');
     // ASSERT
     $this->assertInstanceOf(Application::class, $result);
 }