protected function buildKernel() { $this->kernel = new \AppKernel($this->environment->getType(), $this->environment->isDebug()); if ($this->loadClassCache) { $this->kernel->loadClassCache(); } if (true === (bool) $this->request->server->get('APP_CACHE', false)) { $this->kernel = new \AppCache($this->kernel); } }
/** * @test */ public function it_detects_is_debug_from_input_args() { $input = new ArgvInput(['command:name', '--no-debug']); $this->environment = new SymfonyEnvironment($input); $this->assertFalse($this->environment->isDebug()); }
/** * @test */ public function it_allows_variable_names_for_ini_and_environment_to_be_defined() { $this->environment = new Environment('APP_ENV', 'php.app_env'); $this->assertEquals(Environment::$DEFAULT_TYPE, $this->environment->getType()); $this->assertTrue($this->environment->isDebug()); }