elliotchance / concise

✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
MIT License
45 stars 3 forks source link

?:array has item ?:array in key path ?:string #169

Open elliotchance opened 10 years ago

elliotchance commented 10 years ago
$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.