enum

Assert::Assertions::Email::EmailValidationMode

Inherits Enum / Comparable / Value / Object

Which validation pattern to use to validate the email.

Constants

Loose = 0

A simple regular expression. Allows all values with an @ symbol in, and a . in the second host part of the email address.

HTML5 = 1

This matches the pattern used for the HTML5 email input element.

Strict = 2

TODO: Validate against RFC 5322.

Instance methods

get_pattern

Returns the Regex pattern for self.

Source
html5?

Returns true if this enum value equals HTML5

Source
loose?

Returns true if this enum value equals Loose

Source
strict?

Returns true if this enum value equals Strict

Source