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

Suggestion: Add assertion that an array element is *before* another #8

Open
ThomasLandauer opened this issue Apr 9, 2021 · 0 comments

Comments

@ThomasLandauer
Copy link
Member

Sometimes I'd need a method to assert that in an array, one element comes before another. E.g. when testing things like search functions, where the order does matter.
Right now I'm using some lengthy workaround. But something like this would be nicer:

$searchresults = ['apple', 'orange'];
$I->assertIsBeforeInArray('apple', 'orange'); // I need to think about the function's name some more... ;-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant