1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-11 15:44:34 +02:00
This commit is contained in:
Jordi Boggiano
2015-03-01 14:12:35 +00:00
parent 951f024bfb
commit 995a61bec8
9 changed files with 25 additions and 16 deletions

View File

@@ -24,7 +24,7 @@ class GelfHandlerLegacyTest extends TestCase
$this->markTestSkipped("mlehner/gelf-php not installed");
}
require_once __DIR__ . '/GelfMocks.php';
require_once __DIR__ . '/GelfMockMessagePublisher.php';
}
/**
@@ -45,7 +45,7 @@ class GelfHandlerLegacyTest extends TestCase
protected function getMessagePublisher()
{
return new MockMessagePublisher('localhost');
return new GelfMockMessagePublisher('localhost');
}
public function testDebug()

View File

@@ -14,7 +14,7 @@ namespace Monolog\Handler;
use Gelf\MessagePublisher;
use Gelf\Message;
class MockMessagePublisher extends MessagePublisher
class GelfMockMessagePublisher extends MessagePublisher
{
public function publish(Message $message)
{

View File

@@ -86,12 +86,12 @@ class RavenHandlerTest extends TestCase
}
public function testUserContext()
{
{
$ravenClient = $this->getRavenClient();
$handler = $this->getHandler($ravenClient);
$user = array(
'id' => '123',
'id' => '123',
'email' => 'test@test.com'
);
$record = $this->getRecord(Logger::INFO, "test", array('user' => $user));