Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_isCloneable_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing ReflectionClass::isCloneable() with non instantiable objects
3: --FILE--
4: <?php
5:
6: trait foo {
7: }
8: $obj = new ReflectionClass('foo');
9: var_dump($obj->isCloneable());
10:
11: abstract class bar {
12: }
13: $obj = new ReflectionClass('bar');
14: var_dump($obj->isCloneable());
15:
16: interface baz {
17: }
18: $obj = new ReflectionClass('baz');
19: var_dump($obj->isCloneable());
20:
21: ?>
22: --EXPECT--
23: bool(false)
24: bool(false)
25: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>