| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 24 | class SplitCamelCaseWordsFormatterTest extends TestCase |
||
| 25 | { |
||
| 26 | public function testSplitCamelCase() |
||
| 27 | { |
||
| 28 | $this->assertEquals( |
||
| 29 | ['', 'stay_the_same', 'Test String One', 'Test String Two'], |
||
| 30 | SplitCamelCaseWordsFormatter::format(['', 'stay_the_same', 'TestStringOne', 'TestStringTwo']) |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function testSplitCamelCaseWithAcronym() |
||
| 35 | { |
||
| 36 | $this->assertEquals( |
||
| 37 | ['the CSV Machine', 'Some NASA Stuff', 'Does T.H.I.S. Work...'], |
||
| 38 | SplitCamelCaseWordsFormatter::format(['theCSVMachine', 'SomeNASAStuff', 'DoesT.H.I.S.Work...']) |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |