public static function checkType($value) { switch ($value['type']) { case 'int': return CheckIsIntModel::checkValue($value['variable']); break; case 'float': return CheckIsFloatModel::checkValue($value['variable']); break; case 'string': return CheckIsStringModel::checkValue($value['variable']); break; case 'boolean': return CheckIsBooleanModel::checkValue($value['variable']); break; case 'object': return CheckIsObjectModel::checkValue($value['variable']); break; case 'array': return CheckTypeIsArrayModel::check($value['variable']); break; case 'null': break; case 'empty': return CheckIsEmptyModel::check($value); break; case 'null': return CheckNotNullModel::check($multipart); break; case 'resource': return CheckIsResourceModel::checkValue($value); break; default: return Data\FalseData::set(); } }
public function testResourceIsFalse() { $this->resource = tmpfile(); $this->current_result = Models\CheckIsObjectModel::checkValue($this->resource); $this->assertFalse($this->current_result); }