/**
  * @depends testInit
  **/
 public function testDimensions(GoogleAnalyticsCriteria $criteria)
 {
     $criteria->by("ipAddress");
     $dimensions = $criteria['dimensions'];
     $this->assertEquals($dimensions->count(), 1);
     $this->assertEquals($dimensions['ipAddress'], "ga:dimension1");
 }
 public static function make()
 {
     $criteria = new GoogleAnalyticsCriteria();
     $formatter = new GoogleAnalyticsCriteriaFormatter();
     $factory = new ItemFactory();
     $collection = new ItemCollectionFactory();
     $criteria->setFormatter($formatter)->setItemFactory($factory)->setFactory($collection)->setSegmentManager(static::getSegmentManager());
     return $criteria;
 }