2011-05-08 21:04:37 +00:00
|
|
|
<?php
|
|
|
|
|
2011-07-03 09:38:38 +00:00
|
|
|
namespace Knp\Bundle\GaufretteBundle\Tests;
|
2011-05-08 21:04:37 +00:00
|
|
|
|
|
|
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
|
|
|
use Symfony\Component\HttpKernel\Kernel;
|
|
|
|
|
|
|
|
class TestKernel extends Kernel
|
|
|
|
{
|
|
|
|
public function getRootDir()
|
|
|
|
{
|
|
|
|
return __DIR__.'/Resources';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function registerBundles()
|
|
|
|
{
|
|
|
|
return array(
|
2011-07-03 09:38:38 +00:00
|
|
|
new \Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
|
2011-05-08 21:04:37 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function registerContainerConfiguration(LoaderInterface $loader)
|
|
|
|
{
|
|
|
|
$loader->load(__DIR__.'/Resources/config/config_'.$this->getEnvironment().'.yml');
|
|
|
|
}
|
|
|
|
}
|