PHP 8.3.31
Preview: Assert.php Size: 1.14 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Testing/Assert.php

<?php

namespace Illuminate\Testing;

use ArrayAccess;
use Illuminate\Testing\Constraints\ArraySubset;
use Illuminate\Testing\Exceptions\InvalidArgumentException;
use PHPUnit\Framework\Assert as PHPUnit;

/**
 * @internal This class is not meant to be used or overwritten outside the framework itself.
 */
abstract class Assert extends PHPUnit
{
    /**
     * Asserts that an array has a specified subset.
     *
     * @param  \ArrayAccess|array  $subset
     * @param  \ArrayAccess|array  $array
     * @param  bool  $checkForIdentity
     * @param  string  $msg
     * @return void
     */
    public static function assertArraySubset($subset, $array, bool $checkForIdentity = false, string $msg = ''): void
    {
        if (! (is_array($subset) || $subset instanceof ArrayAccess)) {
            throw InvalidArgumentException::create(1, 'array or ArrayAccess');
        }

        if (! (is_array($array) || $array instanceof ArrayAccess)) {
            throw InvalidArgumentException::create(2, 'array or ArrayAccess');
        }

        $constraint = new ArraySubset($subset, $checkForIdentity);

        PHPUnit::assertThat($array, $constraint, $msg);
    }
}

Directory Contents

Dirs: 4 × Files: 14

Name Size Perms Modified Actions
Concerns DIR
- drwxrwxrwx 2025-09-17 06:52:58
Edit Download
- drwxrwxrwx 2025-09-17 06:52:58
Edit Download
- drwxrwxrwx 2025-09-17 06:52:58
Edit Download
Fluent DIR
- drwxrwxrwx 2025-09-17 06:52:58
Edit Download
1.14 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
11.30 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
1.37 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
136 B lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
1.41 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
737 B lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
6.75 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
849 B lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
14.54 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
4.12 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
47.58 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
4.83 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download
5.57 KB lrw-rw-rw- 2025-09-17 06:52:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).