mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
applying enhancement to use ddWhen inside ddUnless
This commit is contained in:
@ -147,17 +147,7 @@ final class Expectation
|
|||||||
*/
|
*/
|
||||||
public function ddUnless($boolean, mixed ...$arguments): void
|
public function ddUnless($boolean, mixed ...$arguments): void
|
||||||
{
|
{
|
||||||
if ($boolean) {
|
$this->ddWhen(! $boolean, ...$arguments);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (function_exists('dd')) {
|
|
||||||
dd($this->value, ...$arguments);
|
|
||||||
}
|
|
||||||
|
|
||||||
var_dump($this->value);
|
|
||||||
|
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user