0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00
PHPMailer/test
jrfnl cbecbc956b AddEmbeddedImageTest: improve original test [1]
The test code remaining in the `testEmbeddedImage()` constitutes one test.

This commit:
* Renames the test method and improves the description in the docblock.
* Removes the redundant call to `PHPMailer::clearAttachments()`.
    This call was previously needed as multiple situations were being tested in one test method.
    Now each test case has its own test method, the call to `PHPMailer::clearAttachments()` is no longer needed as each test method will receive a fresh, clean instance of the `PHPMailer` class.
* Replace a redundant condition and "forced" failure assertion with an assertion actually testing the result of the method call.
* Removes the redundant `return` - if an assertion fails, the rest of the code within the test method will not be executed anyway.
2021-07-07 19:26:56 +02:00
..
Language PHPMailerLangTest: rename and minor tweaks (#2377) 2021-06-23 23:04:15 +02:00
OAuth Tests: move OAuth test to own file (#2383) 2021-06-24 19:19:36 +02:00
PHPMailer AddEmbeddedImageTest: improve original test [1] 2021-07-07 19:26:56 +02:00
POP3 PopBeforeSmtpTest: skip on Windows 2021-06-29 12:36:07 +02:00
Security SecurityDenialOfServiceVectorsTest: various test tweaks 2021-07-06 21:28:02 +02:00
DebugLogTestListener.php Make the tests PHPUnit cross version compatible + test on PHP 8 (#2202) 2020-11-25 15:35:50 +01:00
fakefunctions.php Decode encoded names in the address parser, see #2266 2021-02-18 11:46:07 +01:00
fakepopserver.sh Update copyright year 2020-09-02 08:41:14 +02:00
fakesendmail.sh Minor fixes, code style 2016-08-31 10:26:06 +02:00
PreSendTestCase.php PreSendTestCase: reduce amount of properties being preset 2021-07-06 20:05:35 +02:00
runfakepopserver.sh See what's happening in the shell 2015-11-24 19:04:12 +01:00
SendTestCase.php SendTestCase: error out when the testbootstrap file cannot be found 2021-07-06 21:39:41 +02:00
testbootstrap-dist.php Big cleanup for Symfony coding style and php-cs-fixer, see #1148 2017-09-07 18:21:09 +02:00
TestCase.php TestCase::checkChanges(): make dynamic 2021-07-06 20:05:35 +02:00
validators.php Add tests for injected validators 2021-06-15 14:54:40 +02:00