public function testDoUpdate()
 {
     $item = new NavigationHistoryItem();
     $oldVisitedAt = $item->getVisitedAt();
     $oldVisitCount = $item->getVisitCount();
     $item->doUpdate();
     $this->assertInstanceOf('DateTime', $item->getVisitedAt());
     $this->assertNotEquals($oldVisitedAt, $item->getVisitedAt());
     $this->assertNotEquals($oldVisitCount, $item->getVisitCount());
     $this->assertEquals($oldVisitCount + 1, $item->getVisitCount());
 }
 /**
  * {@inheritDoc}
  */
 public function getVisitCount()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getVisitCount', array());
     return parent::getVisitCount();
 }