for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MetroMarkets\FFBundle\Tests;
use MetroMarkets\FFBundle\MetroMarketsFFBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel;
class TestingKernel extends Kernel
{
/** @var array */
private $config;
public function __construct(array $config = [])
$this->config = $config;
parent::__construct('test', true);
}
public function registerBundles()
return [
new MetroMarketsFFBundle(),
];
public function registerContainerConfiguration(LoaderInterface $loader)
$loader->load(function (ContainerBuilder $container) {
$container->loadFromExtension('metro_markets_ff', $this->config);
});
public function getCacheDir()
//makes sure that container is not re-used
return __DIR__ . '/cache/' . spl_object_hash($this);