From 8cfc44d67ff23386ce158e78c6f6c0879391a1b7 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 28 Oct 2013 22:26:28 +0000 Subject: [PATCH] Untested unit tests for AndroidXmlFFS string-array --- tests/phpunit/ffs/AndroidXmlFFSTest.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/ffs/AndroidXmlFFSTest.php b/tests/phpunit/ffs/AndroidXmlFFSTest.php index 65c7a4e..c08b762 100644 --- a/tests/phpunit/ffs/AndroidXmlFFSTest.php +++ b/tests/phpunit/ffs/AndroidXmlFFSTest.php @@ -29,7 +29,12 @@ class AndroidXmlFFSTest extends MediaWikiTestCase { Voice recording - Picture + Picture + + One + Two + Three + XML; @@ -42,6 +47,9 @@ XML; $expected = array( 'wpt_voicerec' => 'Voice recording', 'wpt_stillimage' => '!!FUZZY!!Picture', + 'ASA_numbers_0' => 'One', + 'ASA_numbers_1' -> 'Two', + 'ASA_numbers_2' -> 'Three' ); $expected = array( 'MESSAGES' => $expected, 'AUTHORS' => array() ); $this->assertEquals( $expected, $parsed ); @@ -57,6 +65,9 @@ XML; $messages = array( 'ko=26ra' => 'wawe', 'foobar' => '!!FUZZY!!Kissa kala "a\'b', + 'ASA_numbers_0' => 'One', + 'ASA_numbers_1' -> 'Two', + 'ASA_numbers_2' -> 'Three' ); $collection = new MockMessageCollection( $messages ); -- 1.8.1.2