- less custom macro cruft
[m6w6/ext-http] / phpunit / QueryStringTest.php
index 2fde23ac7695d5014742925df17169b366127ef2..fb2eb4741f253dba81be89fa13e2f7627135d07e 100644 (file)
@@ -2,8 +2,8 @@
 
 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);
@@ -31,7 +31,7 @@ class QueryStringTest extends PHPUnit_Framework_TestCase {
     }
 
     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() {