<?php

namespace MintyPHP\Tests\Architecture;

use PHPUnit\Framework\TestCase;

final class StatusTaxonomyFilterSchemaContractTest extends TestCase
{
    use ProjectFileAssertionSupport;

    public function testFilterSchemasReadTaxonomyValuesFromEnums(): void
    {
        foreach (StatusTaxonomyContractFiles::taxonomySchemaExpectations() as $file => $snippets) {
            $content = $this->readProjectFile($file);
            foreach ($snippets as $snippet) {
                $this->assertStringContainsString($snippet, $content, $file);
            }
        }
    }
}
