Skip to content

Commit 39e2172

Browse files
Also run end-to-end tests using unscoped PHAR
1 parent 94836d8 commit 39e2172

File tree

6 files changed

+4
-122
lines changed

6 files changed

+4
-122
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ jobs:
245245
with:
246246
java-version: 1.8
247247

248-
- name: Run regular unit tests with unscoped PHAR
248+
- name: Run regular test suite with unscoped PHAR
249249
run: ant run-regular-tests-with-unscoped-phar
250250

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

build.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,15 @@
437437
<arg value="--output" />
438438
<arg path="${basedir}/tests/autoload.php" />
439439
<arg path="${basedir}/tests/_files" />
440+
<arg path="${basedir}/tests/end-to-end/_files" />
440441
<arg path="${basedir}/tests/end-to-end/execution-order/_files" />
441442
<arg path="${basedir}/tests/unit" />
442443
</exec>
443444

444445
<delete dir="${basedir}/vendor"/>
445446
<delete file="${basedir}/composer.lock"/>
446447

447-
<exec executable="${basedir}/build/artifacts/phpunit-snapshot.phar" taskname="phpunit" failonerror="true">
448-
<arg value="--testsuite" />
449-
<arg value="unit" />
450-
</exec>
448+
<exec executable="${basedir}/build/artifacts/phpunit-snapshot.phar" taskname="phpunit" failonerror="true" />
451449

452450
<delete file="${basedir}/tests/autoload.php"/>
453451
</target>

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

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

3333
require_once __DIR__ . '/autoload.php';

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)