Skip to content

Conversation

@niweb21
Copy link

@niweb21 niweb21 commented Oct 20, 2025

Implements \Browser\Contracts\HttpServer for Symfony application with an AMP HTTP server like LaravelHttpServer. It's a genius idea btw ❤️

Improve a lot browser testing support for Symfony. Browser code coverage and database refresh with Zenstruck/Foundry are working 🚀.

2 commits to explains the approach:

  • First commit: Copies the LaravelHttpServer implementation.
  • Second commit: Updates the implementation for Symfony application, and add the configuration.
  • Commits must be squashed before merging.

To enable it, set the HTTP server class to use. You can set any class.

pest()->browser()->httpServer(Pest\Browser\Drivers\SymfonyHttpServer::class);

The maintainers of pestphp/pest-plugin-browser may decide not to maintain SymfonyHttpServer. SymfonyHttpServer could be integrated into a community package or the user codebase.


image

@niweb21 niweb21 force-pushed the symfony_implementation branch from 036a43d to 25ca7da Compare October 21, 2025 07:04
@markhuot
Copy link

Thinking about this for https://craftcms.com too. Would love to add a driver for Craft here: https://github.com/markhuot/craft-pest-core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants