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