public function testDateEnd() { $testDate = new \DateTime(); $cronTaskLog = new CronTaskLog(); $this->assertNull($cronTaskLog->getDateEnd()); $cronTaskLog->setDateEnd($testDate); $this->assertEquals($testDate, $cronTaskLog->getDateEnd()); }