fix container cache key generation
If the actual class name were not taken into, we would not be able to detect inconsistencies between the different configuration formats (PHP, YAML, and XML) as the container built based on the first evaluated configuration format would be cached and reused by tests for the other formats too.
This commit is contained in:
parent
2c43532376
commit
29750e51ad
@ -309,7 +309,7 @@ abstract class FrameworkExtensionTest extends TestCase
|
|||||||
|
|
||||||
protected function createContainerFromFile($file, $data = array())
|
protected function createContainerFromFile($file, $data = array())
|
||||||
{
|
{
|
||||||
$cacheKey = md5($file.serialize($data));
|
$cacheKey = md5(get_class($this).$file.serialize($data));
|
||||||
if (isset(self::$containerCache[$cacheKey])) {
|
if (isset(self::$containerCache[$cacheKey])) {
|
||||||
return self::$containerCache[$cacheKey];
|
return self::$containerCache[$cacheKey];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user