mirror of
https://github.com/pestphp/pest.git
synced 2026-03-08 00:37:22 +01:00
implemented pipe closure with $next as the last parameter
This commit is contained in:
18
src/Exceptions/PipeException.php
Normal file
18
src/Exceptions/PipeException.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Pest\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class PipeException extends Exception
|
||||
{
|
||||
public static function optionalParmetersShouldBecomeRequired(string $expectationName): PipeException
|
||||
{
|
||||
return new self("You're attempting to pipe '$expectationName', but in pipelines optional parmeters should be declared as required)");
|
||||
}
|
||||
|
||||
public static function expectationNotFound($expectationName): PipeException
|
||||
{
|
||||
return new self("Expectation $expectationName was not found in Pest");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user