예제 #1
0
 public function test_date_should_default_to_now()
 {
     $now = new \DateTime('now');
     $user = new User();
     $this->assertEquals($now, $user->getDate());
 }
 public function getDate()
 {
     $this->__load();
     return parent::getDate();
 }