/** * Test getter/setter for dateMin property */ public function testGetSetDateMin() { $this->assertNull($this->attribute->getDateMin()); // Change value and assert new $date = new \DateTime(); $this->assertEntity($this->attribute->setDateMin($date)); $this->assertInstanceOf('DateTime', $this->attribute->getDateMin()); $this->assertEquals($date, $this->attribute->getDateMin()); }