3 namespace MediaWiki\Logger\Monolog
;
6 * Flay per https://phabricator.wikimedia.org/T218688.
9 * @covers \MediaWiki\Logger\Monolog\CeeFormatter
11 class CeeFormatterTest
extends \PHPUnit\Framework\TestCase
{
12 public function testV1() {
13 $ls_formatter = new LogstashFormatter( 'app', 'system', null, 'ctx_', LogstashFormatter
::V1
);
14 $cee_formatter = new CeeFormatter( 'app', 'system', null, 'ctx_', LogstashFormatter
::V1
);
15 $record = [ 'extra' => [ 'url' => 1 ], 'context' => [ 'url' => 2 ] ];
17 $cee_formatter->format( $record ),
18 "@cee: " . $ls_formatter->format( $record ) );