Skip to content

Commit a9e13cd

Browse files
Merge branch '8.5' into 9.5
2 parents d1690a1 + d1fe984 commit a9e13cd

File tree

6 files changed

+17
-131
lines changed

6 files changed

+17
-131
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
with:
253253
java-version: 1.8
254254

255-
- name: Run regular unit tests with unscoped PHAR
255+
- name: Run regular test suite with unscoped PHAR
256256
run: ant run-regular-tests-with-unscoped-phar
257257

258258
- name: Run PHAR-specific end-to-end tests with scoped PHAR

build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@
454454
<arg value="--output" />
455455
<arg path="${basedir}/tests/autoload.php" />
456456
<arg path="${basedir}/tests/_files" />
457+
<arg path="${basedir}/tests/end-to-end/_files" />
457458
<arg path="${basedir}/tests/end-to-end/execution-order/_files" />
458459
<arg path="${basedir}/tests/unit" />
459460
</exec>

tests/bootstrap.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,32 @@
99
*/
1010
const TEST_FILES_PATH = __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR;
1111

12-
if (file_exists(__DIR__ . '/../vendor/autoload.php') && file_exists(__DIR__ . '/autoload.php')) {
13-
print 'More than one test fixture autoloader is available, exiting.' . \PHP_EOL;
12+
$composer = file_exists(__DIR__ . '/../vendor/autoload.php');
13+
$phar = file_exists(__DIR__ . '/autoload.php');
14+
15+
if ($composer && $phar) {
16+
print 'More than one test fixture autoloader is available, exiting.' . PHP_EOL;
17+
18+
exit(1);
19+
}
20+
21+
if (!$composer && !$phar) {
22+
print 'No test fixture autoloader was registered, exiting.' . PHP_EOL;
1423

1524
exit(1);
1625
}
1726

18-
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
27+
if ($composer) {
1928
if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
2029
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__) . '/vendor/autoload.php');
2130
}
2231

2332
require_once __DIR__ . '/../vendor/autoload.php';
24-
25-
return;
2633
}
2734

28-
if (file_exists(__DIR__ . '/autoload.php')) {
35+
if ($phar) {
2936
if (!defined('__PHPUNIT_PHAR__')) {
30-
define('__PHPUNIT_PHAR__', realpath($_SERVER['_']));
37+
require_once __DIR__ . '/../build/artifacts/phpunit-snapshot.phar';
3138
}
3239

3340
require_once __DIR__ . '/autoload.php';
@@ -38,12 +45,6 @@
3845
foreach (json_decode(file_get_contents($jsonFile), true)['autoload-dev']['files'] as $file) {
3946
require_once $base . DIRECTORY_SEPARATOR . $file;
4047
}
41-
42-
unset($jsonFile, $base, $file);
43-
44-
return;
4548
}
4649

47-
print 'No test fixture autoloader was registered, exiting.' . \PHP_EOL;
48-
49-
exit(1);
50+
unset($composer, $phar, $jsonFile, $base, $file);

tests/end-to-end/regression/GitHub/1351.phpt

Lines changed: 0 additions & 45 deletions
This file was deleted.

tests/end-to-end/regression/GitHub/1351/ChildProcessClass1351.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/end-to-end/regression/GitHub/1351/Issue1351Test.php

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)