private function useLibraryFixture($name)
 {
     $this->scanFixture($this->packageVersion, $name);
     $this->em->getConnection()->beginTransaction();
     $this->em->persist($this->packageVersion);
     $this->em->flush();
     $this->em->getConnection()->commit();
     $this->em->clear();
     $this->packageVersion = $this->repo->getPackageVersion('foo', '1.0');
     $this->package = $this->packageVersion->getPackage();
 }
 public function dependsOn(PackageVersion $otherPackage)
 {
     foreach ($this->dependencies as $dep) {
         if ($dep->getVersion() === $otherPackage->getVersion() && $dep->getPackage()->getName() === $otherPackage->getPackage()->getName()) {
             return true;
         }
     }
     return false;
 }