class QueryStringTest extends PHPUnit_Framework_TestCase {
protected $q;
- protected $s = "a=b&r[]=0&r[]=1&r[]=2&rr[][]=00&rr[][]=10&1=2";
- protected $e = "a=b&r%5B0%5D=0&r%5B1%5D=1&r%5B2%5D=2&rr%5B0%5D%5B0%5D=00&rr%5B1%5D%5B0%5D=10&1=2";
+ protected $s = "a=b&r[]=0&r[]=1&r[]=2&rr[][]=00&rr[][]=01&1=2";
+ protected $e = "a=b&r%5B0%5D=0&r%5B1%5D=1&r%5B2%5D=2&rr%5B0%5D%5B0%5D=00&rr%5B0%5D%5B1%5D=01&1=2";
function setUp() {
$this->q = new http\QueryString($this->s);
}
function testGetRR() {
- $this->assertEquals(array(array("00"),array("10")), $this->q->get("rr"));
+ $this->assertEquals(array(array("00","01")), $this->q->get("rr"));
}
function testGet1() {