spec/Anshar/Http/UriSpec.php
function it_removes_authority_components_with_empty_authority()
    {
        $new_authority = $this->withAuthority("");

        $new_authority->getAuthority()->shouldReturn("");
        $new_authority->getUserInfo()->shouldReturn("");
        $new_authority->getHost()->shouldReturn("");
        $new_authority->getPort()->shouldReturn(null);
    }
function it_removes_authority_components_with_empty_authority()
    {
        $new_authority = $this->withAuthority("");

        $new_authority->getAuthority()->shouldReturn("");
        $new_authority->getUserInfo()->shouldReturn("");
        $new_authority->getHost()->shouldReturn("");
        $new_authority->getPort()->shouldReturn(null);
    }
function it_removes_authority_components_with_empty_authority ( ) { $ new_authority = $ this -> withAuthority ( "" ) ; $ new_authority -> getAuthority ( ) -> shouldReturn ( "" ) ; $ new_authority -> getUserInfo ( ) -> shouldReturn ( "" ) ; $ new_authority -> getHost ( ) -> shouldReturn ( "" ) ; $ new_authority -> getPort ( ) -> shouldReturn ( null ) ; }
An empty authority is equivalent to removing the authority and all authority components.
An empty authority is equivalent to removing the authority and all authority components .