/** * @param $input * @param $expectedOutput * @param $expectException * * @dataProvider provideInputs */ public function testGetInputType($input, $expectedOutput, $expectException) { if ($expectException) { $this->setExpectedException('DMS\\Filter\\Exception\\InvalidCallbackException'); } $rule = new Callback($input); $this->assertEquals($expectedOutput, $rule->getInputType()); }