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