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