Lines Matching refs:Assert
1 Webmozart Assert
17 All assertions in the [`Assert`] class throw an `\InvalidArgumentException` if
33 Assert::string($path, 'The path is expected to be a string. Got: %s');
60 use Webmozart\Assert\Assert;
66 Assert::integer($id, 'The employee ID must be an integer. Got: %s');
67 Assert::greaterThan($id, 0, 'The employee ID must be a positive integer. Got: %s');
87 The [`Assert`] class provides the following assertions:
137 You should check that a value is a string with `Assert::string()` before making
212 Assert::allIsInstanceOf($employees, 'Acme\Employee');
221 Assert::nullOrString($middleName, 'The middle name must be a string or null. Got: %s');
258 [`Assert`]: src/Assert.php