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

Remove non-PSR-3 methods for adding log records

This commit is contained in:
Jordi Boggiano
2015-10-09 19:20:12 +01:00
parent 35ce15e098
commit 39f8a20e6d
4 changed files with 22 additions and 189 deletions

View File

@@ -121,7 +121,7 @@ class PHPConsoleHandlerTest extends TestCase
public function testDebug()
{
$this->debugDispatcher->expects($this->once())->method('dispatchDebug')->with($this->equalTo('test'));
$this->initLogger()->addDebug('test');
$this->initLogger()->debug('test');
}
public function testDebugContextInMessage()
@@ -134,7 +134,7 @@ class PHPConsoleHandlerTest extends TestCase
$this->equalTo($expectedMessage),
$this->equalTo($tag)
);
$this->initLogger()->addDebug($message, $context);
$this->initLogger()->debug($message, $context);
}
public function testDebugTags($tagsContextKeys = null)
@@ -151,7 +151,7 @@ class PHPConsoleHandlerTest extends TestCase
$this->equalTo($expectedTags)
);
$this->connector->setDebugDispatcher($debugDispatcher);
$logger->addDebug('test', array($key => $expectedTags));
$logger->debug('test', array($key => $expectedTags));
}
}
@@ -198,7 +198,7 @@ class PHPConsoleHandlerTest extends TestCase
public function testOptionEnabled()
{
$this->debugDispatcher->expects($this->never())->method('dispatchDebug');
$this->initLogger(array('enabled' => false))->addDebug('test');
$this->initLogger(array('enabled' => false))->debug('test');
}
public function testOptionClassesPartialsTraceIgnore()