--FILE-- check(1); } catch(DigitException $e) { echo $e->getMainMessage(); } --EXPECTF-- 1 must not contain digits (0-9)