Annotation of embedaddon/php/ext/reflection/tests/ReflectionObject_isInternal_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionObject::isInternal() - basic function test
! 3: --FILE--
! 4: <?php
! 5: class C {
! 6: }
! 7:
! 8: $r1 = new ReflectionObject(new stdClass);
! 9: $r2 = new ReflectionObject(new ReflectionClass('C'));
! 10: $r3 = new ReflectionObject(new ReflectionProperty('Exception', 'message'));
! 11: $r4 = new ReflectionObject(new Exception);
! 12: $r5 = new ReflectionObject(new C);
! 13:
! 14: var_dump($r1->isInternal(), $r2->isInternal(), $r3->isInternal(),
! 15: $r4->isInternal(), $r5->isInternal());
! 16:
! 17: ?>
! 18: --EXPECTF--
! 19: bool(true)
! 20: bool(true)
! 21: bool(true)
! 22: bool(true)
! 23: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>