public function testEndDate() { $endDate = new \DateTime(); $this->query->setEndDate($endDate); $this->assertSame($endDate, $this->query->getEndDate()); }