public function testParseString() { $s = new StringObject('first=value&arr[]=foo+bar&arr[]=baz'); $result = $s->parseString(); $compare = ['first' => 'value', 'arr' => ['foo bar', 'baz']]; $this->assertSame($compare, $result->val()); }
public function testParseString() { $s = new StringObject('first=value&arr[]=foo+bar&arr[]=baz'); $result = $s->parseString(); $compare = ['first' => 'value', 'arr' => ['foo bar', 'baz']]; $this->assertSame($compare, $result->val()); }