X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=phpunit%2FQueryStringTest.php;h=fb2eb4741f253dba81be89fa13e2f7627135d07e;hb=0327131cf87a5be32585fea1291178b60a359cbf;hp=2fde23ac7695d5014742925df17169b366127ef2;hpb=179b9e4d1c888871a3393a6045dfb675a14b6675;p=m6w6%2Fext-http diff --git a/phpunit/QueryStringTest.php b/phpunit/QueryStringTest.php index 2fde23a..fb2eb47 100644 --- a/phpunit/QueryStringTest.php +++ b/phpunit/QueryStringTest.php @@ -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() {