for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
$bundles = [];
if (in_array($this->getEnvironment(), ['test'])) {
$bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
$bundles[] = new Symfony\Bundle\TwigBundle\TwigBundle();
$bundles[] = new Symfony\Bundle\MonologBundle\MonologBundle();
$bundles[] = new Doctrine\Bundle\DoctrineBundle\DoctrineBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new IrishDan\NotificationBundle\NotificationBundle();
$bundles[] = new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle();
}
return $bundles;
public function registerContainerConfiguration(LoaderInterface $loader)
$loader->load(__DIR__ . '/config_test.yml');
public function getLogDir()
return dirname(__DIR__) . '/logs';