@@ 141-157 (lines=17) @@ | ||
138 | /** |
|
139 | * @test |
|
140 | */ |
|
141 | public function it_works_with_camel_case() |
|
142 | { |
|
143 | $this->assertEquals( |
|
144 | [ |
|
145 | 'oneKeyUsingCamelCase' => 1, |
|
146 | 'oneKeyUsingPascalCase' => 1, |
|
147 | 'oneKeyWithSpaces' => 1, |
|
148 | 'oneKeyWithHyphens' => 1, |
|
149 | 'andOneWithUnderscores' => 1, |
|
150 | 'whatAboutMixedSeparators!?!AndNumb333r5?' => 1, |
|
151 | 'one' => 1, |
|
152 | 'onewithsymbol!' => 1, |
|
153 | '~~~~' => 1, |
|
154 | ], |
|
155 | array_change_key_case(self::SAMPLE_ARRAY, CASE_CAMEL) |
|
156 | ); |
|
157 | } |
|
158 | ||
159 | /** |
|
160 | * @test |
|
@@ 162-178 (lines=17) @@ | ||
159 | /** |
|
160 | * @test |
|
161 | */ |
|
162 | public function it_works_with_pascal_case() |
|
163 | { |
|
164 | $this->assertEquals( |
|
165 | [ |
|
166 | 'OneKeyUsingCamelCase' => 1, |
|
167 | 'OneKeyUsingPascalCase' => 1, |
|
168 | 'OneKeyWithSpaces' => 1, |
|
169 | 'OneKeyWithHyphens' => 1, |
|
170 | 'AndOneWithUnderscores' => 1, |
|
171 | 'WhatAboutMixedSeparators!?!AndNumb333r5?' => 1, |
|
172 | 'One' => 1, |
|
173 | 'Onewithsymbol!' => 1, |
|
174 | '~~~~' => 1, |
|
175 | ], |
|
176 | array_change_key_case(self::SAMPLE_ARRAY, CASE_PASCAL) |
|
177 | ); |
|
178 | } |
|
179 | ||
180 | /** |
|
181 | * @test |