public function testCreatedAt() { $this->assertNull($this->comment->getCreatedAt()); $value = new \DateTime(); $this->assertEquals($this->comment, $this->comment->setCreatedAt($value)); $this->assertEquals($value, $this->comment->getCreatedAt()); }