/** * Test getter/setter for validationRule property */ public function testGetSetValidationRule() { $this->assertNull($this->attribute->getValidationRule()); // Change value and assert new $rule = 'email'; $this->assertEntity($this->attribute->setValidationRule($rule)); $this->assertEquals($rule, $this->attribute->getValidationRule()); }