public function testReset() { $this->given($storage = new testedClass())->then->object($storage->reset())->isIdenticalTo($storage)->hasSize(0)->if($storage->add(new atoum\test\adapter()))->then->object($storage->reset())->isIdenticalTo($storage)->hasSize(0); }
public function test__clone() { $this->if($adapter = new testedClass())->and($storage = new test\adapter\storage())->and($clone = clone $adapter)->then->object($clone->getCalls())->isCloneOf($adapter->getCalls())->boolean($storage->contains($clone))->isFalse()->if(testedClass::setStorage($storage))->and($otherClone = clone $adapter)->then->object($otherClone->getCalls())->isCloneOf($adapter->getCalls())->boolean($storage->contains($clone))->isFalse()->boolean($storage->contains($otherClone))->isTrue(); }