class ProtobufMessageComparator extends Comparator

Properties

protected Exporter $exporter

Methods

__construct()

No description

boolean
accepts(mixed $expected, mixed $actual)

Returns whether the comparator can compare two values.

assertEquals(Message $expected, Message $actual, float|int $delta = 0, bool $canonicalize = FALSE, bool $ignoreCase = FALSE)

Asserts that two values are equal.

Details

at line 30
__construct()

at line 43
boolean accepts(mixed $expected, mixed $actual)

Returns whether the comparator can compare two values.

Parameters

mixed $expected The first value to compare
mixed $actual The second value to compare

Return Value

boolean

at line 63
assertEquals(Message $expected, Message $actual, float|int $delta = 0, bool $canonicalize = FALSE, bool $ignoreCase = FALSE)

Asserts that two values are equal.

Parameters

Message $expected The first value to compare
Message $actual The second value to compare
float|int $delta The allowed numerical distance between two values to consider them equal
bool $canonicalize If set to TRUE, arrays are sorted before comparison
bool $ignoreCase If set to TRUE, upper- and lowercasing is ignored when comparing string values

Exceptions

PHPUnit_Framework_ComparisonFailure Thrown when the comparison fails. Contains information about the specific errors that lead to the failure.