public function testAllowsMultipleValuesPerKey() { $q = new puzzle_Query(); $q->add('facet', 'size'); $q->add('facet', 'width'); $q->add('facet.field', 'foo'); // Use the duplicate aggregator $q->setAggregator($q->duplicateAggregator()); $this->assertEquals('facet=size&facet=width&facet.field=foo', (string) $q); }
/** * {@inheritdoc} */ public function add($key, $value) { $this->_assertNotFrozen(); $this->_delegate->add($key, $value); return $this; }