Ejemplo n.º 1
0
 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());
 }