| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 24 | class UpperCaseFormatterTest extends TestCase |
||
| 25 | { |
||
| 26 | public function testCreateFormatter() |
||
| 27 | { |
||
| 28 | $formatter = new UpperCaseFormatter(); |
||
| 29 | $this->assertNotNull($formatter); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function testConvertsLowerCaseToUpperCase() |
||
| 33 | { |
||
| 34 | $testLowerCaseHeader = ['firstname', 'lastname', 'email']; |
||
| 35 | $testUpperCaseHeader = ['FIRSTNAME', 'LASTNAME', 'EMAIL']; |
||
| 36 | |||
| 37 | $this->assertEquals($testUpperCaseHeader, UpperCaseFormatter::format($testLowerCaseHeader)); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |