ScriptFUSIONTest\Integration\Porter\Net\UrlBuilderTest::testBuildUrl PHP Method

testBuildUrl() public method

Tests that UrlBuilder correctly builds a full URL from the specified base and relative URL fragments.
public testBuildUrl ( string | null $base, string | null $relative, string $full )
$base string | null Base URL path fragment.
$relative string | null Relative URL path fragment.
$full string Full URL.
    public function testBuildUrl($base, $relative, $full)
    {
        $builder = new UrlBuilder(new HttpOptions());
        self::assertSame("http://foo/{$full}", $builder->buildUrl("{$relative}", [], "http://foo/{$base}"));
    }