1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +02:00

Merge branch '1.x'

This commit is contained in:
Jordi Boggiano
2016-12-16 08:47:02 +01:00
7 changed files with 201 additions and 104 deletions

View File

@@ -32,11 +32,10 @@ class SlackWebhookHandlerTest extends TestCase
public function testConstructorMinimal()
{
$handler = new SlackWebhookHandler(self::WEBHOOK_URL);
$record = $this->getRecord();
$slackRecord = $handler->getSlackRecord();
$this->assertInstanceOf('Monolog\Handler\Slack\SlackRecord', $slackRecord);
$this->assertEquals(array(
'username' => 'Monolog',
'text' => '',
'attachments' => array(
array(
'fallback' => 'test',
@@ -46,13 +45,15 @@ class SlackWebhookHandlerTest extends TestCase
array(
'title' => 'Level',
'value' => 'WARNING',
'short' => true,
'short' => false,
),
),
'title' => 'Message',
'mrkdwn_in' => array('fields'),
'ts' => $record['datetime']->getTimestamp(),
),
),
), $slackRecord->getSlackData($this->getRecord()));
), $slackRecord->getSlackData($record));
}
/**