diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 81a13906604..1e61c7d650e 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -262,7 +262,7 @@ jobs:
run: ant phar-snapshot
- name: Check whether PHAR is scoped
- run: grep -q PHPUnit\\\\DeepCopy\\\\Exception\\\\CloneException build/artifacts/phpunit-snapshot.phar || (echo "phpunit-snapshot.phar is not scoped." && false)
+ run: grep -q PHPUnitPHAR\\\\DeepCopy\\\\Exception\\\\CloneException build/artifacts/phpunit-snapshot.phar || (echo "phpunit-snapshot.phar is not scoped." && false)
- name: Upload PHAR
uses: actions/upload-artifact@v4
diff --git a/build.xml b/build.xml
index bc74b8e9fdf..3b7e489e9fb 100644
--- a/build.xml
+++ b/build.xml
@@ -361,18 +361,16 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/build/config/php-scoper.php b/build/config/php-scoper.php
index c783a25f5d2..dc7dcb42183 100644
--- a/build/config/php-scoper.php
+++ b/build/config/php-scoper.php
@@ -9,10 +9,13 @@
*/
return [
+ 'prefix' => 'PHPUnitPHAR',
+
'exclude-namespaces' => [
'PHPUnit',
'Prophecy'
],
+
'expose-constants' => [
'/^__PHPUNIT_.+$/'
],