Skip to content

Commit

Permalink
Merge branch '3.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
whatthejeff committed Mar 7, 2013
2 parents b5b8a12 + 3c4559d commit c77923f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions PHPUnit/Autoload.php
Expand Up @@ -47,16 +47,15 @@
} }


$paths = array( $paths = array(
'/..', __DIR__ . '/../vendor',
'/../../../..' __DIR__ . '/../../..'
); );


foreach ($paths as $path) { foreach ($paths as $path) {
$vendor = __DIR__ . $path . '/vendor'; if (is_dir($path . '/composer') &&
if (is_dir($vendor . '/composer') && is_file($path . '/autoload.php')) {
is_file($vendor . '/autoload.php')) { require_once $path . '/autoload.php';
require_once $vendor . '/autoload.php'; define('PHPUNIT_COMPOSER_INSTALL', $path . '/autoload.php');
define('PHPUNIT_COMPOSER_INSTALL', $vendor . '/autoload.php');


return; return;
} }
Expand Down
13 changes: 6 additions & 7 deletions PHPUnit/Autoload.php.in
Expand Up @@ -47,16 +47,15 @@ if (defined('PHPUNIT_COMPOSER_INSTALL')) {
} }


$paths = array( $paths = array(
'/..', __DIR__ . '/../vendor',
'/../../../..' __DIR__ . '/../../..'
); );


foreach ($paths as $path) { foreach ($paths as $path) {
$vendor = __DIR__ . $path . '/vendor'; if (is_dir($path . '/composer') &&
if (is_dir($vendor . '/composer') && is_file($path . '/autoload.php')) {
is_file($vendor . '/autoload.php')) { require_once $path . '/autoload.php';
require_once $vendor . '/autoload.php'; define('PHPUNIT_COMPOSER_INSTALL', $path . '/autoload.php');
define('PHPUNIT_COMPOSER_INSTALL', $vendor . '/autoload.php');


return; return;
} }
Expand Down

0 comments on commit c77923f

Please sign in to comment.