File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 35
35
* POSSIBILITY OF SUCH DAMAGE.
36
36
*/
37
37
38
- if (!file_exists (__DIR__ . '/vendor/autoload.php ' )) {
38
+ foreach (array (__DIR__ . '/../../autoload.php ' , __DIR__ . '/vendor/autoload.php ' ) as $ file ) {
39
+ if (file_exists ($ file )) {
40
+ define ('PHPUNIT_COMPOSER_INSTALL ' , $ file );
41
+ break ;
42
+ }
43
+ }
44
+
45
+ if (!defined ('PHPUNIT_COMPOSER_INSTALL ' )) {
39
46
die (
40
47
'You need to set up the project dependencies using the following commands: ' . PHP_EOL .
41
48
'wget http://getcomposer.org/composer.phar ' . PHP_EOL .
42
49
'php composer.phar install ' . PHP_EOL
43
50
);
44
51
}
45
52
46
- define ('PHPUNIT_COMPOSER_INSTALL ' , __DIR__ . '/vendor/autoload.php ' );
47
-
48
53
require PHPUNIT_COMPOSER_INSTALL ;
49
54
50
55
PHPUnit_TextUI_Command::main ();
You can’t perform that action at this time.
0 commit comments