DMS\Filter\Filters\ToUpperTest::testRule PHP Method

testRule() public method

public testRule ( $options, $value, $expectedResult, $useEncoding )
    public function testRule($options, $value, $expectedResult, $useEncoding)
    {
        if ($useEncoding && !function_exists('mb_strtoupper')) {
            $this->markTestSkipped('mbstring extension not enabled');
        }
        $rule = new ToUpperRule($options);
        $filter = new ToUpper();
        $result = $filter->apply($rule, $value);
        $this->assertEquals($expectedResult, $result);
    }