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

testCharset() public method

Tests that character set declarations render the correct character set and short meta tag.
public testCharset ( )
    public function testCharset()
    {
        $result = $this->html->charset();
        $this->assertTags($result, array('meta' => array('charset' => 'UTF-8')));
        $result = $this->html->charset('utf-8');
        $this->assertTags($result, array('meta' => array('charset' => 'utf-8')));
        $result = $this->html->charset('UTF-7');
        $this->assertTags($result, array('meta' => array('charset' => 'UTF-7')));
    }