1 | <?php namespace Limoncello\Tests\Auth\Authorization\PolicyAdministration; |
||
25 | class TargetMatchEnumTest extends TestCase |
||
26 | { |
||
27 | /** |
||
28 | * Test to string conversion. |
||
29 | */ |
||
30 | public function testToString() |
||
31 | { |
||
32 | $this->assertNotEmpty(TargetMatchEnum::toString(TargetMatchEnum::MATCH)); |
||
33 | $this->assertNotEmpty(TargetMatchEnum::toString(TargetMatchEnum::NOT_MATCH)); |
||
34 | $this->assertNotEmpty(TargetMatchEnum::toString(TargetMatchEnum::NO_TARGET)); |
||
35 | $this->assertNotEmpty(TargetMatchEnum::toString(TargetMatchEnum::INDETERMINATE)); |
||
36 | $this->assertEquals('UNKNOWN', TargetMatchEnum::toString(-1)); |
||
37 | } |
||
38 | } |
||
39 |