/** * @test */ public function setDateForDateTimeSetsDate() { $dateTimeFixture = new \DateTime(); $this->subject->setDate($dateTimeFixture); $this->assertAttributeEquals($dateTimeFixture, 'date', $this->subject); }