groupSource = new MemberCollectionSource(); } public function testConstructor(): void { $this->assertInstanceOf(Collection::class, $this->groupSource->getMembers()); } public function testMembers() { $member = new class() extends AbstractSource { }; $this->groupSource->setMembers(new ArrayCollection([ $member, ])); $this->assertEquals($member, $this->groupSource->getMembers() ->get(0)); } }