[Routing] Reduce memory usage of a high consuming test case
This commit is contained in:
parent
bbc53dd83f
commit
478a0312fd
@ -91,10 +91,10 @@ class PhpGeneratorDumperTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
$this->routeCollection->add('Test2', new Route('/testing2'));
|
||||
|
||||
$data = $this->generatorDumper->dump(array(
|
||||
file_put_contents($this->largeTestTmpFilepath, $this->generatorDumper->dump(array(
|
||||
'class' => 'ProjectLargeUrlGenerator',
|
||||
));
|
||||
file_put_contents($this->largeTestTmpFilepath, $data);
|
||||
)));
|
||||
$this->routeCollection = $this->generatorDumper = null;
|
||||
include $this->largeTestTmpFilepath;
|
||||
|
||||
$projectUrlGenerator = new \ProjectLargeUrlGenerator(new RequestContext('/app.php'));
|
||||
|
Reference in New Issue
Block a user