HttpPHPUnit - Tool for running PHPUnit tests in web browser.
composer require petrp/httpphpunit
require_once __DIR__ . '/../vendor/autoload.php';
$http = new HttpPHPUnit;
$http->run(__DIR__ . '/cases');
You will also need either Tracy or Nette or register your own way to render errors $http->setErrorRenderer(...)
.
This package was no maintained for many years on those urls:
- https://github.com/Clevis/HttpPHPUnit (v0)
- https://github.com/PetrP/HttpPHPUnit (current)
- https://github.com/MartyIX/HttpPHPUnit (v1.0 and v1.1)
This included not supporting new versions of PHP, PHPUnit, Nette, and being in various state of being broken.
I'm trying to restart the development and keep this up to date. The first release of v2 is a transitioning release which keeps the support for the very old versions of PHPUnit (v3.5), but adds support for all the versions up to v6.5. And same for PHP 5.4 up to PHP 7.4. It also drops requirement of Nette. In near future, the version v3 will catch-up with PHPUnit and PHP, while dropping support for those old incompatible versions.