This commit is contained in:
Nicolas Grekas 2015-08-01 09:18:57 +02:00
parent bffca95112
commit 3d12946d0d

View File

@ -710,7 +710,7 @@ class ContainerTest extends \PHPUnit_Framework_TestCase
{ {
$class = new \ReflectionClass('Symfony\Component\DependencyInjection\Container'); $class = new \ReflectionClass('Symfony\Component\DependencyInjection\Container');
$clone = $class->getMethod('__clone'); $clone = $class->getMethod('__clone');
if (PHP_VERSION_ID >= 540000) { if (PHP_VERSION_ID >= 50400) {
$this->assertFalse($class->isCloneable()); $this->assertFalse($class->isCloneable());
} }
$this->assertTrue($clone->isPrivate()); $this->assertTrue($clone->isPrivate());