示例#1
0
 public function testUpdatedTime()
 {
     $this->tag->doUpdate();
     $oldUpdatedTime = $this->tag->getUpdatedAt();
     sleep(1);
     $this->tag->doUpdate();
     $this->assertInstanceOf('\\DateTime', $this->tag->getUpdatedAt());
     $this->assertNotEquals($oldUpdatedTime, $this->tag->getUpdatedAt());
 }