mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
feat(expect): makes expect work with pending higher order tests
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user