visualphpunit / visualphpunit
A PHPUnit GUI
Package info
github.com/VisualPHPUnit/VisualPHPUnit
Type:application
pkg:composer/visualphpunit/visualphpunit
Requires
- php: >=5.6
- ext-pdo_sqlite: *
- doctrine/dbal: 2.5.12
- jdesrosiers/silex-cors-provider: 1.4.0
- phpunit/phpunit: 5.7.20
- silex/silex: 2.1.0
- symfony/console: 3.3.2
- symfony/finder: 3.3.2
Requires (Dev)
- ext-mbstring: *
Suggests
- phpunit/dbunit: The DbUnit extension considerably simplifies the setup of a database for testing
This package is not auto-updated.
Last update: 2026-03-29 02:12:02 UTC
README
VisualPHPUnit
VisualPHPUnit is a visual front-end for PHPUnit.
Version 3.1.1 is the latest and greatest. Version 2.3.2 is also working just fine.
VisualPHPUnit is not php 7 compatible at this time due to the way phpunit is utilized. Php 7 will be supported in the next major release.
Versions
- 1.x Initial concept and code by Matt Mueller
- 2.x A complete rewrite by Nick Sinopoli
- 3.x A complete rewrite by Johannes Skov Frandsen
Setup
On *nix
- Checkout or download VisualPHPUnit
- Run
make tools setup build
On Windows
- Checkout or download VisualPHPUnit
- Run
php -r "readfile('https://getcomposer.org/installer');" | php. - Run
./composer.phar installto install php dependencies - Run
npm installto install node tools - Run
mklink grunt .\node_modules\grunt-cli\bin\grunt - Run
mklink bower .\node_modules\bower\bin\bower - Run
bower installto install javascript dependencies - Run
grunt buildto build frontend
To run
- Run
./bin/vpu -c vpu.json -sto start VisualPHPUnit with the build-in php server. - Run
./bin/vpu -c vpu.json -tto stop VisualPHPUnit with the build-in php server.
You may browse localhost:8000 to access the test suites.
You can update ./vpu.json to add additional test suites.
You may run tests from the console like this ./bin/vpu -c vpu.json testfile.php. You may append -a to archive your test results. You may append --help for options
Development
Frontend
The frontend is a single-page javascript application (SPA) based on Angularjs and Bootstrap. You will need Node.js, Npm, Grunt and Bower to build the frontend.
Backend
The backend is a REST application based on Silex. You will need Composer to install relevant dependencies.You need php >=5.6 to run VisualPHPUnit.
Running VPU in dev mode
Setup dependencies
On *nix
- Checkout or download VisualPHPUnit
- Run
make tools setup
On Windows
- Checkout or download VisualPHPUnit
- Run
php -r "readfile('https://getcomposer.org/installer');" | php. - Run
./composer.phar installto install php dependencies - Run
npm installto install node tools - Run
bower installto install javascript dependencies
Start VPU in dev mode
You need two consoles for this setup, one for the frontend and one for the backend.
cd backend php -S localhost:8001 cd ../app grunt serve