PHPUnit installs statistics
By Elon Mallin · VS Code Marketplace · Testing
Run PHPUnit tests from VSCode.
PHPUnit has 214,982 recorded installs on VS Code Marketplace.
It ranks #1436 of 2,500 tracked VS Code Marketplace listings by installs.
It is rated 4.0 out of 5 from 6 ratings.
PluginStats has 3 daily observations since Oct 16, 2026; the latest is from Oct 18, 2026.
Rating: 4.00 / 5 from 6 ratings
About PHPUnit
PHPUnit for VSCode
This extension aims to need zero config and to be highly configurable. If you have php in environment path and phpunit installed with composer or anywhere in your workspace as phpunit*.phar, zero config is needed. It will even fallback to spinning up a self-removing docker container to try and run your tests if it can't find php on your machine.
Features
• Run tests with one command or hotkey based on open file (*.php or phpunit.xml) and cursor position • "quick pick" window is shown where more complicated selections are needed • Problems pane is populated with errors • Color output • Available commands: • PHPUnit Test • Tries to do the right thing (test class/method where cursor is or suite if file is phpunit.xml) • PHPUnit Test Nearest • PHPUnit Test Suite • PHPUnit Test Directory • PHPUnit Rerun Last Test • PHPUnit Stop Running Tests
Manual setup
• Install phpunit in your workspace. • Common config options:
Zero config needed if you have php or docker in you environment path and phpunit in your project (composer vendor dir or *.phar file). See the configuration section in package.json for all values and their descriptions (highly recommened if you need advanced functionality).
Remote configs
For docker, vagrant, laravel-homestead, WSL or any other virtual/remote environment, please consider the Remote Development extension by Mircosoft. VSCode will run agains a remote directory and you can simply run your tests as you would locally.
Manual ssh
is populated by the extension. The final command could then be something like ssh root@localhost "php ./phpunit.phar -c phpunit.xml" depending on your settings.
Setup public/private keys (passwords won't work): - Windows powershell ssh-keygen && cat $env:userprofile/.ssh/id_rsa.pub | ssh root@localhost 'cat >> .ssh/authorized_keys' - Linux bash ssh-keygen && ssh-copy-id root@localhost
OpenSSH (ssh and ssh-keygen) is available on windows since late 2018. It's easy to install with powershell if it's not enabled.
Manual docker container
Manual docker image
Manual docker-compose service
Examples
Run with (Cmd+Shift+P on OSX or Ctrl+Shift+P on Windows and Linux) and execute the PHPUnit Test command. • Test a function: Place cursor on a function and run. • Test a class: Place cursor on class name and run. • Pick test from a list: Place cursor anywhere in class except on class name or on a function and run. • Test everything according to --configuration: Close editor window and run. • Test everything in a directory: Open a file in the directory to test and run the PHPUnit Test Directory command. • Rerun last Test: Run the PHPUnit Rerun Last Test command.
Keybinding example:
Contribute
Create a PR linking an issue and add tests to make the merging go smoother.
Development
If you already have VS Code and Docker installed, you can click the badge above or here to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
Local development
Install this on your machine: • Node • PHP • Composer
Run: npm install && npm run build
Debug
Start an extension host with the extension installed and a debugger attached with F5.
Description from the VS Code Marketplace listing.
- docker
- php
- phpunit
- ssh
- test
- unittest
- xml
Where PHPUnit sits in the listing
Each band is one page of 20. Installs on a log scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (3)Similar VS Code Marketplace Testing plugins
Data source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=emallin.phpunit. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.