PhlyTest\Http\UriTest::testFragmentIsProperlyEncoded PHP Method

testFragmentIsProperlyEncoded() public method

    public function testFragmentIsProperlyEncoded()
    {
        $uri = (new Uri())->withFragment('/p^th?key^=`bar#b@z');
        $expected = '/p%5Eth?key%5E=%60bar%23b@z';
        $this->assertEquals($expected, $uri->getFragment());
    }
UriTest