Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Reflection class can not be cloned
! 3: --CREDITS--
! 4: Stefan Koopmanschap <stefan@phpgg.nl>
! 5: TestFest PHP|Tek
! 6: --SKIPIF--
! 7: <?php
! 8: if (!extension_loaded('reflection)) print 'skip';
! 9: ?>
! 10: --FILE--
! 11: <?php
! 12: $rc = new ReflectionClass("stdClass");
! 13: $rc2 = clone($rc);
! 14: --EXPECTF--
! 15: Fatal error: Trying to clone an uncloneable object of class ReflectionClass in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>