mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +02:00
@@ -71,7 +71,7 @@ final class Utils
|
|||||||
*
|
*
|
||||||
* If the failure is due to invalid string encoding, try to clean the
|
* If the failure is due to invalid string encoding, try to clean the
|
||||||
* input and encode again. If the second encoding attempt fails, the
|
* input and encode again. If the second encoding attempt fails, the
|
||||||
* inital error is not encoding related or the input can't be cleaned then
|
* initial error is not encoding related or the input can't be cleaned then
|
||||||
* raise a descriptive exception.
|
* raise a descriptive exception.
|
||||||
*
|
*
|
||||||
* @param int $code return code of json_last_error function
|
* @param int $code return code of json_last_error function
|
||||||
|
@@ -41,7 +41,7 @@ class ErrorLogHandlerTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers Monolog\Handler\ErrorLogHandler::write
|
* @covers Monolog\Handler\ErrorLogHandler::write
|
||||||
*/
|
*/
|
||||||
public function testShouldLogMessagesUsingErrorLogFuncion()
|
public function testShouldLogMessagesUsingErrorLogFunction()
|
||||||
{
|
{
|
||||||
$type = ErrorLogHandler::OPERATING_SYSTEM;
|
$type = ErrorLogHandler::OPERATING_SYSTEM;
|
||||||
$handler = new ErrorLogHandler($type);
|
$handler = new ErrorLogHandler($type);
|
||||||
|
@@ -116,7 +116,7 @@ class RegistryTest extends \PHPUnit\Framework\TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers Monolog\Registry::getInstance
|
* @covers Monolog\Registry::getInstance
|
||||||
*/
|
*/
|
||||||
public function testFailsOnNonExistantLogger()
|
public function testFailsOnNonExistentLogger()
|
||||||
{
|
{
|
||||||
$this->expectException(\InvalidArgumentException::class);
|
$this->expectException(\InvalidArgumentException::class);
|
||||||
Registry::getInstance('test1');
|
Registry::getInstance('test1');
|
||||||
|
Reference in New Issue
Block a user