public function getFields($asString = false) { if (!$asString) { return $this->fields; } $query = new puzzle_Query($this->fields); return (string) $query->setEncodingType(puzzle_Query::RFC1738)->setAggregator($this->getAggregator()); }
/** * {@inheritdoc} */ public function setEncodingType($type) { $this->_assertNotFrozen(); $this->_delegate->setEncodingType($type); return $this; }
/** * @expectedException InvalidArgumentException */ public function testValidatesEncodingType() { $q = new puzzle_Query(array('bar' => 'bam boozle')); $q->setEncodingType('foo'); }