1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 18:30:15 +02:00

Added logger name getter, Monolog\Logger::getName()

Added phpunit.xml to .gitignore to prevent contributors from accidentally commiting theirs.
This commit is contained in:
Artem Nezvigin
2011-08-07 16:29:10 -07:00
parent f2abbf3f7c
commit f31388ec42
3 changed files with 18 additions and 0 deletions

View File

@@ -16,6 +16,16 @@ use Monolog\Handler\TestHandler;
class LoggerTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers Monolog\Logger::getName()
*/
public function testGetName()
{
$logger = new Logger('foo');
$this->assertEquals('foo', $logger->getName());
}
/**
* @covers Monolog\Logger::__construct
*/