Your IP : 216.73.216.48


Current Path : /hdd/hdd12/install/php/php-7.4.32/ext/reflection/tests/
Upload File :
Current File : //hdd/hdd12/install/php/php-7.4.32/ext/reflection/tests/ReflectionClass_isCloneable_002.phpt

--TEST--
Testing ReflectionClass::isCloneable() with non instantiable objects
--FILE--
<?php

trait foo {
}
$obj = new ReflectionClass('foo');
var_dump($obj->isCloneable());

abstract class bar {
}
$obj = new ReflectionClass('bar');
var_dump($obj->isCloneable());

interface baz {
}
$obj = new ReflectionClass('baz');
var_dump($obj->isCloneable());

?>
--EXPECT--
bool(false)
bool(false)
bool(false)