mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 23:24:02 +02:00
CS fixes
This commit is contained in:
@@ -24,7 +24,7 @@ class NativeMailerHandlerTest extends TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
{
|
||||
$GLOBALS['mail'] = array();
|
||||
$GLOBALS['mail'] = [];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,7 +50,7 @@ class NativeMailerHandlerTest extends TestCase
|
||||
public function testSetterArrayHeaderInjection()
|
||||
{
|
||||
$mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
|
||||
$mailer->addHeader(array("Content-Type: text/html\r\nFrom: faked@attacker.org"));
|
||||
$mailer->addHeader(["Content-Type: text/html\r\nFrom: faked@attacker.org"]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,7 +78,7 @@ class NativeMailerHandlerTest extends TestCase
|
||||
$from = 'receiver@example.org';
|
||||
|
||||
$mailer = new NativeMailerHandler($to, $subject, $from);
|
||||
$mailer->handleBatch(array());
|
||||
$mailer->handleBatch([]);
|
||||
|
||||
// batch is empty, nothing sent
|
||||
$this->assertEmpty($GLOBALS['mail']);
|
||||
|
Reference in New Issue
Block a user