Separate MediaWiki unit and integration tests
[lhc/web/wiklou.git] / tests / phpunit / unit / includes / debug / logger / monolog / CeeFormatterTest.php
1 <?php
2
3 namespace MediaWiki\Logger\Monolog;
4
5 /**
6 * Flay per https://phabricator.wikimedia.org/T218688.
7 *
8 * @group Broken
9 * @covers \MediaWiki\Logger\Monolog\CeeFormatter
10 */
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 ] ];
16 $this->assertSame(
17 $cee_formatter->format( $record ),
18 "@cee: " . $ls_formatter->format( $record ) );
19 }
20 }