Merge "Add browser test for preview functionality to MediaWiki core"
[lhc/web/wiklou.git] / tests / phpunit / includes / debug / logger / monolog / CeeFormatterTest.php
1 <?php
2
3 namespace MediaWiki\Logger\Monolog;
4
5 /**
6 * @covers \MediaWiki\Logger\Monolog\CeeFormatter
7 */
8 class CeeFormatterTest extends \PHPUnit\Framework\TestCase {
9 public function testV1() {
10 $ls_formatter = new LogstashFormatter( 'app', 'system', null, 'ctx_', LogstashFormatter::V1 );
11 $cee_formatter = new CeeFormatter( 'app', 'system', null, 'ctx_', LogstashFormatter::V1 );
12 $record = [ 'extra' => [ 'url' => 1 ], 'context' => [ 'url' => 2 ] ];
13 $this->assertSame(
14 $cee_formatter->format( $record ),
15 "@cee: " . $ls_formatter->format( $record ) );
16 }
17 }