--TEST-- Test fail while creating a ServiceRunnable with an invalid type --FILE-- getMessage() == 'Invalid Runnable type. Must be RUNNABLE_COMMAND or RUNNABLE_SERVICE.') { echo 'OK'; } else { var_dump($e->getMessage()); } } --EXPECT-- OK