Changeset 556
- Timestamp:
- 04/18/07 18:06:48 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/org/simpletest/reflection_php5.php
r172 r556 185 185 } 186 186 187 function _isAbstractMethod($name) 188 { 189 $interface = new ReflectionClass($this->_interface); 190 $method = $interface->getMethod($name); 191 return $method->isAbstract(); 192 } 193 187 194 /** 188 195 * Gets the source code matching the declaration … … 205 212 } 206 213 } 207 if (! is_callable(array($this->_interface, $name)) ) {214 if (! is_callable(array($this->_interface, $name)) && $this->_isAbstractMethod($name) == false) { 208 215 return "function $name()"; 209 216 } 210 if ($this->_isInterfaceMethod($name) ) {217 if ($this->_isInterfaceMethod($name) || $this->_isAbstractMethod($name)) { 211 218 return $this->_getFullSignature($name); 212 219 }
