--TEST-- Test fail while creating a Service with multiple invalid Runnables --FILE-- new ServiceRunnable('/path/to/cmd', ServiceRunnable::COMMAND), '_' => 'not a ServiceRunnable' ); try { $service = new Service($runnables); } catch (ServiceException $e) { if ($e->getMessage() == 'Array values must be instances of Intecture\ServiceRunnable') { echo 'OK'; } } --EXPECT-- OK