We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d86a2 commit c2eaad9Copy full SHA for c2eaad9
tests/Unit/UrlBuilderTest.php
@@ -16,6 +16,15 @@ public function it_builds_a_url()
16
$this->assertEquals('/abc/def?ref=testcase&foo=bar', $urlBuilder->build(false));
17
}
18
19
+ /** @test */
20
+ public function it_has_a_static_method_to_get_a_new_url_builder()
21
+ {
22
+ $urlBuilder = UrlBuilder::make('http://www.example.com:8000/abc/def?ref=testcase&foo=bar');
23
+
24
+ $this->assertEquals('http://www.example.com:8000/abc/def?ref=testcase&foo=bar', $urlBuilder->build());
25
+ $this->assertEquals('/abc/def?ref=testcase&foo=bar', $urlBuilder->build(false));
26
+ }
27
28
/** @test */
29
public function it_gets_url_parts()
30
{
0 commit comments