Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_getInterfaceNames_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionClass::getInterfaceNames()
! 3: --CREDITS--
! 4: Michelangelo van Dam <dragonbe@gmail.com>
! 5: #testfest roosendaal on 2008-05-10
! 6: --FILE--
! 7: <?php
! 8: interface Foo { }
! 9:
! 10: interface Bar { }
! 11:
! 12: class Baz implements Foo, Bar { }
! 13:
! 14: $rc1 = new ReflectionClass("Baz");
! 15: var_dump($rc1->getInterfaceNames());
! 16: ?>
! 17: --EXPECT--
! 18: array(2) {
! 19: [0]=>
! 20: string(3) "Foo"
! 21: [1]=>
! 22: string(3) "Bar"
! 23: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>