Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayComparator ignores order #44

Closed
luckydonald opened this issue Dec 1, 2017 · 2 comments
Closed

ArrayComparator ignores order #44

luckydonald opened this issue Dec 1, 2017 · 2 comments
Labels

Comments

@luckydonald
Copy link

Even with $canonicalize = false.

$expected = [
	"first" => "lel",
	"middle" => "hurr",
	"last" => "lol",
];
$different = [  // just to make sure the assert checks the sorting.
	"first" => "lel",
	"last" => "lol",
	"middle" => "hurr",
];


$comparator = SebastianBergmann\Comparator\ArrayComparator();
$comparator->assertEquals($expected, $different);

This should fail. But it doesn't.

@stale
Copy link

stale bot commented May 15, 2018

This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 15, 2018
@stale
Copy link

stale bot commented May 22, 2018

This issue has been automatically closed because it has not had activity since it was marked as stale. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant