function Assert::eq
Parameters
mixed $value:
mixed $expect:
string $message:
Throws
1 call to Assert::eq()
- Assert::count in vendor/
webmozart/ assert/ src/ Assert.php - Does not check if $array is countable, this can generate a warning on php versions after 7.2.
File
-
vendor/
webmozart/ assert/ src/ Assert.php, line 774
Class
- Assert
- Efficient assertions to validate the input/output of your methods.
Namespace
Webmozart\AssertCode
public static function eq($value, $expect, $message = '') {
if ($expect != $value) {
static::reportInvalidArgument(\sprintf($message ?: 'Expected a value equal to %2$s. Got: %s', static::valueToString($value), static::valueToString($expect)));
}
}