Differential D21821 Diff 52001 src/applications/files/format/__tests__/PhabricatorFileStorageFormatTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/format/__tests__/PhabricatorFileStorageFormatTestCase.php
Show All 39 Lines | public function testRot13Storage() { | ||||
$raw_data = ''; | $raw_data = ''; | ||||
foreach ($iterator as $data_chunk) { | foreach ($iterator as $data_chunk) { | ||||
$raw_data .= $data_chunk; | $raw_data .= $data_chunk; | ||||
} | } | ||||
$this->assertEqual('cow jumped', $raw_data); | $this->assertEqual('cow jumped', $raw_data); | ||||
} | } | ||||
public function testAES256Storage() { | public function testAES256Storage() { | ||||
if (!function_exists('openssl_encrypt')) { | |||||
$this->assertSkipped(pht('No OpenSSL extension available.')); | |||||
} | |||||
$engine = new PhabricatorTestStorageEngine(); | $engine = new PhabricatorTestStorageEngine(); | ||||
$key_name = 'test.abcd'; | $key_name = 'test.abcd'; | ||||
$key_text = 'abcdefghijklmnopABCDEFGHIJKLMNOP'; | $key_text = 'abcdefghijklmnopABCDEFGHIJKLMNOP'; | ||||
PhabricatorKeyring::addKey( | PhabricatorKeyring::addKey( | ||||
array( | array( | ||||
'name' => $key_name, | 'name' => $key_name, | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |