mageekguy\atoum\asserters\iterator::setWith PHP Method

setWith() public method

public setWith ( $value, $checkType = true )
    public function setWith($value, $checkType = true)
    {
        parent::setWith($value, $checkType);
        if ($checkType === true) {
            if (self::isIterator($this->value) === false) {
                $this->fail($this->getLocale()->_('%s is not an iterator', $this));
            } else {
                $this->pass();
            }
        }
        return $this;
    }