Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (16 sloc) 468 Bytes
#!/usr/bin/env php
$found = false;
$candidates = [\getcwd(), __DIR__];
// Find a good path
foreach ($candidates as $path) {
if (file_exists($path.'/vendor/phpunit/phpunit/phpunit')) {
require $path.'/vendor/phpunit/phpunit/phpunit';
$found = true;
if (!$found) {
echo "Unable to find the `PHPUnit` script in `vendor/phpunit/phpunit/`.\nPlease run `composer update` before running this command.\n";
You can’t perform that action at this time.