function Assert::isEmpty
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit\Framework\Assert::isEmpty()
@psalm-pure @psalm-assert empty $value
Parameters
mixed $value:
string $message:
Throws
File
-
vendor/
webmozart/ assert/ src/ Assert.php, line 557
Class
- Assert
- Efficient assertions to validate the input/output of your methods.
Namespace
Webmozart\AssertCode
public static function isEmpty($value, $message = '') {
if (!empty($value)) {
static::reportInvalidArgument(\sprintf($message ?: 'Expected an empty value. Got: %s', static::valueToString($value)));
}
}