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 UpperCaseFormatter(); |
||
28 | $this->assertNotNull($formatter); |
||
29 | } |
||
30 | |||
31 | public function testConvertsLowerCaseToUpperCase() |
||
32 | { |
||
33 | $testLowerCaseHeader = ['firstname', 'lastname', 'email']; |
||
34 | $testUpperCaseHeader = ['FIRSTNAME', 'LASTNAME', 'EMAIL']; |
||
35 | |||
36 | $this->assertEquals($testUpperCaseHeader, UpperCaseFormatter::format($testLowerCaseHeader)); |
||
37 | } |
||
38 | } |
||
39 |