for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\DoctrinePHPCRAdminBundle\Tests\Fixtures\App;
use ReflectionClass;
use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class Kernel extends TestKernel
{
public function configure()
$this->registerConfiguredBundles();
$this->requireBundleSet('default');
$this->requireBundleSets(['phpcr_odm',]);
}
public function getKernelDir()
$refl = new ReflectionClass($this);
$fname = $refl->getFileName();
$kernelDir = dirname($fname);
var_dump('KERNEL_DIR_CREATED:'.PHP_EOL.$kernelDir);
var_dump('KERNEL_DIR_CRE... PHP_EOL . $kernelDir);
var_dump('KERNEL_DIR:'.PHP_EOL.getenv('KERNEL_CLASS'));
var_dump('KERNEL_DIR:'.PHP_EOL.getenv('KERNEL_DIR'));
return $kernelDir;
public function registerContainerConfiguration(LoaderInterface $loader)
$loader->load(__DIR__ . '/config/config.php');
$loader->load(__DIR__ . '/config/admin-test.xml');