19 Commits (3cdca37e8588d262efbb3b589f8a68eea73738a2)

Author SHA1 Message Date
Jordi Boggiano a16ed3d0ed
Add return types to private/internal methods 2 years ago
Jordi Boggiano abdc6893a6
Add void types where no return statement is present 2 years ago
Martin Herndl 79da1c266e
Add types to `Script` tests (#10220) 3 years ago
Jordi Boggiano 1b34495daa
Some phpstan level 4 fixes 3 years ago
Jordi Boggiano 369e8a2247
Fix indenting 5 years ago
Ken Love b51cfce8e6 return the upper-most event in chain 5 years ago
Nils Adermann 3960edd64e Turn EventDispatcher into generic solution handling plugins as well 11 years ago
Jordi Boggiano 5d360ab43b Abort if a script fails to execute, and exit with the exit code of the process, fixes #1943 11 years ago
Jordi Boggiano b04d938319 Fix test to reduce cross-platform issues 12 years ago
Jordi Boggiano 7d7eb3b2e8 Fix shell command output, fixes #1295 12 years ago
Christer Edvartsen 4b8813269c Pass the current dev mode to the event dispatcher, which in turn passes it to the events fired. This can be fetched in scripts to check which mode we are currently in 12 years ago
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.
12 years ago
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
12 years ago
John Kary 5aa3762c09 Expand tests for valid CLI command from script 12 years ago
John Kary be90496952 Add ability to call CLI-based commands from an event 12 years ago
Grégoire Pineau f4e9dd4fb8 Fixed PSR rules 12 years ago
Jordi Boggiano d3cec0399a CS fixes & do not replace the exception since that removes the stack trace 12 years ago
Andrea Turso 3a31b59473 Minor changes to the EventDispatcherTest
- Removed Exception class import
 - Added FQN at L60
 - Added documentation
 - Added @group event-dispatcher
12 years ago
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.
12 years ago