mirror of
https://github.com/php/php-src.git
synced 2024-10-03 15:56:11 +00:00
26 lines
400 B
Plaintext
26 lines
400 B
Plaintext
|
--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)
|