Add example test config, adjust test setup to use it, see #19
This commit is contained in:
parent
1d074a4ec9
commit
edbefba3b7
|
|
@ -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
|
||||
|
|
@ -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;
|
||||
Loading…
Reference in New Issue