protected function getFileNameByClass($class)
 {
     $loader = RootClassLoader::getLoaderByClass($class);
     $vendor = $loader->getVendorName();
     $rootPath = $loader->getRootPath();
     // first part of the namespace must be dropped to not double the vendor name
     return $rootPath . '/' . str_replace('\\', '/', str_replace($vendor . '\\', '', $class)) . '.php';
 }
 public function testGetLoaderByVendorOnlyClass()
 {
     $vendor = RootClassLoader::getLoaderByClass(self::VENDOR . '\\Bar');
     $this->assertEquals(self::SOURCE_PATH, $vendor->getRootPath());
 }