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