- \PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider
class (none) \ PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider
Provides human readable messages for each JSON error.
Method Summary
Name | Description |
---|---|
determineJsonError($error, $prefix = "") | Translates JSON error to a human readable string. |
translateTypeToPrefix($type) | Translates a given type to a human readable message prefix. |
public static function determineJsonError($error, $prefix = "")
Translates JSON error to a human readable string.
- Parameters:
string
- $prefix- Defaults:
prefix
=""
- Returns:
- string
public static function translateTypeToPrefix($type)
Translates a given type to a human readable message prefix.
- Parameters:
string
- $type- Returns:
- string