Beispiel #1
0
 /**
  * {@inheritdoc}
  * @see BaseAdapter::convertInputValue()
  *
  * @throws   ApiErrorException
  */
 public static function convertInputValue($fieldType, $value, $fieldName = '')
 {
     try {
         return parent::convertInputValue($fieldType, $value, $fieldName);
     } catch (UnexpectedValueException $e) {
         throw new ApiErrorException(400, ErrorMessage::ERR_INVALID_VALUE, $e->getMessage());
     }
 }
Beispiel #2
0
 /**
  * @test
  * @param string $filedType
  * @param mixed  $value     Value what we have to convert
  * @dataProvider providerConvertInputValue()
  * @expectedException \UnexpectedValueException
  */
 public function testConvertInputValue($filedType, $value)
 {
     BaseAdapter::convertInputValue($filedType, $value);
 }