Skip to content

Commit

Permalink
Declare TEST_FILES_PATH unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 25, 2021
1 parent ccc4359 commit a7e7ba1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__) . '/vendor/autoload.php');
}

if (!defined('TEST_FILES_PATH')) {
define('TEST_FILES_PATH', __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR);
}
const TEST_FILES_PATH = __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR;

require_once PHPUNIT_COMPOSER_INSTALL;
2 changes: 1 addition & 1 deletion tests/end-to-end/regression/GitHub/797/bootstrap797.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
* file that was distributed with this source code.
*/
// PHPUnit_Framework_TestCase itself does not exist. :-)
require __DIR__ . '/../../../../bootstrap.php';
require_once __DIR__ . '/../../../../bootstrap.php';

const GITHUB_ISSUE = 797;

0 comments on commit a7e7ba1

Please sign in to comment.