Changeset 558

Show
Ignore:
Timestamp:
04/18/07 23:57:45 (2 years ago)
Author:
mikey
Message:

use patch as submitted to SimpleTest? bug tracker (see http://sourceforge.net/tracker/index.php?func=detail&aid=1703276&group_id=76550&atid=547455)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/org/simpletest/reflection_php5.php

    r556 r558  
    188188        { 
    189189            $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(); 
    192194        } 
    193195         
     
    212214                } 
    213215            } 
    214             if (! is_callable(array($this->_interface, $name)) && $this->_isAbstractMethod($name) == false) { 
     216            if (! is_callable(array($this->_interface, $name)) && ! $this->_isAbstractMethod($name)) { 
    215217                return "function $name()"; 
    216218            }