public function testPhpEncodesNoNumericIndices()
 {
     $agg = Query::phpAggregator(false);
     $result = $agg($this->encodeData);
     $this->assertEquals(array('t[v1][]' => ['a', '1'], 't[v2]' => ['b'], 't[v3][v4]' => ['c'], 't[v3][v5]' => ['d']), $result);
 }
Beispiel #2
0
 /**
  * Get the aggregator used to join multi-valued field parameters
  *
  * @return callable
  */
 protected final function getAggregator()
 {
     if (!$this->aggregator) {
         $this->aggregator = Query::phpAggregator();
     }
     return $this->aggregator;
 }