Пример #1
0
 public function testAggregationValueContainerRemoveClear()
 {
     $a = new \CrazyCodr\Data\Grouper\GroupResult();
     $a->addAggregationValue(6, 'test1');
     $a->addAggregationValue(6, 'test2');
     $a->addAggregationValue(6, 'test3');
     $a->addAggregationValue(6, 'test4');
     $this->assertCount(4, $a->getAggregationValues());
     $a->removeAggregationValue('test4');
     $this->assertCount(3, $a->getAggregationValues());
     $a->clearAggregationValues();
     $this->assertCount(0, $a->getAggregationValues());
 }