public function testAddMany() { $list = [TOC::class => new TOC(), Frontmatter::class => new Frontmatter()]; $collection = new PlaceholderCollection(); $collection->addMany($list); $this->assertSame($list, $collection->toArray()); }