Author: Jan Schneider (jan@horde.org)
Inheritance: extends Horde_Test_Case
Ejemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     setlocale(LC_ALL, 'C');
     list($this->spam_header, $this->spam_body) = explode("\n\n", $this->spam, 2);
     list($this->ham_header, $this->ham_body) = explode("\n\n", $this->ham, 2);
     $this->ham_header = str_replace('Return-Path: <*****@*****.**>', 'Return-Path: <*****@*****.**>', $this->ham_header);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $this->out_template = sys_get_temp_dir() . '/horde_spam.*.out';
     $this->spam_out = str_replace('*', 'spam', $this->out_template);
     $this->ham_out = str_replace('*', 'ham', $this->out_template);
     $this->binary = 'php -r \'file_put_contents(str_replace("*", $argv[1], "' . $this->out_template . '"), stream_get_contents(STDIN));\'';
 }