mirror of
https://github.com/PHPMailer/PHPMailer.git
synced 2024-09-20 01:52:15 +02:00
d5a5ad19cd
PHPCS 3.6.2 added a sniff for a PSR-12 rule which was previously not strictly checked: "No blank line after the opening brace of a class". This fixes the newly flagged issues.
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* PHPMailer - Base test class.
|
|
* PHP version 5.5.
|
|
*
|
|
* @author Marcus Bointon <phpmailer@synchromedia.co.uk>
|
|
* @author Andy Prevost
|
|
* @copyright 2012 - 2020 Marcus Bointon
|
|
* @copyright 2004 - 2009 Andy Prevost
|
|
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
|
*/
|
|
|
|
namespace PHPMailer\Test;
|
|
|
|
use PHPMailer\PHPMailer\SMTP;
|
|
use PHPMailer\Test\TestCase;
|
|
|
|
/**
|
|
* PHPMailer - Test class for tests which need the `PHPMailer::preSend()` method to be called.
|
|
*/
|
|
abstract class PreSendTestCase extends TestCase
|
|
{
|
|
/**
|
|
* Property names and their values for the test instance of the PHPMailer class.
|
|
*
|
|
* These properties will be set in the `set_up()` method.
|
|
*
|
|
* This property can be enhanced/overloaded in concrete test classes to change the presets
|
|
* or add additional properties.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $propertyChanges = [
|
|
// Generic changes.
|
|
'SMTPDebug' => SMTP::DEBUG_CONNECTION, // Full debug output.
|
|
'Debugoutput' => ['PHPMailer\Test\DebugLogTestListener', 'debugLog'],
|
|
|
|
// Minimal set of properties which are needed for the preSend() command to succeed.
|
|
'From' => 'unit_test@phpmailer.example.com',
|
|
'to' => [
|
|
'address' => 'somebody@example.com',
|
|
'name' => 'Test User',
|
|
],
|
|
];
|
|
}
|