Пример #1
0
 public function testGetHashEncoding()
 {
     $this->assertEquals('sha1', $this->manifest->getHashEncoding());
     $md5 = "{$this->tmpdir}/manifest-md5.txt";
     touch($md5);
     $md5Manifest = new BagItManifest($md5, $this->prefix);
     $this->assertEquals('md5', $md5Manifest->getHashEncoding());
 }
Пример #2
0
 /**
  * Determine hash encoding
  *
  * @return string The bag's checksum encoding scheme.
  */
 function getHashEncoding()
 {
     return $this->manifest->getHashEncoding();
 }