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 还没有评估数据。