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

setWith() public method

public setWith ( $value, $charlist = null, $checkType = true )
    public function setWith($value, $charlist = null, $checkType = true)
    {
        parent::setWith($value);
        $this->charlist = $charlist;
        if ($checkType === true) {
            if ($this->analyzer->isString($this->value) === true) {
                $this->pass();
            } else {
                $this->fail($this->_('%s is not a string', $this));
            }
        }
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 public function setWith($value, $charlist = null, $checkType = true)
 {
     parent::setWith($value, $charlist, $checkType);
     if ($checkType === true) {
         if ($this->analyzer->isUtf8($this->value) === true) {
             $this->pass();
         } else {
             $this->fail($this->_('%s is not an UTF-8 string', $this));
         }
     }
     return $this;
 }
All Usage Examples Of mageekguy\atoum\asserters\phpString::setWith