|
193 | 193 | 'requires' => ['php' => '*'], |
194 | 194 | ]; |
195 | 195 |
|
196 | | - if (1 === \count($info['versions'])) { |
| 196 | + if (1 === count($info['versions'])) { |
197 | 197 | $passthruOrFail("$COMPOSER create-project --ignore-platform-reqs --no-install --prefer-dist --no-scripts --no-plugins --no-progress -s dev phpunit/phpunit $PHPUNIT_VERSION_DIR \"$PHPUNIT_VERSION.*\""); |
198 | 198 | } else { |
199 | 199 | $passthruOrFail("$COMPOSER create-project --ignore-platform-reqs --no-install --prefer-dist --no-scripts --no-plugins --no-progress phpunit/phpunit $PHPUNIT_VERSION_DIR \"$PHPUNIT_VERSION.*\""); |
|
251 | 251 | define('PHPUNIT_COMPOSER_INSTALL', __DIR__.'/vendor/autoload.php'); |
252 | 252 | require PHPUNIT_COMPOSER_INSTALL; |
253 | 253 |
|
254 | | -if (!class_exists('SymfonyBlacklistPhpunit', false)) { |
255 | | - class SymfonyBlacklistPhpunit {} |
| 254 | +if (!class_exists('SymfonyExcludeListPhpunit', false)) { |
| 255 | + class SymfonyExcludeListPhpunit {} |
256 | 256 | } |
257 | | -if (method_exists('PHPUnit\Util\Blacklist', 'addDirectory')) { |
| 257 | +if (method_exists('PHPUnit\Util\ExcludeList', 'addDirectory')) { |
| 258 | + (new PHPUnit\Util\Excludelist())->getExcludedDirectories(); |
| 259 | + PHPUnit\Util\ExcludeList::addDirectory(\dirname((new \ReflectionClass('SymfonyExcludeListPhpunit'))->getFileName())); |
| 260 | + PHPUnit\Util\ExcludeList::addDirectory(\dirname((new \ReflectionClass('SymfonyExcludeListSimplePhpunit'))->getFileName())); |
| 261 | +} elseif (method_exists('PHPUnit\Util\Blacklist', 'addDirectory')) { |
258 | 262 | (new PHPUnit\Util\BlackList())->getBlacklistedDirectories(); |
259 | | - PHPUnit\Util\Blacklist::addDirectory(\dirname((new \ReflectionClass('SymfonyBlacklistPhpunit'))->getFileName())); |
260 | | - PHPUnit\Util\Blacklist::addDirectory(\dirname((new \ReflectionClass('SymfonyBlacklistSimplePhpunit'))->getFileName())); |
| 263 | + PHPUnit\Util\Blacklist::addDirectory(\dirname((new \ReflectionClass('SymfonyExcludeListPhpunit'))->getFileName())); |
| 264 | + PHPUnit\Util\Blacklist::addDirectory(\dirname((new \ReflectionClass('SymfonyExcludeListSimplePhpunit'))->getFileName())); |
261 | 265 | } else { |
262 | | - PHPUnit\Util\Blacklist::$blacklistedClassNames['SymfonyBlacklistPhpunit'] = 1; |
263 | | - PHPUnit\Util\Blacklist::$blacklistedClassNames['SymfonyBlacklistSimplePhpunit'] = 1; |
| 266 | + PHPUnit\Util\Blacklist::$blacklistedClassNames['SymfonyExcludeListPhpunit'] = 1; |
| 267 | + PHPUnit\Util\Blacklist::$blacklistedClassNames['SymfonyExcludeListSimplePhpunit'] = 1; |
264 | 268 | } |
265 | 269 |
|
266 | 270 | Symfony\Bridge\PhpUnit\TextUI\Command::main(); |
@@ -372,8 +376,8 @@ class SymfonyBlacklistPhpunit {} |
372 | 376 | } |
373 | 377 | } |
374 | 378 | } elseif (!isset($argv[1]) || 'install' !== $argv[1] || file_exists('install')) { |
375 | | - if (!class_exists('SymfonyBlacklistSimplePhpunit', false)) { |
376 | | - class SymfonyBlacklistSimplePhpunit |
| 379 | + if (!class_exists('SymfonyExcludeListSimplePhpunit', false)) { |
| 380 | + class SymfonyExcludeListSimplePhpunit |
377 | 381 | { |
378 | 382 | } |
379 | 383 | } |
|
0 commit comments