elliotchance / elliotchance/concise
?:array has item ?:array in key path ?:string
Open
Component: Matcher
Size: 2 (Medium)
Type: Feature
- Dominant language
- PHP
- Stars
- 45
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
``` php
$a = [
'foo' => [
'abc' => [
[ 'bar' => 'baz' ],
],
],
];
$this->assert($a, has_item, [ 'bar' => 'baz' ], in_key_path, 'foo.abc');
```
This should also apply to finding keys and values.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.