Skip to content

Commit

Permalink
Migrate to fidry/makefile (infection#1762)
Browse files Browse the repository at this point in the history
Leverage fidry/makefile for the makefile tests.
  • Loading branch information
theofidry authored Dec 11, 2022
1 parent b784620 commit 87233ff
Show file tree
Hide file tree
Showing 6 changed files with 217 additions and 560 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"require-dev": {
"ext-simplexml": "*",
"brianium/paratest": "^6.3",
"fidry/makefile": "^0.2.0",
"helmich/phpunit-json-assert": "^3.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/extension-installer": "^1.1.0",
Expand Down
165 changes: 157 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions devTools/phpstan-tests.neon
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ parameters:
- '#^Call to method PHPUnit\\Framework\\Assert::assertNotFalse\(\) with string will always evaluate to true\.$#'
- '#^Call to method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) with ''[a-zA-Z\\]+'' and [a-zA-Z\\]+ will always evaluate to (false|true)\.$#'
- '#^Call to method PHPUnit\\Framework\\Assert::assertSame\(\) with [a-zA-Z\\&]+ and mixed will always evaluate to true\.$#'
- '#^Call to method PHPUnit\\Framework\\Assert::assertTrue\(\) with true will always evaluate to true\.$#'
- '#^Call to static method Webmozart\\Assert\\[a-zA-Z]+::[a-zA-Z]+\(\) with .* will always evaluate to true\.$#'
- '#^PHPDoc tag @var for variable \$sourceFilesCollectorProphecy contains unresolvable type#'
- '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#'
Expand All @@ -29,9 +28,6 @@ parameters:
-
message: '#Function ini_get is unsafe to use#'
path: ../tests/phpunit/Process/OriginalPhpProcessTest.php
-
message: '#Function shell_exec is unsafe to use#'
path: ../tests/phpunit/AutoReview/Makefile/MakefileTest.php
level: 4
paths:
- ../tests/phpunit
Expand Down
Loading

0 comments on commit 87233ff

Please sign in to comment.