Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_getInterfaces_002.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ReflectionClass::getInterfaces() - interface ordering.
! 3: --CREDITS--
! 4: Robin Fernandes <robinf@php.net>
! 5: Steve Seear <stevseea@php.net>
! 6: --FILE--
! 7: <?php
! 8: interface I1 {}
! 9: interface I2 {}
! 10: interface I3 {}
! 11: interface I4 extends I3 {}
! 12: interface I5 extends I4 {}
! 13: interface I6 extends I5, I1, I2 {}
! 14: interface I7 extends I6 {}
! 15:
! 16: $rc = new ReflectionClass('I7');
! 17: $interfaces = $rc->getInterfaces();
! 18: print_r($interfaces);
! 19: ?>
! 20: --EXPECTF--
! 21: Array
! 22: (
! 23: [I6] => ReflectionClass Object
! 24: (
! 25: [name] => I6
! 26: )
! 27:
! 28: [I2] => ReflectionClass Object
! 29: (
! 30: [name] => I2
! 31: )
! 32:
! 33: [I1] => ReflectionClass Object
! 34: (
! 35: [name] => I1
! 36: )
! 37:
! 38: [I4] => ReflectionClass Object
! 39: (
! 40: [name] => I4
! 41: )
! 42:
! 43: [I3] => ReflectionClass Object
! 44: (
! 45: [name] => I3
! 46: )
! 47:
! 48: [I5] => ReflectionClass Object
! 49: (
! 50: [name] => I5
! 51: )
! 52:
! 53: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>