getDecorator() public method

public getDecorator ( )
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());
 }