PhlyTest\Http\UriTest::testPathIsNotPrefixedWithSlashIfSetWithoutOne PHP Method

testPathIsNotPrefixedWithSlashIfSetWithoutOne() public method

    public function testPathIsNotPrefixedWithSlashIfSetWithoutOne()
    {
        $uri = new Uri('http://example.com');
        $new = $uri->withPath('foo/bar');
        $this->assertEquals('foo/bar', $new->getPath());
    }
UriTest