public function testRemoveAbsolutePathsFromContainerGiveUpWhenComposerJsonPathNotGuessable() { $kernel = new KernelForTest('dev', true); $kernel->setRootDir($symfonyRootDir = sys_get_temp_dir()); $content = file_get_contents(__DIR__ . '/Fixtures/DumpedContainers/app/cache/dev/withAbsolutePaths.php'); $content = str_replace('ROOT_DIR', __DIR__ . '/Fixtures/DumpedContainers', $content); $m = new \ReflectionMethod($kernel, 'removeAbsolutePathsFromContainer'); $m->setAccessible(true); $newContent = $m->invoke($kernel, $content); $this->assertEquals($newContent, $content); }