mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-12 08:04:02 +02:00
CS fixes
This commit is contained in:
@@ -64,7 +64,6 @@ EOF;
|
||||
$this->assertEquals($expected, $this->generateScript());
|
||||
}
|
||||
|
||||
|
||||
public function testAutolabel()
|
||||
{
|
||||
$handler = new BrowserConsoleHandler();
|
||||
|
@@ -22,7 +22,6 @@ function error_log()
|
||||
|
||||
class ErrorLogHandlerTest extends TestCase
|
||||
{
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$GLOBALS['error_log'] = array();
|
||||
|
@@ -73,7 +73,6 @@ class FleepHookHandlerTest extends TestCase
|
||||
$actual = $handlerFormatter->format($record);
|
||||
|
||||
$this->assertEquals($expected, $actual, 'Empty context and extra arrays should not be rendered');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,5 +82,4 @@ class FleepHookHandlerTest extends TestCase
|
||||
{
|
||||
$this->assertEquals('ssl://' . FleepHookHandler::FLEEP_HOST . ':443', $this->handler->getConnectionString());
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -65,7 +65,6 @@ class GelfHandlerTest extends TestCase
|
||||
$handler = $this->getHandler($messagePublisher);
|
||||
|
||||
$handler->handle($record);
|
||||
|
||||
}
|
||||
|
||||
public function testWarning()
|
||||
@@ -114,6 +113,5 @@ class GelfHandlerTest extends TestCase
|
||||
$handler = $this->getHandler($messagePublisher);
|
||||
$handler->setFormatter(new GelfMessageFormatter('mysystem', 'EXT', 'CTX'));
|
||||
$handler->handle($record);
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -20,7 +20,6 @@ use Monolog\Logger;
|
||||
*/
|
||||
class HipChatHandlerTest extends TestCase
|
||||
{
|
||||
|
||||
private $res;
|
||||
private $handler;
|
||||
|
||||
|
@@ -58,6 +58,8 @@ class MongoDBHandlerTest extends TestCase
|
||||
if (!class_exists('Mongo')) {
|
||||
class Mongo
|
||||
{
|
||||
public function selectCollection() {}
|
||||
public function selectCollection()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -22,7 +22,6 @@ use Monolog\Logger;
|
||||
*/
|
||||
class PushoverHandlerTest extends TestCase
|
||||
{
|
||||
|
||||
private $res;
|
||||
private $handler;
|
||||
|
||||
|
@@ -56,7 +56,7 @@ class SlackHandlerTest extends TestCase
|
||||
|
||||
$this->assertRegexp('/token=myToken&channel=channel1&username=Monolog&text=&attachments=.*$/', $content);
|
||||
}
|
||||
|
||||
|
||||
public function testWriteContentWithEmoji()
|
||||
{
|
||||
$this->createHandler('myToken', 'channel1', 'Monolog', true, 'alien');
|
||||
|
@@ -279,5 +279,4 @@ class SocketHandlerTest extends TestCase
|
||||
|
||||
$this->handler->setFormatter($this->getIdentityFormatter());
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -83,7 +83,7 @@ class StreamHandlerTest extends TestCase
|
||||
array(array('bogus://url')),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @dataProvider invalidArgumentProvider
|
||||
* @expectedException InvalidArgumentException
|
||||
@@ -93,7 +93,7 @@ class StreamHandlerTest extends TestCase
|
||||
{
|
||||
$handler = new StreamHandler($invalidArgument);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @expectedException UnexpectedValueException
|
||||
* @covers Monolog\Handler\StreamHandler::__construct
|
||||
|
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
namespace Monolog\Handler;
|
||||
|
||||
use Monolog\Logger;
|
||||
|
||||
class SyslogHandlerTest extends \PHPUnit_Framework_TestCase
|
||||
|
@@ -90,7 +90,8 @@ class WhatFailureGroupHandlerTest extends TestCase
|
||||
/**
|
||||
* @covers Monolog\Handler\WhatFailureGroupHandler::handle
|
||||
*/
|
||||
public function testHandleException() {
|
||||
public function testHandleException()
|
||||
{
|
||||
$test = new TestHandler();
|
||||
$exception = new ExceptionTestHandler();
|
||||
$handler = new WhatFailureGroupHandler(array($exception, $test, $exception));
|
||||
@@ -111,7 +112,8 @@ class ExceptionTestHandler extends TestHandler
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function handle(array $record) {
|
||||
public function handle(array $record)
|
||||
{
|
||||
parent::handle($record);
|
||||
|
||||
throw new \Exception("ExceptionTestHandler::handle");
|
||||
|
Reference in New Issue
Block a user