Merge branch 'DEV_2' into HEAD
[m6w6/ext-http] / phpunit / UrlTest.php
index 3f66e52f018663edc332d3de37be6df8b36db04c..dcf3b4fdd2533db26be145c3c874fdd1b9b2ab15 100644 (file)
@@ -24,7 +24,7 @@ class UrlTest extends PHPUnit_Framework_TestCase {
                $this->assertEquals("www.example.com", $url->host);
                $this->assertEquals(8080, $url->port);
                $this->assertEquals("/path/changed", $url->path);
-               $this->assertEquals("foo=&more%5B0%5D=1&more%5B1%5D=2&added=this", $url->query);
+               $this->assertEquals("more%5B0%5D=1&more%5B1%5D=2&added=this", $url->query);
         $this->assertEmpty($url->fragment);
     }
 
@@ -43,6 +43,7 @@ class UrlTest extends PHPUnit_Framework_TestCase {
 
     function testArrays() {
         $url = new http\Url($this->url);
-        $this->assertEquals($url->toArray(), (new http\Url($url->toArray()))->toArray());
+               $url2 = new http\Url($url->toArray());
+        $this->assertEquals($url->toArray(), $url2->toArray());
     }
 }