Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / CrossCheckTest.php
index 6bdc8f4f495015c08119bb0ae0bbce4a9c80a2b0..6ec9d33f5892c77b0b287c9bcdbe20b44580e7a9 100644 (file)
@@ -12,8 +12,8 @@
 namespace Symfony\Component\DependencyInjection\Tests;
 
 use PHPUnit\Framework\TestCase;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
 use Symfony\Component\Config\FileLocator;
+use Symfony\Component\DependencyInjection\ContainerBuilder;
 
 class CrossCheckTest extends TestCase
 {
@@ -56,6 +56,11 @@ class CrossCheckTest extends TestCase
         $this->assertEquals($container2->getDefinitions(), $container1->getDefinitions(), 'loading a dump from a previously loaded container returns the same container');
         $this->assertEquals($container2->getParameterBag()->all(), $container1->getParameterBag()->all(), '->getParameterBag() returns the same value for both containers');
 
+        $r = new \ReflectionProperty(ContainerBuilder::class, 'normalizedIds');
+        $r->setAccessible(true);
+        $r->setValue($container2, array());
+        $r->setValue($container1, array());
+
         $this->assertEquals(serialize($container2), serialize($container1), 'loading a dump from a previously loaded container returns the same container');
 
         $services1 = array();