Moved and renamed functional tests. Simplified ConfigurationTest

This commit is contained in:
l3l0
2012-09-04 15:18:10 +02:00
parent ca477696cc
commit fcde48018c
8 changed files with 152 additions and 67 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Knp\Bundle\GaufretteBundle\Tests\Functional;
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(
new \Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
);
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/Resources/config/config_'.$this->getEnvironment().'.yml');
}
}