for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Knp\Bundle\SnappyBundle\Tests;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
class TestKernel extends Kernel
{
private $configurationFilename;
/**
* Defines the configuration filename.
*
* @param string $filename
*/
public function setConfigurationFilename($filename)
$this->configurationFilename = $filename;
}
* {@inheritdoc}
public function registerBundles()
return [
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new \Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
];
public function registerContainerConfiguration(LoaderInterface $loader)
$loader->load($this->configurationFilename);