mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat: re-adds tap to avoid BC
This commit is contained in:
@ -49,6 +49,16 @@ final class HigherOrderCallables
|
||||
return $this->expect($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the given callable after the test has executed the setup method.
|
||||
*
|
||||
* @deprecated This method is deprecated. Please use `defer` instead.
|
||||
*/
|
||||
public function tap(callable $callable): object
|
||||
{
|
||||
return $this->defer($callable);
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the given callable after the test has executed the setup method.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user