create Any matcher

This commit is contained in:
Fabio Ivona
2022-09-19 11:00:13 +02:00
parent 8275d7e08d
commit f3a748fee3
7 changed files with 36 additions and 15 deletions

View File

@ -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();
}
}