Code Duplication    Length = 7-7 lines in 2 locations

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

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