Code Duplication    Length = 7-10 lines in 2 locations

Tests/CollectionLoadingTest.php 1 location

@@ 60-69 (lines=10) @@
57
        self::assertInternalType('array', $entities);
58
        self::assertCount(3, $entities);
59
60
        foreach ($entities as $entity) {
61
            self::assertInternalType('int', $entity->getId());
62
            self::assertInstanceOf(SubEntity::class, $entity);
63
            self::assertEquals('test-payload-' . $entity->getId(), $entity->getPayload());
64
            self::assertEquals('sub-payload', $entity->getSubPayload());
65
66
            if (null !== $entity->getStringPayload()) {
67
                self::assertInternalType('string', $entity->getStringPayload());
68
            }
69
        }
70
    }
71
72
    protected function getClientNames()

Tests/ReferenceLoadingTest.php 1 location

@@ 101-107 (lines=7) @@
98
        }
99
        self::assertInstanceOf(Collection::class, $entity->getReferences());
100
101
        foreach ($entity->getReferences() as $reference) {
102
            self::assertInternalType('int', $reference->getId());
103
            self::assertInternalType('int', $reference->getOwner()->getId());
104
            self::assertInstanceOf(TestReference::class, $reference);
105
            self::assertEquals('test-payload-' . $reference->getId(), $reference->getReferencePayload());
106
            self::assertEquals($entity, $reference->getOwner());
107
        }
108
    }
109
110
    public function testFindByReference()