PartKeepr\CoreBundle\Tests\WebTestCase::getKernelClass PHP Method

getKernelClass() protected static method

protected static getKernelClass ( )
    protected static function getKernelClass()
    {
        $dir = isset($_SERVER['KERNEL_DIR']) ? $_SERVER['KERNEL_DIR'] : self::getPhpUnitXmlDir();
        $class = 'AppKernel';
        $file = $dir . '/' . $class . '.php';
        if (!file_exists($file)) {
            return parent::getKernelClass();
        }
        require_once $file;
        return $class;
    }
WebTestCase