1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Added SwiftMailerHandler, added write to MailHandler

This commit is contained in:
Gyula Sallai
2011-04-25 01:48:12 +02:00
parent 1279194192
commit a1bc483041
3 changed files with 75 additions and 9 deletions

View File

@@ -1,5 +1,14 @@
<?php
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler;
use Monolog\Logger;
@@ -34,9 +43,9 @@ class MailHandlerTest extends TestCase
$handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
$handler->expects($this->once())
->method('write');
->method('send');
$this->assertTrue($handler->handle($record));
$handler->handle($record);
}
}