| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 20 | public function testGetColumnName() |
||
| 21 | { |
||
| 22 | $fieldNamesToExpectedColumnNames = [ |
||
| 23 | 'test' => '`test`', |
||
| 24 | 'longThingWithCamelCase' => '`long_thing_with_camel_case`', |
||
| 25 | ]; |
||
| 26 | foreach ($fieldNamesToExpectedColumnNames as $field => $expected) { |
||
| 27 | $actual = MappingHelper::getColumnNameForField($field); |
||
| 28 | $this->assertSame($expected, $actual); |
||
| 29 | } |
||
| 44 |