Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function testRenameColumns () : void |
||
17 | { |
||
18 | $transformer = new RenameColumnsTransformer(); |
||
19 | $transformer->options( [ "columns" => [ "email_address" => "email" ] ] ); |
||
20 | |||
21 | $givenRow = new Row( [ "id" => "1", "name" => "John Doe", "email_address" => "[email protected]" ] ); |
||
22 | |||
23 | $transformer->transform( $givenRow ); |
||
24 | |||
25 | $expectedRow = new Row( [ "id" => "1", "name" => "John Doe", "email" => "[email protected]" ] ); |
||
26 | |||
27 | $this->assertEquals( $expectedRow, $givenRow ); |
||
28 | } |
||
30 |