protected function collectControllers()
 {
     $packagesPath = $this->packagesPath;
     $vendorPath = $this->vendorPath;
     $this->mapper->configure(['/controller/i'], ['/tests/i'], ['*Controller.php']);
     return $this->mapper->createMap($packagesPath, $vendorPath);
 }
 protected function collectResources()
 {
     $packagesPath = $this->packagesPath;
     $vendorPath = $this->vendorPath;
     $this->mapper->configure(['/resource/i'], ['/tests/i'], ['*Resource.php']);
     return $this->mapper->createMap($packagesPath, $vendorPath);
 }