abstract class Assert extends Assert (View source)

Methods

static void
assertArraySubset(array|ArrayAccess $subset, array|ArrayAccess $array, bool $checkForObjectIdentity = false, string $message = '')

Asserts that an array has a specified subset.

Details

static void assertArraySubset(array|ArrayAccess $subset, array|ArrayAccess $array, bool $checkForObjectIdentity = false, string $message = '')

Asserts that an array has a specified subset.

This method was taken over from PHPUnit where it was deprecated. See link for more info.

Parameters

array|ArrayAccess $subset
array|ArrayAccess $array
bool $checkForObjectIdentity
string $message

Return Value

void