mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
create Any matcher
This commit is contained in:
@ -14,6 +14,7 @@ use Pest\Exceptions\InvalidExpectationValue;
|
||||
use Pest\Expectations\EachExpectation;
|
||||
use Pest\Expectations\HigherOrderExpectation;
|
||||
use Pest\Expectations\OppositeExpectation;
|
||||
use Pest\Matchers\Any;
|
||||
use Pest\Support\ExpectationPipeline;
|
||||
use PHPUnit\Framework\Assert;
|
||||
use PHPUnit\Framework\ExpectationFailedException;
|
||||
@ -339,4 +340,9 @@ final class Expectation
|
||||
|| method_exists(Mixins\Expectation::class, $name)
|
||||
|| self::hasExtend($name);
|
||||
}
|
||||
|
||||
public function any(): Any
|
||||
{
|
||||
return new Any();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user