Code Duplication    Length = 7-7 lines in 2 locations

eZ/Publish/API/Repository/Tests/BaseTest.php 2 locations

@@ 226-232 (lines=7) @@
223
     */
224
    protected function assertPropertiesCorrectUnsorted(array $expectedValues, ValueObject $actualObject)
225
    {
226
        foreach ($expectedValues as $propertyName => $propertyValue) {
227
            if ($propertyValue instanceof ValueObject) {
228
                $this->assertStructPropertiesCorrect($propertyValue, $actualObject->$propertyName);
229
            } else {
230
                $this->assertPropertiesEqual($propertyName, $propertyValue, $actualObject->$propertyName, true);
231
            }
232
        }
233
    }
234
235
    /**
@@ 246-252 (lines=7) @@
243
     */
244
    protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = array())
245
    {
246
        foreach ($expectedValues as $propertyName => $propertyValue) {
247
            if ($propertyValue instanceof ValueObject) {
248
                $this->assertStructPropertiesCorrect($propertyValue, $actualObject->$propertyName);
249
            } else {
250
                $this->assertPropertiesEqual($propertyName, $propertyValue, $actualObject->$propertyName);
251
            }
252
        }
253
254
        foreach ($additionalProperties as $propertyName) {
255
            $this->assertPropertiesEqual($propertyName, $expectedValues->$propertyName, $actualObject->$propertyName);