diff --git a/build/config/php-scoper.php b/build/config/php-scoper.php index b2a9a32424a..c783a25f5d2 100644 --- a/build/config/php-scoper.php +++ b/build/config/php-scoper.php @@ -9,8 +9,11 @@ */ return [ - 'whitelist' => [ - 'PHPUnit\*', - 'Prophecy\*', + 'exclude-namespaces' => [ + 'PHPUnit', + 'Prophecy' + ], + 'expose-constants' => [ + '/^__PHPUNIT_.+$/' ], ];