示例#1
0
 public function setWith($value)
 {
     parent::setWith($value);
     if ($this->analyzer->isResource($this->value) === true) {
         $this->pass();
     } else {
         $this->fail($this->_('%s is not a resource', $this));
     }
     return $this;
 }
示例#2
0
文件: phpFloat.php 项目: atoum/atoum
 public function setWith($value)
 {
     variable::setWith($value);
     if ($this->analyzer->isFloat($this->value) === true) {
         $this->pass();
     } else {
         $this->fail($this->_('%s is not a float', $this));
     }
     return $this;
 }
示例#3
0
文件: phpString.php 项目: atoum/atoum
 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;
 }