Symfony

Run real browser tests through Symfony's kernel, with application services and profiler evidence close at hand.

One test, both sides

The playwright-php/playwright-symfony bundle connects a real Playwright browser to Symfony's test kernel. Requests to configured application hosts are handled inside the PHPUnit process, while external requests keep using the browser network.

Playwright remains responsible for what the user can see and do. Symfony provides controlled setup and framework evidence: application services, authentication, the last request and response, HttpKernel events, and profiler collectors.

Where the bridge fits

Use the bridge when both sides matter in the same scenario: a browser interaction must be proven, and the application state or response that produced it also matters.

A test concerned only with PHP values belongs in a unit, integration, or functional suite. A black-box deployment test belongs against a running server. This integration is the focused middle: real browser behavior with Symfony's test tools close at hand.