public function testGetFilterForRule($rule, $return, $expectException) { if ($expectException) { $this->setExpectedException('\\UnexpectedValueException'); } $this->assertEquals($return, $this->loader->getFilterForRule($rule)); }