getDecorator() 공개 메소드

public getDecorator ( )
예제 #1
0
파일: call.php 프로젝트: xihewang/atoum
 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());
 }