Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function testWithValueObjectStringable(): void |
||
37 | { |
||
38 | $generator = new ODMGenerator(); |
||
39 | |||
40 | $media = new Media(); |
||
41 | $media->setContext('user'); |
||
42 | |||
43 | // Dummy Value Object representing UUID |
||
44 | $vo = new class() { |
||
45 | public function __toString() |
||
46 | { |
||
47 | return '550e8400-e29b-41d4-a716-446655440000'; |
||
48 | } |
||
49 | }; |
||
50 | $media->setId($vo); |
||
51 | |||
52 | $this->assertSame('user/550e/84', $generator->generatePath($media)); |
||
53 | } |
||
54 | } |
||
55 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.