1 | <?php |
||
9 | final class AbstractEnumTest extends TestCase |
||
10 | { |
||
11 | /** |
||
12 | * @test |
||
13 | */ |
||
14 | public function enum(): void |
||
24 | |||
25 | /** |
||
26 | * @test |
||
27 | */ |
||
28 | public function null(): void |
||
34 | |||
35 | /** |
||
36 | * @test |
||
37 | */ |
||
38 | public function integer(): void |
||
44 | |||
45 | /** |
||
46 | * @test |
||
47 | */ |
||
48 | public function equalsShouldReturnTrueWhenComparingObjectsWithTheSameTypeAndValue(): void |
||
54 | |||
55 | /** |
||
56 | * @test |
||
57 | */ |
||
58 | public function equalsShouldReturnFalseWhenComparingObjectsWithTheSameTypeButDifferentValue(): void |
||
64 | |||
65 | /** |
||
66 | * @test |
||
67 | */ |
||
68 | public function equalsShouldReturnFalseWhenComparingObjectsWithTheSameValueButDifferentType(): void |
||
74 | |||
75 | /** |
||
76 | * @test |
||
77 | */ |
||
78 | public function equalsShouldReturnTrueWhenComparingObjectsWithDifferentTypeAndValue(): void |
||
84 | |||
85 | /** |
||
86 | * @test |
||
87 | * |
||
88 | * @expectedException \InvalidArgumentException |
||
89 | * @expectedExceptionMessage Value [anything] is not matching any valid value of class "TestEnum". Valid values are ['A', 'BEE', 1, 3, NULL, true]. |
||
90 | */ |
||
91 | public function exceptionMessage(): void |
||
95 | |||
96 | /** |
||
97 | * @test |
||
98 | * |
||
99 | * @dataProvider getInvertedCaseOptions |
||
100 | * @expectedException \InvalidArgumentException |
||
101 | * |
||
102 | * @param mixed $option |
||
103 | */ |
||
104 | public function getWithInvertedCaseIsIncorrect($option): void |
||
108 | |||
109 | public function getInvertedCaseOptions() |
||
116 | |||
117 | /** |
||
118 | * @test |
||
119 | * |
||
120 | * @expectedException \InvalidArgumentException |
||
121 | */ |
||
122 | public function getWithStrictEqualMatchThrowsException(): void |
||
126 | |||
127 | |||
128 | /** |
||
129 | * @test |
||
130 | */ |
||
131 | public function isShouldAllowToCallMethodsBasedOnConstantNames(): void |
||
138 | |||
139 | /** |
||
140 | * @test |
||
141 | * |
||
142 | * @expectedException \BadMethodCallException |
||
143 | * @expectedExceptionMessage Werkspot\Enum\Tests\TestEnum::isDoesNotExist() does not exist |
||
144 | */ |
||
145 | public function isShouldThrowAnExceptionWhenWhenCallingAnInvalidMethod(): void |
||
149 | |||
150 | /** |
||
151 | * @test |
||
152 | */ |
||
153 | public function getValidOptions(): void |
||
167 | } |
||
168 |