GuzzleHttp\Tests\Psr7\UriTest::testRelativeUriWithPathHavingColonSegment PHP Method

testRelativeUriWithPathHavingColonSegment() public method

    public function testRelativeUriWithPathHavingColonSegment()
    {
        $uri = (new Uri('urn:/mailto:foo'))->withScheme('');
        $this->assertSame('/mailto:foo', $uri->getPath());
        $this->setExpectedException('\\InvalidArgumentException');
        (new Uri('urn:mailto:foo'))->withScheme('');
    }
UriTest