sourceClassInformationService = new SourceClassInformationService(); } public function testPureSource(): void { $allClasses = $this->sourceClassInformationService->getAllSourceClasses(); $this->assertTrue(in_array(PureSource::class, $allClasses)); } public function testNotSource(): void { $allClasses = $this->sourceClassInformationService->getAllSourceClasses(); $this->assertFalse(in_array('ALLALALABBBB', $allClasses)); } public function testSubSource(): void { $allClasses = $this->sourceClassInformationService->getAllSubSourceClasses('Infinito\\Entity\\Source\\Complex'); $this->assertFalse(in_array(PureSource::class, $allClasses)); $this->assertTrue(in_array(AbstractComplexSource::class, $allClasses)); } }