/** * Find Classes in Bundles * * @access public * @param string $subDir * @param string $suffix * @param string $parent * @param boolean $reflection * @return array */ public function findClasses($subDir = null, $suffix = null, $parent = null, $reflection = false) { $classes = []; foreach ($this->bundles as $bundle) { $this->setRootDirectory($bundle->getPath()); $this->setRootNamespace($bundle->getNamespace()); $classes = array_merge($classes, parent::findClasses($subDir, $suffix, $parent, $reflection)); } return $classes; }
/** * Abstract Types Are Not Returned * * @test * @access public * @return void */ public function abstractTypesAreNotReturned() { $finder = new ClassFinder(); $finder->setRootDirectory(__DIR__ . '/Fixtures'); $finder->setRootNamespace(__NAMESPACE__ . '\\Fixtures'); $this->assertCount(0, $finder->findClasses(null, 'Interface')); }