DMS\Filter\FilterTest::testFilterValue PHP Method

testFilterValue() public method

public testFilterValue ( )
    public function testFilterValue()
    {
        $value = "this is <b> a string<p> with<b> tags</p> and malformed";
        $filtered = $this->filter->filterValue($value, new Rules\StripTags());
        $this->assertNotEquals($value, $filtered);
        $this->assertNotContains('<b>', $filtered);
        $this->assertNotContains('<p>', $filtered);
    }