forked from geocoder-php/Geocoder
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpunit
More file actions
Latest commit
executable file
·18 lines (16 loc) · 468 Bytes
/
Copy pathphpunit
File metadata and controls
executable file
·18 lines (16 loc) · 468 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env php
<?php
$found = false;
$candidates = [\getcwd(), __DIR__];
// Find a good path
foreach ($candidatesas$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);
}