Code Duplication    Length = 17-18 lines in 2 locations

Tests/ValueResolver/ListValueResolverTest.php 1 location

@@ 139-155 (lines=17) @@
136
    /**
137
     * @test
138
     */
139
    public function shouldNotRevertValueOnNonListMapping()
140
    {
141
        /** @var MappingInterface $listMapping */
142
        $listMapping = $this->createMock(MappingInterface::class);
143
144
        /** @var HydrationContextInterface $context */
145
        $context = $this->createMock(HydrationContextInterface::class);
146
147
        /** @var mixed $valueFromEntityField */
148
        $valueFromEntityField = [];
149
150
        $this->assertEmpty($this->valueResolver->revertValue(
151
            $listMapping,
152
            $context,
153
            $valueFromEntityField
154
        ));
155
    }
156
157
    /**
158
     * @test

Tests/ValueResolver/NullableValueResolverTest.php 1 location

@@ 221-238 (lines=18) @@
218
    /**
219
     * @test
220
     */
221
    public function shouldNotRevertValueForNonNullableMapping()
222
    {
223
        /** @var MappingInterface $fieldMapping */
224
        $fieldMapping = $this->createMock(MappingInterface::class);
225
226
        /** @var HydrationContextInterface $context */
227
        $context = $this->createMock(HydrationContextInterface::class);
228
229
        /** @var mixed $valueFromEntityField */
230
        $valueFromEntityField = "foo";
231
232
        /** @var mixed $actualResult */
233
        $this->assertEmpty($this->valueResolver->revertValue(
234
            $fieldMapping,
235
            $context,
236
            $valueFromEntityField
237
        ));
238
    }
239
240
    /**
241
     * @test