Code Duplication    Length = 7-7 lines in 2 locations

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

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