alnum() public static method

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
return boolean
Exemplo n.º 1
0
 public function testInvalidAlnum()
 {
     $this->setExpectedException('Assert\\AssertionFailedException', null, Assertion::INVALID_ALNUM);
     Assertion::alnum("1a");
 }