for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection;
use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Configuration;
use PHPUnit\Framework\TestCase;
class ConfigurationTest extends TestCase
{
/**
* PHPUnit hack to avoid currently loaded classes to leak to
* testGetConfigTreeBuilderDoNotUseDoctrineCommon that is run in separate process.
*/
protected $preserveGlobalState = false;
* @runInSeparateProcess
public function testGetConfigTreeBuilderDoNotUseDoctrineCommon()
$configuration = new Configuration(true);
$configuration->getConfigTreeBuilder();
$this->assertFalse(class_exists('Doctrine\Common\Proxy\AbstractProxyFactory', false));
}