/**
  * @param EntityPackage $entity_package
  * @return PackageContent
  */
 public function getPackageContent(EntityPackage $entity_package)
 {
     if ($this->type == PackageContent::ENTITY) {
         return $entity_package->getEntityContent();
     } else {
         return $entity_package->getRepositoryContent();
     }
 }
 public function testGetRepositoryContent()
 {
     $repo_content = self::createMock('Hostnet\\Component\\EntityPlugin\\PackageContentInterface');
     $entity_package = new EntityPackage(new Package('hostnet/foo', 1.0, 1.0), self::createMock('Hostnet\\Component\\EntityPlugin\\PackageContentInterface'), $repo_content);
     $this->assertSame($repo_content, $entity_package->getRepositoryContent());
 }