1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-12 08:04:02 +02:00
This commit is contained in:
Jordi Boggiano
2014-10-17 19:12:45 +01:00
parent 940cbe15ab
commit b738a6c04c
23 changed files with 14 additions and 31 deletions

View File

@@ -64,7 +64,6 @@ EOF;
$this->assertEquals($expected, $this->generateScript());
}
public function testAutolabel()
{
$handler = new BrowserConsoleHandler();

View File

@@ -22,7 +22,6 @@ function error_log()
class ErrorLogHandlerTest extends TestCase
{
protected function setUp()
{
$GLOBALS['error_log'] = array();

View File

@@ -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());
}
}

View File

@@ -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);
}
}

View File

@@ -20,7 +20,6 @@ use Monolog\Logger;
*/
class HipChatHandlerTest extends TestCase
{
private $res;
private $handler;

View File

@@ -58,6 +58,8 @@ class MongoDBHandlerTest extends TestCase
if (!class_exists('Mongo')) {
class Mongo
{
public function selectCollection() {}
public function selectCollection()
{
}
}
}

View File

@@ -22,7 +22,6 @@ use Monolog\Logger;
*/
class PushoverHandlerTest extends TestCase
{
private $res;
private $handler;

View File

@@ -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');

View File

@@ -279,5 +279,4 @@ class SocketHandlerTest extends TestCase
$this->handler->setFormatter($this->getIdentityFormatter());
}
}

View File

@@ -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

View File

@@ -10,6 +10,7 @@
*/
namespace Monolog\Handler;
use Monolog\Logger;
class SyslogHandlerTest extends \PHPUnit_Framework_TestCase

View File

@@ -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");