Add example test config, adjust test setup to use it, see #19

This commit is contained in:
Synchro 2013-02-01 16:05:17 +01:00
parent 1d074a4ec9
commit edbefba3b7
2 changed files with 8 additions and 0 deletions

View File

@ -10,5 +10,6 @@ before_script:
- sudo service postfix stop
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
- cd test
- cp testbootstrap-dist.php testbootstrap.php
script:
- phpunit phpmailerTest

View File

@ -0,0 +1,7 @@
<?php
$_REQUEST['submitted'] = 1;
$_REQUEST['mail_to'] = 'somebody@example.com';
$_REQUEST['mail_from'] = 'phpunit@example.com';
$_REQUEST['mail_cc'] = 'cc@example.com';
$_REQUEST['mail_host'] = 'localhost';
$_REQUEST['mail_port'] = 2500;