/** * {@inheritDoc} * * @see PHPUnit_Framework_TestCase::tearDownAfterClass() * * @uses KernelTestCase::ensureKernelShutdown() */ public static function tearDownAfterClass() { parent::ensureKernelShutdown(); static::$repository->clear(); static::$repository = null; // avoid memory leaks }