Beispiel #1
0
/**
 * 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}";
}
Beispiel #2
0
 public function testRepoNameStorage()
 {
     omen_repo_name('test');
     $this->assertEquals('test', omen_repo_name());
 }