class ProtobufMessageComparator extends Comparator (View source)

internal  
 

Properties

protected Exporter $exporter

Methods

__construct()

No description

bool
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

__construct()

No description

bool 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

bool

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

ComparisonFailure