mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
Add toBeFalsy
This commit is contained in:
@ -225,6 +225,16 @@ final class Expectation
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the value is falsy.
|
||||
*/
|
||||
public function toBeFalsy(): Expectation
|
||||
{
|
||||
Assert::assertFalse((bool) $this->value);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the value is greater than $expected.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user