vehikl / php-traffic-light
Extend PHPUnit to control the traffic light based on test results.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/vehikl/php-traffic-light
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^7.1
This package is auto-updated.
Last update: 2025-09-20 00:41:42 UTC
README
Requirements
- PHP ^= 7.1
- PHPUnit ^= 7.1
Installation
composer require vehikl/php-traffic-light
Usage
Implementation is extremely simple. Add the following to your phpunit.xml
file:
<extensions> <extension class="PhpTrafficLight\TrafficLightExtension" /> </extensions>
Additionally, you must ensure that your environment has the following environment variables:
TRAFFIC_LIGHT_ENABLED
- this determines if the plugin is enabled. This should only be true (1
) on the mobbing computer.
That's it! The traffic light in the lounge should now reflect the state of the mobbing tests.