jaroslavtyc/drd-plus-codes

View on GitHub
tests/Codes/GenderCodeTest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace DrdPlus\Tests\Codes;

use DrdPlus\Codes\GenderCode;
use DrdPlus\Tests\Codes\Partials\TranslatableCodeTest;

class GenderCodeTest extends TranslatableCodeTest
{
    /**
     * @test
     */
    public function I_can_ask_it_if_is_male_or_female()
    {
        $female = GenderCode::getIt(GenderCode::FEMALE);
        self::assertTrue($female->isFemale());
        self::assertFalse($female->isMale());
        $male = GenderCode::getIt(GenderCode::MALE);
        self::assertTrue($male->isMale());
        self::assertFalse($male->isFemale());
    }
}