We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aa3e69 commit b91d647Copy full SHA for b91d647
tests/Doctrine/ODM/MongoDB/Tests/Mapping/LegacyReflectionFieldsTest.php
@@ -45,5 +45,10 @@ public function testGetSet(): void
45
self::assertEquals('Paris', $class->getReflectionProperty('address')->getValue($user)->getCity());
46
$class->getReflectionProperty('address')->setValue($user, $newAddress = new Address());
47
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);
53
}
54
0 commit comments