mageekguy\atoum\mock\generator::isOrphanized PHP Method

isOrphanized() public method

public isOrphanized ( $method )
    public function isOrphanized($method)
    {
        return in_array($method, $this->orphanizedMethods) === true;
    }

Usage Example

Example #1
0
 public function testOrphanize()
 {
     $this->if($generator = new testedClass())->then->object($generator->orphanize($method = uniqid()))->isIdenticalTo($generator)->boolean($generator->isOrphanized($method))->isTrue()->boolean($generator->isShunted($method))->isTrue();
 }