/** * Test that the rules is above or on the wanted threshold * * @covers \Psecio\Iniscan\Rule::respectThreshold * @dataProvider thresholdDataProvider * @param string $level The rule level * @param string $threshold The wanted threshold * @param bool $expectedResult The expected function result */ public function testRespectThreshold($level, $threshold, $expectedResult) { $config = array('level' => $level); $rule = new Rule($config, 'testing123'); $this->assertSame($expectedResult, $rule->respectThreshold($threshold)); }