Open
Description
Hi. I've got idea about testing Behat scenarios with php-vcr...
Why should we put logic in AppKernel.php like this and in app_test.php like this? Maybe use Kernel Events for this?
- On KernelEvents::REQUEST with high priority we do all what we do on AppKernel.php
- On KernelEvents::TERMINATE with lowest priority we "eject" cassette and "stop recording"
Conclusions:
- we have clean AppKernel.php
- we could change dynamic behavior via EventSubscriber logic.
PS: Maybe It would be nice to create Extension for Behat?
Metadata
Metadata
Assignees
Labels
No labels