1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 15:14:14 +02:00

Added @covers annotations to everything

This commit is contained in:
Jordi Boggiano
2011-06-29 20:23:08 +02:00
parent 61d5a23e41
commit 8108272c6c
9 changed files with 116 additions and 6 deletions

View File

@@ -16,6 +16,9 @@ use Monolog\TestCase;
class MailHandlerTest extends TestCase
{
/**
* @covers Monolog\Handler\MailHandler::handleBatch
*/
public function testHandleBatch()
{
$formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
@@ -33,6 +36,9 @@ class MailHandlerTest extends TestCase
$handler->handleBatch($this->getMultipleRecords());
}
/**
* @covers Monolog\Handler\MailHandler::handleBatch
*/
public function testHandleBatchNotSendsMailIfMessagesAreBelowLevel()
{
$records = array(
@@ -49,6 +55,9 @@ class MailHandlerTest extends TestCase
$handler->handleBatch($records);
}
/**
* @covers Monolog\Handler\MailHandler::write
*/
public function testHandle()
{
$handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
@@ -57,5 +66,4 @@ class MailHandlerTest extends TestCase
$handler->handle($this->getRecord());
}
}