public function testYesmailMasterRequiredTargetAttributeNullableInvalid() { $name = 'Required Attribute Name'; $values = array(); $nullable = NULL; $attribute = new YesmailMasterRequiredTargetAttribute($name, $values, $nullable); $this->assertFalse($attribute->is_valid()); }
/** * Validates the target attribute * * @return bool True if the target attribute is valid, false otherwise * @access public */ public function is_valid() { $ret = false; if (parent::is_valid() === true) { if (is_null($this->id) === false && is_null($this->logicalConnectorWithNext) === false && is_null($this->negation) === false && is_null($this->groupedWith) === false) { $ret = true; } } return $ret; }