mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 01:07:23 +01:00
add custom message to failed expectations
This commit is contained in:
@ -21,7 +21,7 @@ final class ExpectationPipeline
|
||||
/**
|
||||
* The list of passables.
|
||||
*
|
||||
* @var array<int, mixed>
|
||||
* @var array<array-key, mixed>
|
||||
*/
|
||||
private array $passables;
|
||||
|
||||
@ -46,7 +46,7 @@ final class ExpectationPipeline
|
||||
*/
|
||||
public function send(mixed ...$passables): self
|
||||
{
|
||||
$this->passables = array_values($passables);
|
||||
$this->passables = $passables;
|
||||
|
||||
return $this;
|
||||
}
|
||||
@ -72,7 +72,7 @@ final class ExpectationPipeline
|
||||
array_reverse($this->pipes),
|
||||
$this->carry(),
|
||||
function (): void {
|
||||
($this->closure)(...$this->passables);
|
||||
call_user_func_array($this->closure, $this->passables);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user