--FILE-- check('foo'); } catch (ValidationException $exception) { echo $exception->getMainMessage(); } ?> --EXPECT-- "foo" is not valid