feat(expect): makes expect work with pending higher order tests

This commit is contained in:
Nuno Maduro
2020-07-15 00:34:59 +02:00
parent 1aec8bac55
commit e2deaae6c9
8 changed files with 45 additions and 26 deletions

View File

@ -5,7 +5,6 @@ declare(strict_types=1);
namespace Pest\PendingObjects;
use Closure;
use Pest\Expectation;
use Pest\Factories\TestCaseFactory;
use Pest\Support\Backtrace;
use Pest\Support\NullClosure;
@ -13,6 +12,8 @@ use Pest\TestSuite;
use SebastianBergmann\Exporter\Exporter;
/**
* @method \Pest\Expectation expect(mixed $value)
*
* @internal
*/
final class TestCall
@ -85,16 +86,6 @@ 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.
*/