PHPUnit Runner is a VS Code extension for discovering and running PHPUnit tests directly from the editor and the Testing view.
It parses PHPUnit test files, organizes them by folder structure, and lets you run the current file, the test at the cursor, or discovered tests from the VS Code test explorer.
Features
Discovers PHPUnit test files across the workspace
Detects test methods by:
test* method names
@test docblocks
#[Test] attributes
Organizes tests in the Testing panel by workspace, folders, files, classes, and methods
Run the current file from the editor title
Run the test at the current cursor position
Shows PHPUnit output in a dedicated output channel
Supports local execution and Docker container execution