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;
use PHPUnit\Framework\TestResult;
class ConfigurationTest extends TestCase
{
/**
* PHPUnit hack to avoid currently loaded classes
* leak to @see testGetConfigTreeBuilderDoNotUseDoctrineCommon that is run is separate process.
*
* @inheritdoc
*/
public function run(TestResult $result = null)
$this->setPreserveGlobalState(false);
return parent::run($result);
}
* @runInSeparateProcess
public function testGetConfigTreeBuilderDoNotUseDoctrineCommon()
$configuration = new Configuration(true);
$configuration->getConfigTreeBuilder();
$this->assertFalse(class_exists('Doctrine\Common\Proxy\AbstractProxyFactory', false));