Example #1
0
 /**
  * Tests if the type cast to string works using a custom format.
  */
 public function testTypeCastCustomFormat()
 {
     $ilchDate = new \Ilch\Date('2013-09-24 22:32:46');
     $ilchDate->setDefaultFormat('d.m.Y H:i:s');
     $this->assertEquals('24.09.2013 22:32:46', (string) $ilchDate, 'The object could not be typecasted correctly to string using a custom format.');
 }