Beispiel #1
0
 public function testClearFields()
 {
     $f1 = new Solarium_Query_Select_Component_Stats_Field();
     $f1->setKey('f1');
     $f2 = new Solarium_Query_Select_Component_Stats_Field();
     $f2->setKey('f2');
     $fields = array($f1, $f2);
     $this->_stats->addFields($fields);
     $this->_stats->clearFields();
     $this->assertEquals(array(), $this->_stats->getFields());
 }