File: CeeFormatterTest.php

package info (click to toggle)
mediawiki 1%3A1.35.13-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 274,932 kB
  • sloc: php: 677,563; javascript: 572,709; sql: 11,565; python: 4,447; xml: 3,145; sh: 892; perl: 788; ruby: 496; pascal: 365; makefile: 128
file content (20 lines) | stat: -rw-r--r-- 587 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace MediaWiki\Logger\Monolog;

/**
 * Flay per https://phabricator.wikimedia.org/T218688.
 *
 * @group Broken
 * @covers \MediaWiki\Logger\Monolog\CeeFormatter
 */
class CeeFormatterTest extends \MediaWikiUnitTestCase {
	public function testV1() {
		$ls_formatter = new LogstashFormatter( 'app', 'system', '', 'ctx_' );
		$cee_formatter = new CeeFormatter( 'app', 'system', '', 'ctx_' );
		$record = [ 'extra' => [ 'url' => 1 ], 'context' => [ 'url' => 2 ] ];
		$this->assertSame(
			$cee_formatter->format( $record ),
			"@cee: " . $ls_formatter->format( $record ) );
	}
}