You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$kernelRef = new \ReflectionObject($this->kernel);
75
76
$kernelFile = $kernelRef->getFileName();
@@ -83,6 +84,12 @@ public function testCacheIsFreshAfterCacheClearedWithWarmup()
83
84
}
84
85
}
85
86
$this->assertTrue($found, 'Kernel file should present as resource');
86
-
$this->assertRegExp(sprintf('/\'kernel.container_class\'\s*=>\s*\'%s\'/', get_class($this->kernel->getContainer())), file_get_contents($containerFile), 'kernel.container_class is properly set on the dumped container');
87
+
88
+
if (defined('HHVM_VERSION')) {
89
+
return;
90
+
}
91
+
$containerRef = new \ReflectionClass(require$containerFile);
$this->assertRegExp(sprintf('/\'kernel.container_class\'\s*=>\s*\'%s\'/', $containerClass), file_get_contents($containerFile), 'kernel.container_class is properly set on the dumped container');
0 commit comments