Skip to content

Commit

Permalink
Add tests to Domain\Preference\PreferenceTypeEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelo-lipienski authored and flavioheleno committed Jul 13, 2022
1 parent bb43b8a commit fd0bb10
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/Unit/Domain/Preference/PreferenceTypeEnumTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
declare(strict_types = 1);

namespace PackageHealth\PHP\Test\Unit\Domain\Preference;

use PackageHealth\PHP\Domain\Preference\PreferenceTypeEnum;
use PHPUnit\Framework\TestCase;

final class PreferenceTypeEnumTest extends TestCase {
public function testIsStringValue(): void {
$this->assertSame('string', PreferenceTypeEnum::isString->value);
}

public function testIsIntegerValue(): void {
$this->assertSame('integer', PreferenceTypeEnum::isInteger->value);
}

public function testIsFloatValue(): void {
$this->assertSame('float', PreferenceTypeEnum::isFloat->value);
}

public function testIsBoolValue(): void {
$this->assertSame('bool', PreferenceTypeEnum::isBool->value);
}
}

0 comments on commit fd0bb10

Please sign in to comment.