|
| 1 | +#!/usr/bin/env php |
| 2 | +<?php |
| 3 | + |
| 4 | +use PHPUnit\TextUI\Configuration\FileCollection; |
| 5 | +use PHPUnit\TextUI\Configuration\FilterDirectory; |
| 6 | +use PHPUnit\TextUI\Configuration\FilterDirectoryCollection; |
| 7 | +use PHPUnit\TextUI\Configuration\Source; |
| 8 | +use PHPUnit\TextUI\Configuration\SourceMapper; |
| 9 | + |
| 10 | +require __DIR__ . '/../vendor/autoload.php'; |
| 11 | + |
| 12 | +$dirs = $argv[1]; |
| 13 | + |
| 14 | +$map = (new SourceMapper())->map(new Source( |
| 15 | + baseline: null, |
| 16 | + ignoreBaseline: false, |
| 17 | + includeDirectories: FilterDirectoryCollection::fromArray([new FilterDirectory($dirs, '', '')]), |
| 18 | + includeFiles: FileCollection::fromArray([]), |
| 19 | + excludeDirectories: FilterDirectoryCollection::fromArray([]), |
| 20 | + excludeFiles: FileCollection::fromArray([]), |
| 21 | + restrictDeprecations: false, |
| 22 | + restrictNotices: false, |
| 23 | + restrictWarnings: false, |
| 24 | + ignoreSuppressionOfDeprecations: false, |
| 25 | + ignoreSuppressionOfPhpDeprecations: false, |
| 26 | + ignoreSuppressionOfErrors: false, |
| 27 | + ignoreSuppressionOfNotices: false, |
| 28 | + ignoreSuppressionOfPhpNotices: false, |
| 29 | + ignoreSuppressionOfWarnings: false, |
| 30 | + ignoreSuppressionOfPhpWarnings: false, |
| 31 | + deprecationTriggers: [], |
| 32 | + ignoreSelfDeprecations: false, |
| 33 | + ignoreDirectDeprecations: false, |
| 34 | + ignoreIndirectDeprecations: false |
| 35 | +)); |
| 36 | + |
| 37 | + |
| 38 | +var_dump($map); |
0 commit comments