1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-01 19:00:20 +02:00

Refactor GelfMessageFormatterTest and GelfHandlerTest so that they don't

fatal error when mlehner/gelf-php is not installed.

Fixes GH-78.
This commit is contained in:
Marc Abramowitz
2012-04-26 15:35:43 -07:00
parent abc80e0db8
commit fd4d2556f6
3 changed files with 37 additions and 12 deletions

View File

@@ -12,9 +12,17 @@
namespace Monolog\Formatter;
use Monolog\Logger;
use Monolog\Formatter\GelfMessageFormatter;
class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
if (!class_exists("Gelf\Message")) {
$this->markTestSkipped("mlehner/gelf-php not installed");
}
}
/**
* @covers Monolog\Formatter\GelfMessageFormatter::format
*/