ParsedownTest::testSpecialProtocols PHP Method

testSpecialProtocols() public method

    public function testSpecialProtocols()
    {
        $this->uri->initializeWithURL('http://testing.dev/item2/item2-2')->init();
        $this->assertSame('<p><a href="mailto:[email protected]">mailto</a></p>', $this->parsedown->text('[mailto](mailto:[email protected])'));
        $this->assertSame('<p><a href="xmpp:[email protected]">xmpp</a></p>', $this->parsedown->text('[xmpp](xmpp:[email protected])'));
        $this->assertSame('<p><a href="tel:123-555-12345">tel</a></p>', $this->parsedown->text('[tel](tel:123-555-12345)'));
        $this->assertSame('<p><a href="sms:123-555-12345">sms</a></p>', $this->parsedown->text('[sms](sms:123-555-12345)'));
        $this->assertSame('<p><a href="rdp://ts.example.com">ts.example.com</a></p>', $this->parsedown->text('[ts.example.com](rdp://ts.example.com)'));
    }