/** * Test getter/setter for created property */ public function testCreated() { $this->assertNull($this->associationType->getCreated()); // change value and assert new $newCreated = new \Datetime(); $this->assertEntity($this->associationType->setCreated($newCreated)); $this->assertEquals($newCreated, $this->associationType->getCreated()); }
/** * {@inheritDoc} */ public function setCreated($created) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', array($created)); return parent::setCreated($created); }