Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an array
<?php is_array(mixed $value): bool
<?php     assert(isset($getopt['phpunit-argv']) && is_string($getopt['phpunit-argv']));

    $phpunitArgv = unserialize($getopt['phpunit-argv'], ['allowed_classes' => false]);

    assert(is_array($phpunitArgv));



    $bootPest();
<?php             return;

        }



        assert(isset($data['defects']) && is_array($data['defects']));

        assert(isset($data['times']) && is_array($data['times']));



        foreach (array_keys($data['defects']) as $test) {
<?php         }



        assert(isset($data['defects']) && is_array($data['defects']));

        assert(isset($data['times']) && is_array($data['times']));



        foreach (array_keys($data['defects']) as $test) {

            $data['defects'][$test] = TestStatus::from($data['defects'][$test]);
<?php     private function retrieve(string $key, mixed $value, mixed $default = null): mixed

    {

        if (is_array($value)) {

            return $value[$key] ?? $default;

        }
<?php         if (count($testParameterTypes) === 1) {

            return [$boundDatasetResult];

        }

        if (! is_array($boundDatasetResult)) {

            return [$boundDatasetResult];

        }
<?php     public function toOnlyImplement(array|string $interfaces): ArchExpectation

    {

        $interfaces = is_array($interfaces) ? $interfaces : [$interfaces];



        return Targeted::make(

            $this,
<?php     public function toImplement(array|string $interfaces): ArchExpectation

    {

        $interfaces = is_array($interfaces) ? $interfaces : [$interfaces];



        return Targeted::make(

            $this,
<?php                 $this->and($k)->toBeSnakeCase($message);

            }



            if (is_array($item)) {

                $this->and($item)->toHaveSnakeCaseKeys($message);

            }

        }
<?php                 $this->and($k)->toBeKebabCase($message);

            }



            if (is_array($item)) {

                $this->and($item)->toHaveKebabCaseKeys($message);

            }

        }
<?php                 $this->and($k)->toBeCamelCase($message);

            }



            if (is_array($item)) {

                $this->and($item)->toHaveCamelCaseKeys($message);

            }

        }
<?php                 $this->and($k)->toBeStudlyCase($message);

            }



            if (is_array($item)) {

                $this->and($item)->toHaveStudlyCaseKeys($message);

            }

        }
<?php     {

        foreach ($keys as $k => $key) {

            try {

                if (is_array($key)) {

                    $this->toHaveKeys(array_keys(Arr::dot($key, $k.'.')));

                } else {

                    $this->original->toHaveKey($key);
<?php     public function toImplement(array|string $interfaces): ArchExpectation

    {

        $interfaces = is_array($interfaces) ? $interfaces : [$interfaces];



        return Targeted::make(

            $this->original,
<?php     public function throwExpectationFailedException(string $name, array|string $arguments = []): never

    {

        $arguments = is_array($arguments) ? $arguments : [$arguments];



        $exporter = Exporter::default();
<?php     {

        $this->terminate();



        if (is_array($error = error_get_last())) {

            if (! in_array($error['type'], [E_ERROR, E_CORE_ERROR], true)) {

                return;

            }