diff --git a/.gitignore b/.gitignore
index 6d5aba94..58efde94 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,7 @@
/.phpunit.cache
/vendor/
/bin/tools/*/vendor/
-/bin/tools/php-cs-fixer/composer.lock
+/bin/tools/csfixer
/build/
/.php-cs-fixer.cache
/.phpunit.result.cache
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
index 5fca00a6..36ed7b9e 100644
--- a/.php-cs-fixer.dist.php
+++ b/.php-cs-fixer.dist.php
@@ -7,6 +7,11 @@
\file_get_contents('https://raw.githubusercontent.com/zenstruck/.github/main/.php-cs-fixer.dist.php')
);
+$finder = PhpCsFixer\Finder::create()
+ ->in([__DIR__.'/src', __DIR__.'/tests'])
+ ->notPath('ForceFactoriesTraitUsage')
+;
+
try {
return require $file;
} finally {
diff --git a/phpstan.neon b/phpstan.neon
index 0025a4e0..2ba05647 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -68,6 +68,10 @@ parameters:
- identifier: missingType.callable
path: tests/Fixture/Maker/expected/
+ # not relevant for factories in EndToEnd tests
+ - message: '#Call to static method PHPUnit\\Framework\\Assert::assertTrue\(\) with true will always evaluate to true#'
+ path: tests/Fixture/ForceFactoriesTraitUsage/
+
excludePaths:
- tests/Fixture/Maker/expected/can_create_factory_with_auto_activated_not_persisted_option.php
- tests/Fixture/Maker/expected/can_create_factory_interactively.php
diff --git a/phpunit-10.xml.dist b/phpunit-10.xml.dist
index b9758154..2ec36faf 100644
--- a/phpunit-10.xml.dist
+++ b/phpunit-10.xml.dist
@@ -18,6 +18,7 @@
tests
tests/Integration/Migration/ResetDatabaseWithMigrationTest.php
+ tests/Fixture
tests/Integration/Migration/ResetDatabaseWithMigrationTest.php
diff --git a/phpunit-paratest.xml.dist b/phpunit-paratest.xml.dist
index 387352e8..33027af9 100644
--- a/phpunit-paratest.xml.dist
+++ b/phpunit-paratest.xml.dist
@@ -17,6 +17,7 @@
tests
tests/Integration/Migration/ResetDatabaseWithMigrationTest.php
+ tests/Fixture