ordering arrays before comparing

This commit is contained in:
Sergio Bertolin 2015-10-07 09:24:12 +00:00
parent 1b0e128b44
commit 957d60cd0a
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class FeatureContext extends BehatContext {
if ($usersList instanceof \Behat\Gherkin\Node\TableNode) {
$users = $usersList->getRows()[0];
$respondedArray = $this->getArrayOfUsersResponded($this->response);
PHPUnit_Framework_Assert::assertEquals($users, $respondedArray);
PHPUnit_Framework_Assert::assertEquals(asort($users), asort($respondedArray));
}
}
@ -96,7 +96,7 @@ class FeatureContext extends BehatContext {
if ($groupsList instanceof \Behat\Gherkin\Node\TableNode) {
$groups = $groupsList->getRows()[0];
$respondedArray = $this->getArrayOfGroupsResponded($this->response);
PHPUnit_Framework_Assert::assertEquals($groups, $respondedArray);
PHPUnit_Framework_Assert::assertEquals(asort($groups), asort($respondedArray));
}
}