setByReferenceWith() public method

public setByReferenceWith ( &$value )
Exemplo n.º 1
0
 public function testReset()
 {
     $this->if($asserter = new sut($generator = new asserter\generator()))->then->object($asserter->reset())->isIdenticalTo($asserter)->variable($asserter->getValue())->isNull()->boolean($asserter->wasSet())->isFalse()->boolean($asserter->isSetByReference())->isFalse()->variable($asserter->getKey())->isNull()->variable($asserter->getInnerAsserter())->isNull()->variable($asserter->getInnerValue())->isNull()->if($asserter->setWith(array()))->then->object($asserter->reset())->isIdenticalTo($asserter)->variable($asserter->getValue())->isNull()->boolean($asserter->wasSet())->isFalse()->boolean($asserter->isSetByReference())->isFalse()->variable($asserter->getKey())->isNull()->variable($asserter->getInnerAsserter())->isNull()->variable($asserter->getInnerValue())->isNull()->if($reference = range(1, 5))->and($asserter->setByReferenceWith($reference))->then->object($asserter->reset())->isIdenticalTo($asserter)->variable($asserter->getValue())->isNull()->boolean($asserter->wasSet())->isFalse()->boolean($asserter->isSetByReference())->isFalse()->variable($asserter->getKey())->isNull()->variable($asserter->getInnerAsserter())->isNull()->variable($asserter->getInnerValue())->isNull()->if($asserter->object)->then->object($asserter->reset())->isIdenticalTo($asserter)->variable($asserter->getValue())->isNull()->boolean($asserter->wasSet())->isFalse()->boolean($asserter->isSetByReference())->isFalse()->variable($asserter->getKey())->isNull()->variable($asserter->getInnerAsserter())->isNull()->variable($asserter->getInnerValue())->isNull()->if($asserter->setWith(range(1, 5)))->and($asserter->atKey(2))->then->object($asserter->reset())->isIdenticalTo($asserter)->variable($asserter->getValue())->isNull()->boolean($asserter->wasSet())->isFalse()->boolean($asserter->isSetByReference())->isFalse()->variable($asserter->getKey())->isNull()->variable($asserter->getInnerAsserter())->isNull()->variable($asserter->getInnerValue())->isNull();
 }