public function dryRun($path)
 {
     if (false === file_exists($path)) {
         throw new \InvalidArgumentException(sprintf("Provided composer.json file  at %s does not exist.", $path));
     }
     $autoloaders = $this->composerReader->getAutoloadPaths(file_get_contents($path));
     foreach ($autoloaders as $psr => $filesUnderPsr) {
         foreach ($filesUnderPsr as $namespace => $path) {
             $namespace = str_replace('\\\\', '\\', $namespace);
             $files = $this->fileReader->getFilesFromPath($path);
             if ($psr === Reader::PSR0) {
                 self::expectedPathForPsr0($files, $namespace);
             }
             if ($psr === Reader::PSR4) {
                 self::expectedPathForPsr4($files, $namespace);
             }
         }
     }
 }
 /**
  *
  */
 public function testItReadsPsr4()
 {
     $composer = $this->getComposerFile();
     $namespaces = Reader::getAutoloadPaths($composer);
     $this->assertNotEmpty($namespaces[Reader::PSR4]);
 }