Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
24 | { |
||
25 | public function testCreateFormatter() |
||
26 | { |
||
27 | $formatter = new UpperCaseWordsFormatter(); |
||
28 | $this->assertNotNull($formatter); |
||
29 | } |
||
30 | |||
31 | public function testConvertsLowerCaseToUpperCase() |
||
32 | { |
||
33 | $testLowerCaseHeader = ['first name', 'last_name', 'email-address', 'user.id']; |
||
34 | $testUpperCaseHeader = ['First Name', 'Last_Name', 'Email-Address', 'User.Id']; |
||
35 | |||
36 | $this->assertEquals($testUpperCaseHeader, UpperCaseWordsFormatter::format($testLowerCaseHeader)); |
||
37 | } |
||
38 | } |
||
39 |