ParsedownTest::testDirectoryRelativeLinks PHP Method

    public function testDirectoryRelativeLinks()
    {
        $this->uri->initializeWithURL('http://testing.dev/item2/item2-2')->init();
        $this->assertSame('<p><a href="/item3/item3-3/foo:bar">Up and Down with Param</a></p>', $this->parsedown->text('[Up and Down with Param](../../03.item3/03.item3-3/foo:bar)'));
        $this->assertSame('<p><a href="/item2/item2-1">Peer Page</a></p>', $this->parsedown->text('[Peer Page](../01.item2-1)'));
        $this->assertSame('<p><a href="/item2/item2-2/item2-2-1">Down a Level</a></p>', $this->parsedown->text('[Down a Level](01.item2-2-1)'));
        $this->assertSame('<p><a href="/item3/item3-3">Up and Down</a></p>', $this->parsedown->text('[Up and Down](../../03.item3/03.item3-3)'));
        $this->assertSame('<p><a href="/item2/item2-2/item2-2-1?foo=bar">Down a Level with Query</a></p>', $this->parsedown->text('[Down a Level with Query](01.item2-2-1?foo=bar)'));
        $this->assertSame('<p><a href="/item3/item3-3?foo=bar">Up and Down with Query</a></p>', $this->parsedown->text('[Up and Down with Query](../../03.item3/03.item3-3?foo=bar)'));
        $this->assertSame('<p><a href="/item3/item3-3#foo">Up and Down with Anchor</a></p>', $this->parsedown->text('[Up and Down with Anchor](../../03.item3/03.item3-3#foo)'));
    }