mageekguy\atoum\asserters\variable::setByReferenceWith PHP Method

setByReferenceWith() public method

public setByReferenceWith ( &$value )
    public function setByReferenceWith(&$value)
    {
        $this->reset();
        $this->value =& $value;
        $this->isSet = true;
        $this->isSetByReference = true;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 public function setByReferenceWith(&$value)
 {
     if ($this->innerAsserter !== null) {
         return $this->innerAsserter->setByReferenceWith($value);
     } else {
         parent::setByReferenceWith($value);
         if ($this->analyzer->isArray($this->value) === true) {
             $this->pass();
         } else {
             $this->fail($this->_('%s is not an array', $this));
         }
         return $this;
     }
 }
All Usage Examples Of mageekguy\atoum\asserters\variable::setByReferenceWith