|
|
@@ -22,9 +22,9 @@ class WildfireFormatterTest extends \PHPUnit_Framework_TestCase
|
|
|
public function testDefaultFormatIsLineFormatterWithoutNewLine($record)
|
|
|
{
|
|
|
$wildfire = new WildfireFormatter();
|
|
|
-
|
|
|
+
|
|
|
$record = $wildfire->format($record);
|
|
|
-
|
|
|
+
|
|
|
$this->assertEquals(
|
|
|
'70|[{"Type":"ERROR","File":"","Line":""},"meh: log extra(ip: 127.0.0.1)"]|',
|
|
|
$record['message']
|
|
|
@@ -34,13 +34,14 @@ class WildfireFormatterTest extends \PHPUnit_Framework_TestCase
|
|
|
public function recordProvider()
|
|
|
{
|
|
|
$record = array(
|
|
|
+ 'level' => Logger::ERROR,
|
|
|
'level_name' => 'ERROR',
|
|
|
'channel' => 'meh',
|
|
|
'datetime' => new \DateTime,
|
|
|
'extra' => array('ip' => '127.0.0.1'),
|
|
|
'message' => 'log',
|
|
|
);
|
|
|
-
|
|
|
+
|
|
|
return array(
|
|
|
array($record),
|
|
|
);
|