X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=phpunit%2FUrlTest.php;h=dcf3b4fdd2533db26be145c3c874fdd1b9b2ab15;hb=0b83632b2b0a03eeca090f993259ccd95ab646fb;hp=3f66e52f018663edc332d3de37be6df8b36db04c;hpb=61c5a47e7530b142df6b67332e60a339998c2492;p=m6w6%2Fext-http diff --git a/phpunit/UrlTest.php b/phpunit/UrlTest.php index 3f66e52..dcf3b4f 100644 --- a/phpunit/UrlTest.php +++ b/phpunit/UrlTest.php @@ -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()); } }