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()); }
/** * Determine hash encoding * * @return string The bag's checksum encoding scheme. */ function getHashEncoding() { return $this->manifest->getHashEncoding(); }