Ejemplo n.º 1
0
 public function testSetDatetime()
 {
     $m = new ae_MediaModel();
     $m->setDatetime('2014-10-19 23:34:00');
     $this->assertEquals($m->getDatetime(), '2014-10-19 23:34:00');
     $this->assertEquals($m->getDatetime('Y H:i'), '2014 23:34');
     $this->setExpectedException('Exception');
     $m->setDatetime('2014-10-19');
 }