public function testTotalByteValueFromFile() { $this->createTempDir("ezcArchive_"); $dir = $this->getTempDir(); file_put_contents("{$dir}/byte_value_file.txt", $this->testString); $byteValueExpected = ezcArchiveChecksums::getTotalByteValueFromString(file_get_contents("{$dir}/byte_value_file.txt")); $byteValue = ezcArchiveChecksums::getTotalByteValueFromFile("{$dir}/byte_value_file.txt"); $this->assertEquals($byteValueExpected, $byteValue); }