apply() public method

{@inheritDoc}
public apply ( Rule $rule, $value )
$rule DMS\Filter\Rules\Rule
Beispiel #1
0
 /**
  * @expectedException \DMS\Filter\Exception\FilterException
  */
 public function testInvalidEncoding()
 {
     if (!function_exists('mb_strtoupper')) {
         $this->markTestSkipped('mbstring extension not enabled');
     }
     $rule = new ToUpperRule(array('encoding' => 'invalid'));
     $filter = new ToUpper();
     $result = $filter->apply($rule, 'x');
 }