Codeception / Codeception/lib-asserts
Suggestion: Add assertion that an array element is *before* another
未關閉
- 主要語言
- PHP
- 星號
- 105
- 分支
- 5
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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... ;-)
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。