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