Documentation

PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider
in package

Provides human readable messages for each JSON error.

Tags
since

Class available since Release 3.7.0

Table of Contents

determineJsonError()  : string
Translates JSON error to a human readable string.
translateTypeToPrefix()  : string
Translates a given type to a human readable message prefix.

Methods

determineJsonError()

Translates JSON error to a human readable string.

public static determineJsonError(string $error[, string $prefix = '' ]) : string
Parameters
$error : string
$prefix : string = ''
Return values
string

translateTypeToPrefix()

Translates a given type to a human readable message prefix.

public static translateTypeToPrefix(string $type) : string
Parameters
$type : string
Return values
string

Search results