mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17: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);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
9
src/Support/NullValue.php
Normal file
9
src/Support/NullValue.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pest\Support;
|
||||
|
||||
final class NullValue
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user