1--TEST-- 2ReflectionClass::getInterfaces() - interface ordering. 3--CREDITS-- 4Robin Fernandes <robinf@php.net> 5Steve Seear <stevseea@php.net> 6--FILE-- 7<?php 8interface I1 {} 9interface I2 {} 10interface I3 {} 11interface I4 extends I3 {} 12interface I5 extends I4 {} 13interface I6 extends I5, I1, I2 {} 14interface I7 extends I6 {} 15 16$rc = new ReflectionClass('I7'); 17$interfaces = $rc->getInterfaces(); 18print_r($interfaces); 19?> 20--EXPECTF-- 21Array 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)