Skip to content

Commit

Permalink
Be paranoid
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 27, 2021
1 parent e5d7922 commit e2440e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
*/
const TEST_FILES_PATH = __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR;

if (file_exists(__DIR__ . '/../vendor/autoload.php') && file_exists(__DIR__ . '/autoload.php')) {
print 'More than one test fixture autoloader is available, exiting.' . \PHP_EOL;

exit(1);
}

if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__) . '/vendor/autoload.php');
Expand Down

0 comments on commit e2440e7

Please sign in to comment.