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