public static function subset(array $expected, $actual, bool $strict = true): bool
    {
        if (!is_array($actual)) {
            return false;
        }

        $patched = self::patch($actual, $expected);

        return self::exact($patched, $actual, $strict);
    }
public static function subset(array $expected, $actual, bool $strict = true): bool
    {
        if (!is_array($actual)) {
            return false;
        }

        $patched = self::patch($actual, $expected);

        return self::exact($patched, $actual, $strict);
    }
public static function subset ( array $ expected , $ actual , bool $ strict = true ) : bool { if ( ! is_array ( $ actual ) ) { return false ; } $ patched = self :: patch ( $ actual , $ expected ) ; return self :: exact ( $ patched , $ actual , $ strict ) ; }
Does the expected subset appear within the actual value?

@param array $expected
@param $actual
@param bool $strict
@return bool
Does the expected subset appear within the actual value?