class PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider (View source)

Provides human readable messages for each JSON error.

Methods

static string
determineJsonError(string $error, string $prefix = '')

Translates JSON error to a human readable string.

static string
translateTypeToPrefix(string $type)

Translates a given type to a human readable message prefix.

Details

static string determineJsonError(string $error, string $prefix = '')

Translates JSON error to a human readable string.

Parameters

string $error
string $prefix

Return Value

string

static string translateTypeToPrefix(string $type)

Translates a given type to a human readable message prefix.

Parameters

string $type

Return Value

string