Split status taxonomy contracts

This commit is contained in:
2026-03-19 19:11:03 +01:00
parent 5582a55208
commit 2de0039d4f
8 changed files with 116 additions and 60 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace MintyPHP\Tests\Architecture;
use PHPUnit\Framework\TestCase;
final class StatusTaxonomyLiteralGuardContractTest extends TestCase
{
use ProjectFileAssertionSupport;
public function testNoLegacyLiteralTaxonomyChecksRemainInMigratedFiles(): void
{
foreach (StatusTaxonomyContractFiles::taxonomyLiteralGuardFiles() as $file) {
$content = $this->readProjectFile($file);
foreach (StatusTaxonomyContractFiles::forbiddenLiteralPatterns() as $pattern) {
$this->assertSame(0, preg_match($pattern, $content), $file . ' pattern=' . $pattern);
}
}
}
}