Jyxo\HtmlTest::testIs PHP Method

testIs() public method

Tests the is() method.
See also: Jyxo\Html::is()
public testIs ( )
    public function testIs()
    {
        $this->assertTrue(Html::is('foo <b>bar</b>'));
        $this->assertTrue(Html::is('<a href="http://jyxo.cz">boo</a>'));
        $this->assertFalse(Html::is('foo bar'));
        $this->assertFalse(Html::is('one < two'));
        $this->assertFalse(Html::is('foo <br<>'));
        $this->assertFalse(Html::is('<http://blog.cz/>'));
    }