for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace Overblog\GraphQLBundle\Tests\Functional\App;
use Overblog\GraphQLBundle\OverblogGraphQLBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Bundle\SecurityBundle\SecurityBundle;
use Symfony\Bundle\TwigBundle\TwigBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
final class TestKernel extends Kernel
{
private $testCase;
/**
* {@inheritdoc}
*/
public function registerBundles()
return [
new FrameworkBundle(),
new SecurityBundle(),
new TwigBundle(),
new OverblogGraphQLBundle(),
];
}
public function __construct($environment, $debug, $testCase = null)
$this->testCase = null !== $testCase ? $testCase : false;
parent::__construct($environment, $debug);
public function getCacheDir()
return $this->basePath().'cache/'.$this->environment;
public function getLogDir()
return $this->basePath().'logs';
public function getRootDir()
return __DIR__;
public function isBooted()
return $this->booted;
public function registerContainerConfiguration(LoaderInterface $loader)
if ($this->testCase) {
$loader->load(sprintf(__DIR__.'/config/%s/config.yml', $this->testCase));
} else {
$loader->load(__DIR__.'/config/config.yml');
private function basePath()
return sys_get_temp_dir().'/OverblogGraphQLBundle/'.Kernel::VERSION.'/'.($this->testCase ? $this->testCase.'/' : '');