Skip to content

Commit

Permalink
Use 'user@example.com' rather than 'user@company.com' in tests
Browse files Browse the repository at this point in the history
Using some arbitrary 3rd party's domain name is clowny,
even if it never tries to send.
  • Loading branch information
sgolemon committed Dec 4, 2013
1 parent ecf95a4 commit 9adfcea
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions ext/standard/tests/mail/bug51604.phpt
Expand Up @@ -11,7 +11,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
--FILE--
<?php
// Initialise all required variables
$to = 'user@company.com';
$to = 'user@example.com';
$subject = 'Test Subject';
$message = 'A Message';
$additional_headers = "KHeaders\n\n\n\n\n";
Expand All @@ -27,7 +27,7 @@ unlink($outFile);
===DONE===
--EXPECT--
bool(true)
To: user@company.com
To: user@example.com
Subject: Test Subject
KHeaders

Expand Down
6 changes: 3 additions & 3 deletions ext/standard/tests/mail/mail_basic.phpt
Expand Up @@ -20,7 +20,7 @@ echo "*** Testing mail() : basic functionality ***\n";


// Initialise all required variables
$to = 'user@company.com';
$to = 'user@example.com';
$subject = 'Test Subject';
$message = 'A Message';
$additional_headers = 'KHeaders';
Expand All @@ -45,15 +45,15 @@ unlink($outFile);
*** Testing mail() : basic functionality ***
-- All Mail Content Parameters --
bool(true)
To: user@company.com
To: user@example.com
Subject: Test Subject
KHeaders

A Message

-- Mandatory Parameters --
bool(true)
To: user@company.com
To: user@example.com
Subject: Test Subject

A Message
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/tests/mail/mail_basic2.phpt
Expand Up @@ -20,7 +20,7 @@ echo "*** Testing mail() : basic functionality ***\n";


// Initialise all required variables
$to = 'user@company.com';
$to = 'user@example.com';
$subject = 'Test Subject';
$message = 'A Message';
$additional_headers = 'KHeaders';
Expand All @@ -40,7 +40,7 @@ unlink($outFile);
*** Testing mail() : basic functionality ***
-- extra parameters --
bool(true)
%w1%wTo: user@company.com
%w1%wTo: user@example.com
%w2%wSubject: Test Subject
%w3%wKHeaders
%w4%w
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_basic3.phpt
Expand Up @@ -19,7 +19,7 @@ echo "*** Testing mail() : basic functionality ***\n";


// Initialise all required variables
$to = 'user@company.com';
$to = 'user@example.com';
$subject = 'Test Subject';
$message = 'A Message';

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_basic4.phpt
Expand Up @@ -19,7 +19,7 @@ echo "*** Testing mail() : basic functionality ***\n";


// Initialise all required variables
$to = 'user@company.com';
$to = 'user@example.com';
$subject = 'Test Subject';
$message = 'A Message';

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_basic5.phpt
Expand Up @@ -19,7 +19,7 @@ echo "*** Testing mail() : basic functionality ***\n";


// Initialise all required variables
$to = 'user@company.com';
$to = 'user@example.com';
$subject = 'Test Subject';
$message = 'A Message';

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_basic_alt1-win32.phpt
Expand Up @@ -22,7 +22,7 @@ max_execution_time = 120
error_reporting(E_ALL & ~E_STRICT);
ini_set("SMTP", "localhost");
ini_set("smtp_port", 25);
ini_set("sendmail_from", "user@company.com");
ini_set("sendmail_from", "user@example.com");

echo "*** Testing mail() : basic functionality ***\n";
require_once(dirname(__FILE__).'/mail_include.inc');
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_basic_alt2-win32.phpt
Expand Up @@ -32,7 +32,7 @@ bool mail ( string \$to , string \$subject , string \$message [, string \$additi
Send an email message
HERE;

$extra_headers = "from: user@company.com";
$extra_headers = "from: user@example.com";

$res = mail($to, $subject, $message, $extra_headers);

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_basic_alt3-win32.phpt
Expand Up @@ -32,7 +32,7 @@ bool mail ( string \$to , string \$subject , string \$message [, string \$additi
Send an email message
HERE;

$extra_headers = "FRom: user@company.com";
$extra_headers = "FRom: user@example.com";

$res = mail($to, $subject, $message, $extra_headers);

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_basic_alt4-win32.phpt
Expand Up @@ -32,7 +32,7 @@ bool mail ( string \$to , string \$subject , string \$message [, string \$additi
Send an email message
HERE;

$extra_headers = "from: user@company.com";
$extra_headers = "from: user@example.com";
$extra_parameters = "addons"; // should be ignored

$res = mail($to, $subject, $message, $extra_headers, $extra_parameters);
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_variation1.phpt
Expand Up @@ -18,7 +18,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
echo "*** Testing mail() : variation ***\n";

// Initialise all required variables
$to = 'user@company.com';
$to = 'user@example.com';
$subject = 'Test Subject';
$message = 'A Message';
var_dump( mail($to, $subject, $message) );
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/tests/mail/mail_variation2.phpt
Expand Up @@ -21,7 +21,7 @@ echo "*** Testing mail() : basic functionality ***\n";


// Initialise all required variables
$to = 'user@company.com';
$to = 'user@example.com';
$subject = 'Test Subject';
$message = 'A Message';
$outFile = "/tmp/php_test_mailVariation2.out";
Expand All @@ -36,7 +36,7 @@ unlink($outFile);
--EXPECTF--
*** Testing mail() : basic functionality ***
bool(true)
%w1%wTo: user@company.com
%w1%wTo: user@example.com
%w2%wSubject: Test Subject
%w3%w
%w4%wA Message
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_variation_alt1-win32.phpt
Expand Up @@ -21,7 +21,7 @@ max_execution_time = 120
error_reporting(E_ALL & ~E_STRICT);
ini_set("SMTP", "localhost");
ini_set("smtp_port", 2525);
ini_set("sendmail_from", "user@company.com");
ini_set("sendmail_from", "user@example.com");

echo "*** Testing mail() : basic functionality ***\n";
require_once(dirname(__FILE__).'/mail_include.inc');
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/mail/mail_variation_alt2-win32.phpt
Expand Up @@ -21,7 +21,7 @@ max_execution_time = 120
error_reporting(E_ALL & ~E_STRICT);
ini_set("SMTP", "localplace");
ini_set("smtp_port", 25);
ini_set("sendmail_from", "user@company.com");
ini_set("sendmail_from", "user@example.com");

echo "*** Testing mail() : basic functionality ***\n";
require_once(dirname(__FILE__).'/mail_include.inc');
Expand Down

0 comments on commit 9adfcea

Please sign in to comment.