(bug 24620) Add types and test for LogFormatter
authorjan <jan@jans-seite.de>
Mon, 22 Oct 2012 09:00:15 +0000 (11:00 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 12 Dec 2012 01:00:03 +0000 (01:00 +0000)
commit8b5bfd8b88e4c2fa58db00b250964878fb2828b2
treec4a9900d6c65feff4b2f6d85ff4357e3e58d541f
parent4b8d72ab1810fe70543df1380a33da59050747c1
(bug 24620) Add types and test for LogFormatter

This change adds types to LogFormatter like "msg" so log values
(parameters for the log message) can be formated as e.g. a message in
user or content language.

This change adds tests for LogFormatter, too. Tested are the normal log
params, the log params with type and the output of the comment.

This change repairs the changes I6a56c204 and I7218a173

Change-Id: Ief3665056b3bb613ff709821306017ee7967c444
RELEASE-NOTES-1.21
includes/logging/LogFormatter.php
tests/phpunit/includes/logging/LogFormatterTest.php [new file with mode: 0755]
tests/phpunit/includes/logging/LogTests.i18n.php [new file with mode: 0755]