Beispiel #1
0
 public function testRemoveDecorators()
 {
     $this->if($writer = new testedClass())->then->object($writer->removeDecorators())->isIdenticalTo($writer)->array($writer->getDecorators())->isEmpty()->if($writer->addDecorator(new \mock\mageekguy\atoum\writer\decorator()))->then->object($writer->removeDecorators())->isIdenticalTo($writer)->array($writer->getDecorators())->isEmpty();
 }