/** * Tests if the format for the db format can be changed. */ public function testToDbCustomFormat() { $ilchDate = new \Ilch\Date('2013-09-24 15:44:53'); $ilchDate->setDbFormat('d.m.Y H:i:s'); $this->assertEquals('24.09.2013 15:44:53', $ilchDate->toDb(), 'The date was not returned with the correct format.'); }