lithium\tests\cases\template\helper\HtmlTest::testMetaLink PHP Method

    public function testMetaLink()
    {
        $result = $this->html->link('RSS Feed', array('controller' => 'posts', 'type' => 'rss'), array('type' => 'rss'));
        $this->assertTags($result, array('link' => array('href' => 'regex:/.*\\/posts\\/index\\.rss/', 'type' => 'application/rss+xml', 'rel' => 'alternate', 'title' => 'RSS Feed')));
        $result = $this->html->link('Atom Feed', array('controller' => 'posts', 'type' => 'xml'), array('type' => 'atom'));
        $this->assertTags($result, array('link' => array('href' => 'regex:/.*\\/posts\\/index\\.xml/', 'type' => 'application/atom+xml', 'title' => 'Atom Feed', 'rel' => 'alternate')));
        $result = $this->html->link('No-existy', '/posts.xmp', array('type' => 'rong'));
        $this->assertTags($result, array('link' => array('href' => 'regex:/.*\\/posts\\.xmp/', 'title' => 'No-existy')));
        $result = $this->html->link('No-existy', '/posts.xpp', array('type' => 'atom'));
        $this->assertTags($result, array('link' => array('href' => 'regex:/.*\\/posts\\.xpp/', 'type' => 'application/atom+xml', 'title' => 'No-existy', 'rel' => 'alternate')));
        $result = $this->html->link('Favicon', array(), array('type' => 'icon'));
        $expected = array('link' => array('href' => 'regex:/.*favicon\\.ico/', 'type' => 'image/x-icon', 'rel' => 'icon', 'title' => 'Favicon'), array('link' => array('href' => 'regex:/.*favicon\\.ico/', 'type' => 'image/x-icon', 'rel' => 'shortcut icon', 'title' => 'Favicon')));
        $this->assertTags($result, $expected);
    }