summaryrefslogtreecommitdiffstats
path: root/tests/Monolog/Formatter/FlowdockFormatterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Monolog/Formatter/FlowdockFormatterTest.php')
-rw-r--r--tests/Monolog/Formatter/FlowdockFormatterTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/Monolog/Formatter/FlowdockFormatterTest.php b/tests/Monolog/Formatter/FlowdockFormatterTest.php
index 1b2fd97..f922d53 100644
--- a/tests/Monolog/Formatter/FlowdockFormatterTest.php
+++ b/tests/Monolog/Formatter/FlowdockFormatterTest.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
/*
* This file is part of the Monolog package.
@@ -12,7 +12,7 @@
namespace Monolog\Formatter;
use Monolog\Logger;
-use Monolog\TestCase;
+use Monolog\Test\TestCase;
class FlowdockFormatterTest extends TestCase
{
@@ -24,14 +24,14 @@ class FlowdockFormatterTest extends TestCase
$formatter = new FlowdockFormatter('test_source', 'source@test.com');
$record = $this->getRecord();
- $expected = array(
+ $expected = [
'source' => 'test_source',
'from_address' => 'source@test.com',
'subject' => 'in test_source: WARNING - test',
'content' => 'test',
- 'tags' => array('#logs', '#warning', '#test'),
+ 'tags' => ['#logs', '#warning', '#test'],
'project' => 'test_source',
- );
+ ];
$formatted = $formatter->format($record);
$this->assertEquals($expected, $formatted['flowdock']);
@@ -43,10 +43,10 @@ class FlowdockFormatterTest extends TestCase
public function testFormatBatch()
{
$formatter = new FlowdockFormatter('test_source', 'source@test.com');
- $records = array(
+ $records = [
$this->getRecord(Logger::WARNING),
$this->getRecord(Logger::DEBUG),
- );
+ ];
$formatted = $formatter->formatBatch($records);
$this->assertArrayHasKey('flowdock', $formatted[0]);