/** * Test getter/setter for validationRegexp property */ public function testGetSetValidationRegexp() { $this->assertNull($this->attribute->getValidationRegexp()); // Change value and assert new $regexp = '/[^0-9]/'; $this->assertEntity($this->attribute->setValidationRegexp($regexp)); $this->assertEquals($regexp, $this->attribute->getValidationRegexp()); }