@@ 69-80 (lines=12) @@ | ||
66 | /** |
|
67 | * @test |
|
68 | */ |
|
69 | public function shouldForwardValueResolving() |
|
70 | { |
|
71 | /** @var string $value */ |
|
72 | $value = "Lorem ipsum"; |
|
73 | ||
74 | /** @var HydrationContextInterface $context */ |
|
75 | $context = $this->createMock(HydrationContextInterface::class); |
|
76 | ||
77 | $this->innerMapping->method("resolveValue")->willReturn($value); |
|
78 | ||
79 | $this->assertEquals($value, $this->proxy->resolveValue($context, [])); |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * @test |
|
@@ 85-96 (lines=12) @@ | ||
82 | /** |
|
83 | * @test |
|
84 | */ |
|
85 | public function shouldForwardValueReverting() |
|
86 | { |
|
87 | /** @var array<string, string> $data */ |
|
88 | $data = ["column" => "Lorem ipsum"]; |
|
89 | ||
90 | /** @var HydrationContextInterface $context */ |
|
91 | $context = $this->createMock(HydrationContextInterface::class); |
|
92 | ||
93 | $this->innerMapping->method("revertValue")->willReturn($data); |
|
94 | ||
95 | $this->assertEquals($data, $this->proxy->revertValue($context, [])); |
|
96 | } |
|
97 | ||
98 | /** |
|
99 | * @test |