@@ 84-95 (lines=12) @@ | ||
81 | /** |
|
82 | * @test |
|
83 | */ |
|
84 | public function shouldForwardValueResolving() |
|
85 | { |
|
86 | /** @var string $value */ |
|
87 | $value = "Lorem ipsum"; |
|
88 | ||
89 | /** @var HydrationContextInterface $context */ |
|
90 | $context = $this->createMock(HydrationContextInterface::class); |
|
91 | ||
92 | $this->innerMapping->method("resolveValue")->willReturn($value); |
|
93 | ||
94 | $this->assertEquals($value, $this->proxy->resolveValue($context, [])); |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * @test |
|
@@ 100-111 (lines=12) @@ | ||
97 | /** |
|
98 | * @test |
|
99 | */ |
|
100 | public function shouldForwardValueReverting() |
|
101 | { |
|
102 | /** @var array<string, string> $data */ |
|
103 | $data = ["column" => "Lorem ipsum"]; |
|
104 | ||
105 | /** @var HydrationContextInterface $context */ |
|
106 | $context = $this->createMock(HydrationContextInterface::class); |
|
107 | ||
108 | $this->innerMapping->method("revertValue")->willReturn($data); |
|
109 | ||
110 | $this->assertEquals($data, $this->proxy->revertValue($context, [])); |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * @test |