| 1 | <?php |
||
| 13 | final class AbstractEnumTests extends TestCase |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Verify basic behavior of __callStatic. |
||
| 17 | * |
||
| 18 | * @test |
||
| 19 | * @covers ::__callStatic |
||
| 20 | * @covers ::__toString |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function basicUse() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Verify exception is thrown if __callStatic is invoked with an invalid value. |
||
| 31 | * |
||
| 32 | * @test |
||
| 33 | * @covers ::__callStatic |
||
| 34 | * @expectedException \UnexpectedValueException |
||
| 35 | * @expectedExceptionMessage 'Invalid' is not a valid SubjectivePHPTest\Spl\Types\SimpleEnum |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | public function badConstant() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Verify basic behavior of all(). |
||
| 46 | * |
||
| 47 | * @test |
||
| 48 | * @covers ::all |
||
| 49 | * |
||
| 50 | * @return void |
||
| 51 | */ |
||
| 52 | public function all() |
||
| 59 | } |
||
| 60 |