Skip to content

Commit

Permalink
Also run end-to-end tests using unscoped PHAR
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 28, 2021
1 parent 94836d8 commit 39e2172
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,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
6 changes: 2 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -437,17 +437,15 @@
<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>

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

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

<delete file="${basedir}/tests/autoload.php"/>
</target>
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

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

require_once __DIR__ . '/autoload.php';
Expand Down
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 39e2172

Please sign in to comment.