| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 17 | 1 | public function testEnrich(): void |
|
| 18 | { |
||
| 19 | 1 | $metadata = (new CallbackMetadataEnricher( |
|
| 20 | 1 | fn(Metadata $metadata): Metadata => $metadata->with('message', 'hello world') |
|
| 21 | 1 | ))->enrich(Metadata::makeEmpty()); |
|
| 22 | |||
| 23 | 1 | $this->assertEquals($metadata->get('message'), 'hello world'); |
|
| 24 | 1 | } |
|
| 26 |