Ejemplo n.º 1
0
Archivo: omen.php Proyecto: 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}";
}
Ejemplo n.º 2
0
 public function testRepoNameStorage()
 {
     omen_repo_name('test');
     $this->assertEquals('test', omen_repo_name());
 }