collectionSource = new class() extends AbstractCollectionSource { }; } public function testConstruct(): void { $this->expectException(\TypeError::class); $this->collectionSource->getCollection(); } }