PHP 8.2.31
Preview: IsAnything.php Size: 1.35 KB
//opt/cpanel/ea-wappspector/vendor/phpunit/phpunit/src/Framework/Constraint/IsAnything.php

<?php declare(strict_types=1);
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PHPUnit\Framework\Constraint;

use PHPUnit\Framework\ExpectationFailedException;

/**
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
 */
final class IsAnything extends Constraint
{
    /**
     * Evaluates the constraint for parameter $other.
     *
     * If $returnResult is set to false (the default), an exception is thrown
     * in case of a failure. null is returned otherwise.
     *
     * If $returnResult is true, the result of the evaluation is returned as
     * a boolean value instead: true in case of success, false in case of a
     * failure.
     *
     * @throws ExpectationFailedException
     */
    public function evaluate(mixed $other, string $description = '', bool $returnResult = false): ?bool
    {
        return $returnResult ? true : null;
    }

    /**
     * Returns a string representation of the constraint.
     */
    public function toString(): string
    {
        return 'is anything';
    }

    /**
     * Counts the number of constraint elements.
     */
    public function count(): int
    {
        return 0;
    }
}

Directory Contents

Dirs: 11 × Files: 5

Name Size Perms Modified Actions
Boolean DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Equality DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Exception DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Math DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Object DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Operator DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
String DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Type DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
1.74 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
8.18 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
1.35 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
3.71 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
2.60 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download

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