public function testConstructor2() { $dt = new DateTimeObject('14.02.2013'); $dt->setFormat('d.m.Y'); $this->assertSame('14.02.2013', $dt->val()); }