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

Added some tests

This commit is contained in:
Christophe Coevoet
2011-08-29 15:00:28 +02:00
parent 5267b03b1e
commit 10e5ecd409
5 changed files with 109 additions and 4 deletions

View File

@@ -16,9 +16,8 @@ use Monolog\Handler\TestHandler;
class LoggerTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers Monolog\Logger::getName()
* @covers Monolog\Logger::getName
*/
public function testGetName()
{
@@ -107,6 +106,17 @@ class LoggerTest extends \PHPUnit_Framework_TestCase
$logger->popProcessor();
}
/**
* @covers Monolog\Logger::pushProcessor
* @expectedException InvalidArgumentException
*/
public function testPushProcessorWithNonCallable()
{
$logger = new Logger(__METHOD__);
$logger->pushProcessor(new \stdClass());
}
/**
* @covers Monolog\Logger::addRecord
*/