Make export of non-scalar values for events optional #5515
Labels
feature/events
Issues related to PHPUnit's event system
type/enhancement
A new idea that should be implemented
Milestone
To address performance issues such as #5183 and sebastianbergmann/exporter#18 (comment), we changed the event system to not emit the
Test\AssertionSucceeded
andTest\AssertionFailed
events when they do not have subscribers. The recently opened #5510 shows that there is at least one more performance issue related to theTest\AssertionSucceeded
andTest\AssertionFailed
events.I discussed this issue with @theseer today and we came up with a different (hopefully better) solution to the performance issue that is rooted in exporting large object graphs to strings: instead of only emitting the events in question when they have subscribers, we would like to always emit them, but make the expensive export operation optional.
The text was updated successfully, but these errors were encountered: