pest icon indicating copy to clipboard operation
pest copied to clipboard

`toBeDeepOf()`

Open faissaloux opened this issue 1 year ago • 0 comments

Hello 👋🏻

This PR introduces a new expectation: toBeDeepOf(), which makes sure that an array is deep of specific value.

Examples

$array = [1, 2, 3, 4];

expect($array)->toBeDeepOf(0); // true
expect($array)->toBeDeepOf(1); // false
$array = [1, 2, 3 => [1, 2], 4];

expect($array)->toBeDeepOf(0); // false
expect($array)->toBeDeepOf(1); // true

faissaloux avatar Oct 17 '24 01:10 faissaloux