reset() public method

public reset ( )
Ejemplo n.º 1
0
 public function testReset()
 {
     $this->if($asserter = new sut($generator = new asserter\generator()))->and($asserter->setWith(uniqid()))->then->variable($asserter->getValue())->isNotNull()->boolean($asserter->wasSet())->isTrue()->boolean($asserter->isSetByReference())->isFalse()->object($asserter->reset())->isIdenticalTo($asserter)->variable($asserter->getValue())->isNull()->boolean($asserter->wasSet())->isFalse()->boolean($asserter->isSetByReference())->isFalse()->if($reference = uniqid())->and($asserter->setByReferenceWith($reference))->then->variable($asserter->getValue())->isNotNull()->boolean($asserter->wasSet())->isTrue()->boolean($asserter->isSetByReference())->isTrue()->object($asserter->reset())->isIdenticalTo($asserter)->variable($asserter->getValue())->isNull()->boolean($asserter->wasSet())->isFalse()->boolean($asserter->isSetByReference())->isFalse();
 }
Ejemplo n.º 2
0
 public function reset()
 {
     $this->key = null;
     return parent::reset()->resetInnerAsserter();
 }