feat(expect): updates test suite to use expectation api

This commit is contained in:
Nuno Maduro
2020-07-14 23:15:14 +02:00
parent e03d015120
commit 832882160f
37 changed files with 151 additions and 257 deletions

View File

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Pest\PendingObjects;
use Closure;
use Pest\Expectation;
use Pest\Factories\TestCaseFactory;
use Pest\Support\Backtrace;
use Pest\Support\NullClosure;
@ -84,6 +85,16 @@ final class TestCall
return $this;
}
/**
* Creates a new expectation.
*
* @param mixed $value the Value
*/
public function expect($value): Expectation
{
return expect($value);
}
/**
* Sets the test depends.
*/