mirror of
https://github.com/php/php-src.git
synced 2024-10-02 23:36:16 +00:00
26 lines
400 B
PHP
26 lines
400 B
PHP
--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)
|