We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f040c1b commit a2e8346Copy full SHA for a2e8346
test.php
test/UrlTest.php
@@ -78,6 +78,17 @@ public function testParser()
78
$expected = 'http://doe:[email protected]:8080/path/to/another/resource?arg1=456&arg3=test#target';
79
$this->assertEquals($expected, $url->buildUrl());
80
81
+ $url->clearQueryParameters();
82
+ $this->assertFalse($url->hasQueryParameters());
83
+
84
+ $url->setQueryParametersFromArray(array(
85
+ 'arg1' => 1,
86
+ 'arg2' => 2
87
+ ));
88
89
+ $this->assertTrue($url->hasQueryParameters());
90
+ $this->assertEquals(2, $url->countQueryParameters());
91
92
}
93
94
0 commit comments