Add NullRunner stub for integration tests with X_EXPERIMENTAL_RUNNER
#296
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changeset adds a new
NullRunnerstub for integration tests with the newX_EXPERIMENTAL_RUNNERenvironment variable. This experimental application runner can be used in environments where the application lifecycle is managed externally. It can be useful for integration testing or when embedding the application in other systems.Note that this runner is not intended for production use and is not loaded by default. You need to explicitly configure your application to use this runner through the
X_EXPERIMENTAL_RUNNERenvironment variable:Likewise, you may pass this runner through an environment variable from your integration tests, see also included PHPT test files for examples.
Builds on top of #295, #294, #292, #289, #288, #287, #236, #224, #44, reactphp/promise#248, and others