1
0
Fork 0
Commit Graph

23 Commits (e30ccdd665828ae66eb1be78f056e39e1d5f55ab)

Author SHA1 Message Date
Jordi Boggiano 37d722e73c
PHPStan/tests updates (#11996)
* Remove a bunch of inline ignores and migrate all PHPUnit assertions to static calls

* Update baseline (1573, 93)

* Update commit hash
2024-05-29 23:12:06 +02:00
Ondřej Mirtes 5bb30ca170
Update PHPStan (#11976)
* Update PHPStan

* Update inline ignores to `@phpstan-ignore` with error identifier
2024-05-22 09:09:04 +02:00
Jordi Boggiano 131da999ac
Fix CS (#11003) 2022-08-17 14:20:07 +02:00
Jordi Boggiano 6a466a120a
Enable strict types on all files 2022-02-24 13:24:34 +01:00
Jordi Boggiano a16ed3d0ed
Add return types to private/internal methods 2022-02-18 11:22:01 +01:00
Jordi Boggiano abdc6893a6
Add void types where no return statement is present 2022-02-18 10:38:54 +01:00
Martin Herndl 79da1c266e
Add types to `Script` tests (#10220) 2021-10-26 21:08:54 +02:00
Jordi Boggiano 1b34495daa
Some phpstan level 4 fixes 2021-06-03 11:29:00 +02:00
Jordi Boggiano 369e8a2247
Fix indenting 2019-07-29 16:44:50 +02:00
Ken Love b51cfce8e6 return the upper-most event in chain 2019-06-13 14:51:27 -04:00
Nils Adermann 3960edd64e Turn EventDispatcher into generic solution handling plugins as well 2013-08-30 12:51:41 +02:00
Jordi Boggiano 5d360ab43b Abort if a script fails to execute, and exit with the exit code of the process, fixes #1943 2013-05-28 19:15:22 +02:00
Jordi Boggiano b04d938319 Fix test to reduce cross-platform issues 2012-12-06 10:07:57 +01:00
Jordi Boggiano 7d7eb3b2e8 Fix shell command output, fixes #1295 2012-12-06 09:56:27 +01:00
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 2012-11-15 17:16:25 +01:00
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