Skip to content

Commit f83c912

Browse files
author
Peter Bex
committed
Fix autload check: phpunit has the script at the root directory, which means the search path is wrong when copying it into bin/
This fixes the following annoying error when using phpunit-randomizer in a project through composer: You need to set up the project dependencies using the following commands: wget http://getcomposer.org/composer.phar php composer.phar install
1 parent fa1234b commit f83c912

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/phpunit-randomizer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4-
foreach (array(__DIR__ . '/../autoload.php', __DIR__ . '/../vendor/autoload.php') as $file) {
4+
foreach (array(__DIR__ . '/../../../autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
55
if (file_exists($file)) {
66
define('PHPUNIT_COMPOSER_INSTALL', $file);
77
break;

0 commit comments

Comments
 (0)