mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 20:27:31 +02:00
code cleanups as suggested by @stof
This commit is contained in:
@@ -18,7 +18,7 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers Monolog\Formatter\GelfMessageFormatter::format
|
* @covers Monolog\Formatter\GelfMessageFormatter::format
|
||||||
*/
|
*/
|
||||||
function testDefaultFormatter()
|
public function testDefaultFormatter()
|
||||||
{
|
{
|
||||||
$formatter = new GelfMessageFormatter();
|
$formatter = new GelfMessageFormatter();
|
||||||
$record = array(
|
$record = array(
|
||||||
@@ -53,7 +53,7 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers Monolog\Formatter\GelfMessageFormatter::format
|
* @covers Monolog\Formatter\GelfMessageFormatter::format
|
||||||
*/
|
*/
|
||||||
function testFormatWithFileAndLine()
|
public function testFormatWithFileAndLine()
|
||||||
{
|
{
|
||||||
$formatter = new GelfMessageFormatter();
|
$formatter = new GelfMessageFormatter();
|
||||||
$record = array(
|
$record = array(
|
||||||
@@ -76,7 +76,7 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers Monolog\Formatter\GelfMessageFormatter::format
|
* @covers Monolog\Formatter\GelfMessageFormatter::format
|
||||||
*/
|
*/
|
||||||
function testFormatWithContext()
|
public function testFormatWithContext()
|
||||||
{
|
{
|
||||||
$formatter = new GelfMessageFormatter();
|
$formatter = new GelfMessageFormatter();
|
||||||
$record = array(
|
$record = array(
|
||||||
@@ -114,7 +114,7 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers Monolog\Formatter\GelfMessageFormatter::format
|
* @covers Monolog\Formatter\GelfMessageFormatter::format
|
||||||
*/
|
*/
|
||||||
function testFormatWithExtra()
|
public function testFormatWithExtra()
|
||||||
{
|
{
|
||||||
$formatter = new GelfMessageFormatter();
|
$formatter = new GelfMessageFormatter();
|
||||||
$record = array(
|
$record = array(
|
||||||
|
@@ -30,9 +30,8 @@ class GelfHandlerTest extends TestCase
|
|||||||
{
|
{
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
if (!class_exists("Gelf\MessagePublisher"))
|
if (!class_exists("Gelf\MessagePublisher")) {
|
||||||
{
|
$this->markTestSkipped("mlehner/gelf-php not installed");
|
||||||
$this->markTestSkipped("https://github.com/mlehner/gelf-php not installed");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -9,5 +9,5 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once __DIR__ . "/../vendor/.composer/autoload.php";
|
require_once __DIR__ . "/../vendor/autoload.php";
|
||||||
require_once __DIR__.'/Monolog/TestCase.php';
|
require_once __DIR__.'/Monolog/TestCase.php';
|
||||||
|
Reference in New Issue
Block a user