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