Codeception / Codeception/lib-asserts
Suggestion: Add assertion that an array element is *before* another
Offen
- Vorherrschende Sprache
- PHP
- Sterne
- 105
- Forks
- 5
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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:
```php
$searchresults = ['apple', 'orange'];
$I->assertIsBeforeInArray('apple', 'orange'); // I need to think about the function's name some more... ;-)
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.