ReflectionClass_isCloneable_002.phpt 400 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Testing ReflectionClass::isCloneable() with non instantiable objects
  3. --FILE--
  4. <?php
  5. trait foo {
  6. }
  7. $obj = new ReflectionClass('foo');
  8. var_dump($obj->isCloneable());
  9. abstract class bar {
  10. }
  11. $obj = new ReflectionClass('bar');
  12. var_dump($obj->isCloneable());
  13. interface baz {
  14. }
  15. $obj = new ReflectionClass('baz');
  16. var_dump($obj->isCloneable());
  17. ?>
  18. --EXPECT--
  19. bool(false)
  20. bool(false)
  21. bool(false)