mageekguy\atoum\test\adapter\call::getDecorator PHP Method

getDecorator() public method

public getDecorator ( )
    public function getDecorator()
    {
        return $this->decorator;
    }

Usage Example

Beispiel #1
0
 public function testSetDecorator()
 {
     $this->if($call = new testedClass())->then->object($call->setDecorator($decorator = new decorator()))->isIdenticalTo($call)->object($call->getDecorator())->isIdenticalTo($decorator)->object($call->setDecorator())->isIdenticalTo($call)->object($call->getDecorator())->isNotIdenticalTo($decorator)->isEqualTo(new decorator());
 }