<?php

declare(strict_types=1);

namespace App\Tests\Unit\Administration\Domain\Model\AcademicYear;

use App\Administration\Domain\Model\AcademicYear\PeriodType;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;

final class PeriodTypeTest extends TestCase
{
    #[Test]
    public function trimesterExpectsThreePeriods(): void
    {
        self::assertSame(3, PeriodType::TRIMESTER->expectedCount());
    }

    #[Test]
    public function semesterExpectsTwoPeriods(): void
    {
        self::assertSame(2, PeriodType::SEMESTER->expectedCount());
    }

    #[Test]
    public function itHasCorrectValues(): void
    {
        self::assertSame('trimester', PeriodType::TRIMESTER->value);
        self::assertSame('semester', PeriodType::SEMESTER->value);
    }
}
