getInputType() public method

Figures out which type of input was provided
public getInputType ( ) : string
return string
Beispiel #1
0
 /**
  * @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());
 }