mirror of
https://github.com/PHPMailer/PHPMailer.git
synced 2024-09-20 01:52:15 +02:00
SetTest: split off value toggling test
This commit moves the "set a property to null and then back" test to a separate test method. Note: based on the code in the method, this test doesn't really add any value, but I also see no reason to remove it.
This commit is contained in:
parent
eef6f4e52a
commit
628d56927e
@ -27,6 +27,13 @@ final class SetTest extends TestCase
|
||||
public function testMiscellaneous()
|
||||
{
|
||||
self::assertTrue($this->Mail->set('Timeout', 11), 'Valid property set failed');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test setting a property to `null` and then resetting it to a non-null value.
|
||||
*/
|
||||
public function testTogglingPropertyValueAwayFromNull()
|
||||
{
|
||||
self::assertTrue($this->Mail->set('AllowEmpty', null), 'Null property set failed');
|
||||
self::assertTrue($this->Mail->set('AllowEmpty', false), 'Valid property set of null property failed');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user