/**
  * Constructor.
  *
  * @param   DatabaseAdapterInterface  $db     Database adapter.
  */
 public function __construct(DatabaseAdapterInterface $db = null)
 {
     parent::__construct(AbstractDatabaseTestCase::TABLE_LOCATIONS, 'id', $db);
 }
 /**
  * Class init.
  *
  * @param ObservableDataMapper $mapper
  * @param array                        $params
  */
 public function __construct(ObservableDataMapper $mapper, $params = array())
 {
     $mapper->attachObserver($this);
     $this->mapper = $mapper;
     $this->params = new Registry($params);
 }