Skip to content

Commit

Permalink
Merge branch '8.5' into 9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 28, 2021
2 parents d1690a1 + d1fe984 commit a9e13cd
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 131 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ jobs:
with:
java-version: 1.8

- name: Run regular unit tests with unscoped PHAR
- name: Run regular test suite with unscoped PHAR
run: ant run-regular-tests-with-unscoped-phar

- name: Run PHAR-specific end-to-end tests with scoped PHAR
Expand Down
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@
<arg value="--output" />
<arg path="${basedir}/tests/autoload.php" />
<arg path="${basedir}/tests/_files" />
<arg path="${basedir}/tests/end-to-end/_files" />
<arg path="${basedir}/tests/end-to-end/execution-order/_files" />
<arg path="${basedir}/tests/unit" />
</exec>
Expand Down
29 changes: 15 additions & 14 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,32 @@
*/
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;
$composer = file_exists(__DIR__ . '/../vendor/autoload.php');
$phar = file_exists(__DIR__ . '/autoload.php');

if ($composer && $phar) {
print 'More than one test fixture autoloader is available, exiting.' . PHP_EOL;

exit(1);
}

if (!$composer && !$phar) {
print 'No test fixture autoloader was registered, exiting.' . PHP_EOL;

exit(1);
}

if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
if ($composer) {
if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__) . '/vendor/autoload.php');
}

require_once __DIR__ . '/../vendor/autoload.php';

return;
}

if (file_exists(__DIR__ . '/autoload.php')) {
if ($phar) {
if (!defined('__PHPUNIT_PHAR__')) {
define('__PHPUNIT_PHAR__', realpath($_SERVER['_']));
require_once __DIR__ . '/../build/artifacts/phpunit-snapshot.phar';
}

require_once __DIR__ . '/autoload.php';
Expand All @@ -38,12 +45,6 @@
foreach (json_decode(file_get_contents($jsonFile), true)['autoload-dev']['files'] as $file) {
require_once $base . DIRECTORY_SEPARATOR . $file;
}

unset($jsonFile, $base, $file);

return;
}

print 'No test fixture autoloader was registered, exiting.' . \PHP_EOL;

exit(1);
unset($composer, $phar, $jsonFile, $base, $file);
45 changes: 0 additions & 45 deletions tests/end-to-end/regression/GitHub/1351.phpt

This file was deleted.

12 changes: 0 additions & 12 deletions tests/end-to-end/regression/GitHub/1351/ChildProcessClass1351.php

This file was deleted.

59 changes: 0 additions & 59 deletions tests/end-to-end/regression/GitHub/1351/Issue1351Test.php

This file was deleted.

0 comments on commit a9e13cd

Please sign in to comment.