1
0
Fork 0
Commit Graph

8 Commits (6510ee5c4c55b33e943393d7727eae37c457e010)

Author SHA1 Message Date
John Kary 06eb4027a7 Make test less brittle
Shouldn't really care about whether the IO is touched.
That's the test knowing too much about the implementation.
2012-10-07 09:46:44 -05:00
John Kary 88650f9333 Add test for intermixing PHP callables and CLI commands in a single event's script stack
Wrapped execution of the PHP callable in its own method in order to mock/test it
2012-10-06 22:37:52 -05:00
John Kary 5aa3762c09 Expand tests for valid CLI command from script 2012-10-06 21:54:52 -05:00
John Kary be90496952 Add ability to call CLI-based commands from an event 2012-10-05 23:37:26 -05:00
Grégoire Pineau f4e9dd4fb8 Fixed PSR rules 2012-06-14 12:10:01 +02:00
Jordi Boggiano d3cec0399a CS fixes & do not replace the exception since that removes the stack trace 2012-05-22 13:16:56 +02:00
Andrea Turso 3a31b59473 Minor changes to the EventDispatcherTest
- Removed Exception class import
 - Added FQN at L60
 - Added documentation
 - Added @group event-dispatcher
2012-05-16 16:55:24 +01:00
Andrea Turso f626ccbcee Wrapped the listener invocation a try/catch block that catches any
exception and throws a \RuntimeException.
Added a test case for the EventDispatcher.

Note:
In order to test the doDispatch method I had to use a stub EventDispatcher
with a getListeners that returned a preconfigured array. IMHO there should
be a way to inject the listeners into the EventDispatcher.
2012-05-15 21:25:18 +01:00