diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c33a0106992..47bc138b322 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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
diff --git a/build.xml b/build.xml
index ff2a152e95b..e5325ed6536 100644
--- a/build.xml
+++ b/build.xml
@@ -437,6 +437,7 @@
+
@@ -444,10 +445,7 @@
-
-
-
-
+
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 1316a2141ba..571797f1260 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -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';
diff --git a/tests/end-to-end/regression/GitHub/1351.phpt b/tests/end-to-end/regression/GitHub/1351.phpt
deleted file mode 100644
index b8cc78ab5b6..00000000000
--- a/tests/end-to-end/regression/GitHub/1351.phpt
+++ /dev/null
@@ -1,45 +0,0 @@
---TEST--
-https://github.com/sebastianbergmann/phpunit/issues/1351
---SKIPIF--
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class ChildProcessClass1351
-{
-}
diff --git a/tests/end-to-end/regression/GitHub/1351/Issue1351Test.php b/tests/end-to-end/regression/GitHub/1351/Issue1351Test.php
deleted file mode 100644
index f411aa1bac1..00000000000
--- a/tests/end-to-end/regression/GitHub/1351/Issue1351Test.php
+++ /dev/null
@@ -1,59 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-use PHPUnit\Framework\TestCase;
-
-class Issue1351Test extends TestCase
-{
- protected $instance;
-
- /**
- * @runInSeparateProcess
- */
- public function testFailurePre(): void
- {
- $this->instance = new ChildProcessClass1351;
- $this->assertFalse(true, 'Expected failure.');
- }
-
- public function testFailurePost(): void
- {
- $this->assertNull($this->instance);
- $this->assertFalse(\class_exists(ChildProcessClass1351::class, false), 'ChildProcessClass1351 is not loaded.');
- }
-
- /**
- * @runInSeparateProcess
- */
- public function testExceptionPre(): void
- {
- $this->instance = new ChildProcessClass1351;
-
- try {
- throw new LogicException('Expected exception.');
- } catch (LogicException $e) {
- throw new RuntimeException('Expected rethrown exception.', 0, $e);
- }
- }
-
- public function testExceptionPost(): void
- {
- $this->assertNull($this->instance);
- $this->assertFalse(\class_exists(ChildProcessClass1351::class, false), 'ChildProcessClass1351 is not loaded.');
- }
-
- public function testPhpCoreLanguageException(): void
- {
- // User-space code cannot instantiate a PDOException with a string code,
- // so trigger a real one.
- $connection = new PDO('sqlite::memory:');
- $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- $connection->query("DELETE FROM php_wtf WHERE exception_code = 'STRING'");
- }
-}