Skip to content

Commit

Permalink
describe equality for arrays in array comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
lindt authored and sebastianbergmann committed Sep 7, 2018
1 parent 5de4fc1 commit 2256ef8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ArrayComparator.php
Expand Up @@ -11,6 +11,10 @@

/**
* Compares arrays for equality.
*
* Arrays are equal if they contain the same key-value pairs.
* The order of the keys does not matter.
* The types of key-value pairs do not matter.
*/
class ArrayComparator extends Comparator
{
Expand All @@ -28,7 +32,7 @@ public function accepts($expected, $actual)
}

/**
* Asserts that two values are equal.
* Asserts that two arrays are equal.
*
* @param mixed $expected First value to compare
* @param mixed $actual Second value to compare
Expand Down

0 comments on commit 2256ef8

Please sign in to comment.