Lines Matching refs:that

26 but fixes a usability issue with error messages that can't be fixed there without
93 `string($value, $message = '')` | Check that a value is a string
94 `stringNotEmpty($value, $message = '')` | Check that a value is a non-empty string
95 `integer($value, $message = '')` | Check that a value is an integer
96 `integerish($value, $message = '')` | Check that a value casts to an integer
97 `float($value, $message = '')` | Check that a value is a float
98 `numeric($value, $message = '')` | Check that a value is numeric
99 `natural($value, $message= ''')` | Check that a value is a non-negative int…
100 `boolean($value, $message = '')` | Check that a value is a boolean
101 `scalar($value, $message = '')` | Check that a value is a scalar
102 `object($value, $message = '')` | Check that a value is an object
103 `resource($value, $type = null, $message = '')` | Check that a value is a resource
104 `isCallable($value, $message = '')` | Check that a value is a callable
105 `isArray($value, $message = '')` | Check that a value is an array
106 `isTraversable($value, $message = '')` (deprecated) | Check that a value is an array or a `\Tr…
107 `isIterable($value, $message = '')` | Check that a value is an array or a `\Tr…
108 `isCountable($value, $message = '')` | Check that a value is an array or a `\Co…
109 `isInstanceOf($value, $class, $message = '')` | Check that a value is an `instanceof` a …
110 `isInstanceOfAny($value, array $classes, $message = '')` | Check that a value is an `instanceof` a …
111 `notInstanceOf($value, $class, $message = '')` | Check that a value is not an `instanceof…
112 `isArrayAccessible($value, $message = '')` | Check that a value can be accessed as an…
118 `true($value, $message = '')` | Check that a value is `true`
119 `false($value, $message = '')` | Check that a value is `false`
120 `null($value, $message = '')` | Check that a value is `null`
121 `notNull($value, $message = '')` | Check that a value is not `null`
122 `isEmpty($value, $message = '')` | Check that a value is `empty()`
123 `notEmpty($value, $message = '')` | Check that a value is not `empty()`
124 `eq($value, $value2, $message = '')` | Check that a value equals another (`==`)
125 `notEq($value, $value2, $message = '')` | Check that a value does not equal another (`!=`)
126 `same($value, $value2, $message = '')` | Check that a value is identical to another (`===`)
127 `notSame($value, $value2, $message = '')` | Check that a value is not identical to another (`…
128 `greaterThan($value, $value2, $message = '')` | Check that a value is greater than another
129 `greaterThanEq($value, $value2, $message = '')` | Check that a value is greater than or equal to an…
130 `lessThan($value, $value2, $message = '')` | Check that a value is less than another
131 `lessThanEq($value, $value2, $message = '')` | Check that a value is less than or equal to anoth…
132 `range($value, $min, $max, $message = '')` | Check that a value is within a range
133 `oneOf($value, array $values, $message = '')` | Check that a value is one of a list of values
137 You should check that a value is a string with `Assert::string()` before making
142 `contains($value, $subString, $message = '')` | Check that a string contains a substring
143 `notContains($value, $subString, $message = '')` | Check that a string does not contains a subst…
144 `startsWith($value, $prefix, $message = '')` | Check that a string has a prefix
145 `startsWithLetter($value, $message = '')` | Check that a string starts with a letter
146 `endsWith($value, $suffix, $message = '')` | Check that a string has a suffix
147 `regex($value, $pattern, $message = '')` | Check that a string matches a regular express…
148 `notRegex($value, $pattern, $message = '')` | Check that a string does not match a regular …
149 `alpha($value, $message = '')` | Check that a string contains letters only
150 `digits($value, $message = '')` | Check that a string contains digits only
151 `alnum($value, $message = '')` | Check that a string contains letters and digi…
152 `lower($value, $message = '')` | Check that a string contains lowercase charac…
153 `upper($value, $message = '')` | Check that a string contains uppercase charac…
154 `length($value, $length, $message = '')` | Check that a string has a certain number of c…
155 `minLength($value, $min, $message = '')` | Check that a string has at least a certain nu…
156 `maxLength($value, $max, $message = '')` | Check that a string has at most a certain num…
157 `lengthBetween($value, $min, $max, $message = '')` | Check that a string has a length in the given…
158 `uuid($value, $message = '')` | Check that a string is a valid UUID
159 `ip($value, $message = '')` | Check that a string is a valid IP (either IPv…
160 `ipv4($value, $message = '')` | Check that a string is a valid IPv4
161 `ipv6($value, $message = '')` | Check that a string is a valid IPv6
162 `notWhitespaceOnly($value, $message = '')` | Check that a string contains at least one non…
168 `fileExists($value, $message = '')` | Check that a value is an existing path
169 `file($value, $message = '')` | Check that a value is an existing file
170 `directory($value, $message = '')` | Check that a value is an existing directory
171 `readable($value, $message = '')` | Check that a value is a readable path
172 `writable($value, $message = '')` | Check that a value is a writable path
178 `classExists($value, $message = '')` | Check that a value is an existing class name
179 `subclassOf($value, $class, $message = '')` | Check that a class is a subclass of another
180 `interfaceExists($value, $message = '')` | Check that a value is an existing interface…
181 `implementsInterface($value, $class, $message = '')` | Check that a class implements an interface
182 `propertyExists($value, $property, $message = '')` | Check that a property exists in a class/obj…
183 `propertyNotExists($value, $property, $message = '')` | Check that a property does not exist in a c…
184 `methodExists($value, $method, $message = '')` | Check that a method exists in a class/object
185 `methodNotExists($value, $method, $message = '')` | Check that a method does not exist in a cla…
191 `keyExists($array, $key, $message = '')` | Check that a key exists in an array
192 `keyNotExists($array, $key, $message = '')` | Check that a key does not exist in an array
193 `count($array, $number, $message = '')` | Check that an array contains a specific number…
194 `minCount($array, $min, $message = '')` | Check that an array contains at least a certai…
195 `maxCount($array, $max, $message = '')` | Check that an array contains at most a certain…
196 `countBetween($array, $min, $max, $message = '')` | Check that an array has a count in the given r…
197 `isList($array, $message = '')` | Check that an array is a non-associative list
198 `isMap($array, $message = '')` | Check that an array is associative and has str…
204 `throws($closure, $class, $message = '')` | Check that a function throws a certain exception. Sub…