--FILE-- check('a'); } catch(DigitException $e) { echo $e->getMainMessage(); } --EXPECTF-- "a" must contain only digits (0-9)