checkRequirements(); $this->container = new Container(['environment' => Environment::mock()]); $this->container['root_path'] = dirname(__DIR__); $this->container['config'] = Config::fromFile($this->getConfigFile()); $this->container['session'] = SessionFactory::create($this->container); $this->container['locale'] = LocaleManagerFactory::create($this->container); $this->container['view'] = ViewFactory::create($this->container); $this->container['logger'] = new NullLogger(); } /** * Cleanup after each test. */ protected function tearDown(): void { $this->container->get('session')->clear(); } }