Skip to content
Permalink
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
<?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;
break;
}
}
if (!$found) {
echo "Unable to find the `PHPUnit` script in `vendor/phpunit/phpunit/`.\nPlease run `composer update` before running this command.\n";
exit(1);
}
You can’t perform that action at this time.