Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jun 11, 2019
1 parent 98be2fa commit c47bb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assertions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ assertEqualsCanonicalizing()

Reports an error identified by ``$message`` if the two variables ``$expected`` and ``$actual`` are not equal.

The contents of ``$expected`` and ``$actual`` are canonicalized before they are compared. This means that if the two variables ``$expected`` and ``$actual`` are arrays, then these arrays are sorted before they are compared. Where `$expected`` and ``$actual`` are objects, each object is converted to an array containing all private, protected and public properties.
The contents of ``$expected`` and ``$actual`` are canonicalized before they are compared. For instance, when the two variables ``$expected`` and ``$actual`` are arrays, then these arrays are sorted before they are compared. When `$expected`` and ``$actual`` are objects, each object is converted to an array containing all private, protected and public attributes.

``assertNotEqualsCanonicalizing()`` is the inverse of this assertion and takes the same arguments.

Expand Down

0 comments on commit c47bb5f

Please sign in to comment.