자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public function testThatCreatedAtIsCreatedWhenAnNewGameIsSaved() { $game = new Game(new RandomHeadTailsGenerator()); $game->setName('Wyoming'); $this->assertNull($game->getCreatedAt()); $this->em->persist($game); $this->assertInstanceOf('\\DateTime', $game->getCreatedAt()); }