| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function testShouldNotMapIgnoredMembers() |
||
| 13 | { |
||
| 14 | // arrange |
||
| 15 | $engine = new Engine(); |
||
| 16 | $engine->createMap(Source::className(), Destination::className()) |
||
| 17 | ->forMember('value', new Ignore()); |
||
| 18 | // act |
||
| 19 | /** @var Destination $destination */ |
||
| 20 | $destination = $engine->map(new Source())->toType(Destination::className()); |
||
| 21 | // assert |
||
| 22 | $this->assertNull($destination->value); |
||
| 23 | } |
||
| 24 | |||
| 43 |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.