spec/Anshar/Http/UriSpec.php
function it_retains_the_original_state_of_the_instance_duplicated_with_a_new_host()
    {
        $original_uri = (string) $this->getWrappedObject();

        $new_host = $this->withHost("quux.qux");

        $this->__toString()->shouldReturn($original_uri);
    }
function it_retains_the_original_state_of_the_instance_duplicated_with_a_new_host()
    {
        $original_uri = (string) $this->getWrappedObject();

        $new_host = $this->withHost("quux.qux");

        $this->__toString()->shouldReturn($original_uri);
    }
function it_retains_the_original_state_of_the_instance_duplicated_with_a_new_host ( ) { $ original_uri = ( string ) $ this -> getWrappedObject ( ) ; $ new_host = $ this -> withHost ( "quux.qux" ) ; $ this -> __toString ( ) -> shouldReturn ( $ original_uri ) ; }
This method MUST retain the state of the current instance, and return
an instance that contains the specified host.
This method MUST retain the state of the current instance and return an instance that contains the specified host .