Symfony\Bundle\SecurityBundle\Tests\Functional\WebTestCase::createKernel PHP Méthode

createKernel() protected static méthode

protected static createKernel ( array $options = [] )
$options array
    static protected function createKernel(array $options = array())
    {
        $class = self::getKernelClass();

        if (!isset($options['test_case'])) {
            throw new \InvalidArgumentException('The option "test_case" must be set.');
        }

        return new $class(
            $options['test_case'],
            isset($options['root_config']) ? $options['root_config'] : 'config.yml',
            isset($options['environment']) ? $options['environment'] : 'test',
            isset($options['debug']) ? $options['debug'] : true
        );
    }