|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | + * This file is part of the Webmozarts Console Parallelization package. |
| 5 | + * |
| 6 | + * (c) Webmozarts GmbH <office@webmozarts.com> |
| 7 | + * |
| 8 | + * For the full copyright and license information, please view the LICENSE |
| 9 | + * file that was distributed with this source code. |
| 10 | + */ |
| 11 | + |
| 12 | +declare(strict_types=1); |
| 13 | + |
| 14 | +namespace Webmozarts\Console\Parallelization\AutoReview; |
| 15 | + |
| 16 | +use Fidry\Makefile\Test\BaseMakefileTestCase; |
| 17 | + |
| 18 | +/** |
| 19 | + * @coversNothing |
| 20 | + * @group autoreview |
| 21 | + * |
| 22 | + * @internal |
| 23 | + */ |
| 24 | +final class MakefileTest extends BaseMakefileTestCase |
| 25 | +{ |
| 26 | + protected static function getMakefilePath(): string |
| 27 | + { |
| 28 | + return __DIR__.'/../../Makefile'; |
| 29 | + } |
| 30 | + |
| 31 | + protected function getExpectedHelpOutput(): string |
| 32 | + { |
| 33 | + return <<<'EOF' |
| 34 | + [33mUsage:[0m |
| 35 | + make TARGET |
| 36 | +
|
| 37 | + [32m# |
| 38 | + # Commands |
| 39 | + #---------------------------------------------------------------------------[0m |
| 40 | +
|
| 41 | + [33mcs:[0m Fixes CS |
| 42 | + [33mphp_cs_fixer:[0m Runs PHP-CS-Fixer |
| 43 | + [33mgitignore_sort:[0m Sorts the .gitignore entries |
| 44 | + [33mcomposer_normalize:[0m Normalizes the composer.json |
| 45 | + [33mtest:[0m Runs all the tests |
| 46 | + [33mphpstan:[0m Runs PHPStan |
| 47 | + [33mphpunit:[0m Runs PHPUnit |
| 48 | + [33mphpunit_coverage_infection:[0m Runs PHPUnit with code coverage for Infection |
| 49 | + [33mphpunit_coverage_html:[0m Runs PHPUnit with code coverage with HTML report |
| 50 | + [33minfection:[0m Runs Infection |
| 51 | + [33mvalidate-package:[0m Validates the Composer package |
| 52 | + [33mclear:[0m Clears various artifacts |
| 53 | + [33mclear_cache:[0m Clears the integration test app cache |
| 54 | + [33mclear_coverage:[0m Clears the coverage reports |
| 55 | + |
| 56 | + EOF; |
| 57 | + } |
| 58 | +} |
0 commit comments