feat: re-adds tap to avoid BC

This commit is contained in:
Nuno Maduro
2023-03-14 19:09:46 +00:00
parent fccb90c8ea
commit d71af91360
5 changed files with 29 additions and 3 deletions

View File

@ -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.
*/