<?php

namespace MintyPHP\Tests\Architecture;

use PHPUnit\Framework\TestCase;

final class StatusTaxonomyEnumContractTest extends TestCase
{
    use ProjectFileAssertionSupport;

    public function testTaxonomyEnumFilesUseSharedTraitAndRequiredMethods(): void
    {
        foreach (StatusTaxonomyContractFiles::taxonomyEnumFiles() as $file) {
            $content = $this->readProjectFile($file);
            $this->assertStringContainsString('enum ', $content, $file);
            $this->assertStringContainsString('use SupportsStringTaxonomy;', $content, $file);
            $this->assertStringContainsString('function labelToken()', $content, $file);
            $this->assertStringContainsString('function badgeVariant()', $content, $file);
        }
    }
}
