/**
  * We send this data via server to not expose eg PHP version to users
  * @return Tracker[]
  */
 public function makeTrackers()
 {
     $trackers = array();
     $targets = $this->targets->getTargets();
     foreach ($targets as $target) {
         $tracker = new Tracker($target['idSite'], $target['url']);
         $tracker->setBaseApiUrl($target['url']);
         $tracker->setRequestTimeout($seconds = 15);
         $tracker->setAnonymousUrl();
         $tracker->setUrlReferrer('');
         $trackers[] = $tracker;
     }
     return $trackers;
 }
 private function assertTargets($expectedTargets, $settings)
 {
     $targets = new Targets($settings);
     $this->assertSame($expectedTargets, $targets->getTargets());
 }