Skip to content

Commit b91d647

Browse files
committed
More tests
1 parent 2aa3e69 commit b91d647

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Doctrine/ODM/MongoDB/Tests/Mapping/LegacyReflectionFieldsTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,10 @@ public function testGetSet(): void
4545
self::assertEquals('Paris', $class->getReflectionProperty('address')->getValue($user)->getCity());
4646
$class->getReflectionProperty('address')->setValue($user, $newAddress = new Address());
4747
self::assertSame($newAddress, $class->getReflectionProperty('address')->getValue($user));
48+
49+
// ArrayAccess and Countable interfaces
50+
self::assertCount(32, $class->reflFields);
51+
self::assertArrayHasKey('username', $class->reflFields);
52+
self::assertArrayNotHasKey('nonExistentField', $class->reflFields);
4853
}
4954
}

0 commit comments

Comments
 (0)