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