Changeset 590
- Timestamp:
- 04/20/07 18:41:19 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/org/simpletest/reflection_php5.php
r558 r590 125 125 return array_unique($methods); 126 126 } 127 127 128 128 /** 129 129 * Checks to see if the method signature has to be tightly … … 171 171 function _onlyParents($interfaces) { 172 172 $parents = array(); 173 foreach ( $interfacesas $interface) {174 foreach ($interfacesas $possible_parent) {173 foreach (new ArrayObject($interfaces) as $interface) { 174 foreach (new ArrayObject($interfaces) as $possible_parent) { 175 175 if ($interface->getName() == $possible_parent->getName()) { 176 176 continue; … … 193 193 return $interface->getMethod($name)->isAbstract(); 194 194 } 195 195 196 196 /** 197 197 * Gets the source code matching the declaration … … 209 209 return 'function __call($method, $arguments)'; 210 210 } 211 211 212 if (version_compare(phpversion(), '5.1.0', '>=')) { 212 213 if (in_array($name, array('__get', '__isset', $name == '__unset'))) { … … 222 223 return "function $name()"; 223 224 } 224 225 225 226 /** 226 227 * For a signature specified in an interface, full
