Elcodi\Bundle\TestCommonBundle\Functional\WebTestCase::createKernel PHP Method

createKernel() protected static method

Available options: * environment * debug
protected static createKernel ( ) : Symfony\Component\HttpKernel\KernelInterface
return Symfony\Component\HttpKernel\KernelInterface A KernelInterface instance
    protected static function createKernel()
    {
        $class = static::getKernelClass();
        $namespaceExploded = explode('\\Tests\\Functional\\', get_called_class(), 2);
        $bundleName = explode('Elcodi\\', $namespaceExploded[0], 2)[1];
        $bundleName = str_replace('\\', '_', $bundleName);
        return new $class($bundleName . 'Test', false);
    }