/** * @covers Time_DateTime::createFromFormat */ public function testCreateFromFormat() { $format_strftime = '%d/%m/%Y %H:%M:%S'; $format_DateTime = 'Y-m-d H:i:s'; $string_DateTime = '2009-02-15 15:16:17'; $string_strftime = strftime($format_strftime); $this->assertInstanceOf('Time_DateTime', $this->object->createFromFormat($format_DateTime, $string_DateTime)); $this->assertNull($this->object->createFromFormat($format_DateTime, $string_strftime)); }