src/AssertMatchedTrait.php
private static function assertArrayMatched(iterable $pattern, iterable $actual, string $message = ''): void
    {
        static::assertThat((array)$actual, new ArrayConstraint((array)$pattern), $message);
    }
private static function assertArrayMatched(iterable $pattern, iterable $actual, string $message = ''): void
    {
        static::assertThat((array)$actual, new ArrayConstraint((array)$pattern), $message);
    }
Reports an error identified by $message if $actual array is not matched $pattern.

If both the presence and the value are important, then place the value in the pattern
If only the presence of a field is important, then place the "***" in the pattern
If both the presence and the value are NOT important, then do not place anything in pattern

@example assertArrayMatched(
[
"foo" => "***", // check only presence
"bar" => 42 // check presence and value
],
[
"foo" => [
"baz" => 1
],
"bar" => 42,
"baz" => "foo" // do not check at all
]
)

@param iterable $pattern
@param iterable $actual
@param string $message