Changeset 558
- Timestamp:
- 04/18/07 23:57:45 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/org/simpletest/reflection_php5.php
r556 r558 188 188 { 189 189 $interface = new ReflectionClass($this->_interface); 190 $method = $interface->getMethod($name); 191 return $method->isAbstract(); 190 if (! $interface->hasMethod($name)) { 191 return false; 192 } 193 return $interface->getMethod($name)->isAbstract(); 192 194 } 193 195 … … 212 214 } 213 215 } 214 if (! is_callable(array($this->_interface, $name)) && $this->_isAbstractMethod($name) == false) {216 if (! is_callable(array($this->_interface, $name)) && ! $this->_isAbstractMethod($name)) { 215 217 return "function $name()"; 216 218 }
