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

@ -110,8 +110,10 @@ function afterAll(Closure $closure = null): void
* Creates a new expectation.
*
* @param mixed $value the Value
*
* @return Expectation
*/
function expect($value): Expectation
function expect($value)
{
return new Expectation($value);
return test()->expect($value);
}