alnum() public static méthode

Assert that value is alphanumeric.
public static alnum ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean
$value mixed
$message string | null
$propertyPath string | null
Résultat boolean
Exemple #1
0
 public function testInvalidAlnum()
 {
     $this->setExpectedException('Assert\\AssertionFailedException', null, Assertion::INVALID_ALNUM);
     Assertion::alnum("1a");
 }