public function testPrePersist() { $product = new Product(); $product->prePersist(); $this->assertInstanceOf('\\DateTime', $product->getCreatedAt()); $this->assertInstanceOf('\\DateTime', $product->getUpdatedAt()); }