lithium\tests\cases\test\UnitTest::testAssertTagsFailTextEqual PHP Method

testAssertTagsFailTextEqual() public method

    public function testAssertTagsFailTextEqual()
    {
        $result = '<span>ok</span>';
        $this->test->assertTags($result, array('span'));
        $results = $this->test->results();
        $expected = 'fail';
        $this->assertEqual($expected, $results[0]['result']);
        $expected = '- Item #1 / regex #0 failed: Text equals "span"';
        $this->assertEqual($expected, $results[0]['message']);
    }
UnitTest