Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function add($key, $value)
 {
     $this->_assertNotFrozen();
     $this->_delegate->add($key, $value);
     return $this;
 }