示例#1
0
文件: omen.php 项目: anoxic/omen
/**
 * omen_timestamp_filename() creates the path of a timestamp file for the $contact and $check
 * @return string
 */
function omen_timestamp_filename(Check $check, Contact $contact)
{
    $repo = omen_repo_name();
    $contact->value = strtohappiness($contact->value);
    $contact->type = strtohappiness($contact->type);
    $check->name = strtohappiness($check->name);
    return "{$repo}/{$check->name}.{$contact->type}.{$contact->value}";
}
示例#2
0
文件: OmenTest.php 项目: anoxic/omen
 public function testRepoNameStorage()
 {
     omen_repo_name('test');
     $this->assertEquals('test', omen_repo_name());
 }