/** * @expectedException \DMS\Filter\Exception\FilterException */ public function testInvalidEncoding() { if (!function_exists('mb_strtolower')) { $this->markTestSkipped('mbstring extension not enabled'); } $rule = new ToLowerRule(array('encoding' => 'invalid')); $filter = new ToLower(); $result = $filter->apply($rule, 'x'); }