Atsushi Takayama | aede975 | 2015-09-08 00:33:09 +0900 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * Licensed to the Apache Software Foundation (ASF) under one |
| 5 | * or more contributor license agreements. See the NOTICE file |
| 6 | * distributed with this work for additional information |
| 7 | * regarding copyright ownership. The ASF licenses this file |
| 8 | * to you under the Apache License, Version 2.0 (the |
| 9 | * "License"); you may not use this file except in compliance |
| 10 | * with the License. You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, |
| 15 | * software distributed under the License is distributed on an |
| 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 17 | * KIND, either express or implied. See the License for the |
| 18 | * specific language governing permissions and limitations |
| 19 | * under the License. |
| 20 | * |
| 21 | * @package thrift.test |
| 22 | */ |
| 23 | |
| 24 | namespace test\Thrift\Protocol; |
| 25 | |
| 26 | use Thrift\ClassLoader\ThriftClassLoader; |
| 27 | use Test\Thrift\Fixtures; |
| 28 | use Thrift\Transport\TMemoryBuffer; |
| 29 | use Thrift\Protocol\TSimpleJSONProtocol; |
| 30 | |
| 31 | define( 'BUFSIZ', 8192 ); //big enough to read biggest serialized Fixture arg. |
| 32 | |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame] | 33 | require_once __DIR__.'/../../../../vendor/autoload.php'; |
Atsushi Takayama | aede975 | 2015-09-08 00:33:09 +0900 | [diff] [blame] | 34 | |
| 35 | $loader = new ThriftClassLoader(); |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame] | 36 | $loader->registerDefinition('ThriftTest', __DIR__ . '/../packages'); |
Atsushi Takayama | aede975 | 2015-09-08 00:33:09 +0900 | [diff] [blame] | 37 | $loader->register(); |
| 38 | |
| 39 | /*** |
| 40 | * This test suite depends on running the compiler against the |
| 41 | * standard ThriftTest.thrift file: |
| 42 | * |
| 43 | * lib/php/test$ ../../../compiler/cpp/thrift --gen php -r \ |
| 44 | * --out ./packages ../../../test/ThriftTest.thrift |
| 45 | */ |
| 46 | |
| 47 | class TestTSimpleJSONProtocol extends \PHPUnit_Framework_TestCase |
| 48 | { |
| 49 | private $transport; |
| 50 | private $protocol; |
| 51 | |
| 52 | public static function setUpBeforeClass() |
| 53 | { |
| 54 | Fixtures::populateTestArgs(); |
| 55 | TestTSimpleJSONProtocol_Fixtures::populateTestArgsSimpleJSON(); |
| 56 | } |
| 57 | |
| 58 | public function setUp() |
| 59 | { |
| 60 | $this->transport = new TMemoryBuffer(); |
| 61 | $this->protocol = new TSimpleJSONProtocol($this->transport); |
| 62 | $this->transport->open(); |
| 63 | } |
| 64 | |
| 65 | /*** |
| 66 | * WRITE TESTS |
| 67 | */ |
| 68 | |
| 69 | public function testVoid_Write() |
| 70 | { |
| 71 | $args = new \ThriftTest\ThriftTest_testVoid_args(); |
| 72 | $args->write( $this->protocol ); |
| 73 | |
| 74 | $actual = $this->transport->read( BUFSIZ ); |
| 75 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testVoid']; |
| 76 | |
| 77 | $this->assertEquals( $expected, $actual ); |
| 78 | } |
| 79 | |
| 80 | public function testString1_Write() |
| 81 | { |
| 82 | $args = new \ThriftTest\ThriftTest_testString_args(); |
| 83 | $args->thing = Fixtures::$testArgs['testString1']; |
| 84 | $args->write( $this->protocol ); |
| 85 | |
| 86 | $actual = $this->transport->read( BUFSIZ ); |
| 87 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testString1']; |
| 88 | |
| 89 | #$this->assertEquals( $expected, $actual ); |
| 90 | } |
| 91 | |
| 92 | public function testString2_Write() |
| 93 | { |
| 94 | $args = new \ThriftTest\ThriftTest_testString_args(); |
| 95 | $args->thing = Fixtures::$testArgs['testString2']; |
| 96 | $args->write( $this->protocol ); |
| 97 | |
| 98 | $actual = $this->transport->read( BUFSIZ ); |
| 99 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testString2']; |
| 100 | |
| 101 | $this->assertEquals( $expected, $actual ); |
| 102 | } |
| 103 | |
| 104 | public function testDouble_Write() |
| 105 | { |
| 106 | $args = new \ThriftTest\ThriftTest_testDouble_args(); |
| 107 | $args->thing = Fixtures::$testArgs['testDouble']; |
| 108 | $args->write( $this->protocol ); |
| 109 | |
| 110 | $actual = $this->transport->read( BUFSIZ ); |
| 111 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testDouble']; |
| 112 | |
| 113 | $this->assertEquals( $expected, $actual ); |
| 114 | } |
| 115 | |
| 116 | public function testByte_Write() |
| 117 | { |
| 118 | $args = new \ThriftTest\ThriftTest_testByte_args(); |
| 119 | $args->thing = Fixtures::$testArgs['testByte']; |
| 120 | $args->write( $this->protocol ); |
| 121 | |
| 122 | $actual = $this->transport->read( BUFSIZ ); |
| 123 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testByte']; |
| 124 | |
| 125 | $this->assertEquals( $expected, $actual ); |
| 126 | } |
| 127 | |
| 128 | public function testI32_Write() |
| 129 | { |
| 130 | $args = new \ThriftTest\ThriftTest_testI32_args(); |
| 131 | $args->thing = Fixtures::$testArgs['testI32']; |
| 132 | $args->write( $this->protocol ); |
| 133 | |
| 134 | $actual = $this->transport->read( BUFSIZ ); |
| 135 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testI32']; |
| 136 | |
| 137 | $this->assertEquals( $expected, $actual ); |
| 138 | } |
| 139 | |
| 140 | public function testI64_Write() |
| 141 | { |
| 142 | $args = new \ThriftTest\ThriftTest_testI64_args(); |
| 143 | $args->thing = Fixtures::$testArgs['testI64']; |
| 144 | $args->write( $this->protocol ); |
| 145 | |
| 146 | $actual = $this->transport->read( BUFSIZ ); |
| 147 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testI64']; |
| 148 | |
| 149 | $this->assertEquals( $expected, $actual ); |
| 150 | } |
| 151 | |
| 152 | public function testStruct_Write() |
| 153 | { |
| 154 | $args = new \ThriftTest\ThriftTest_testStruct_args(); |
| 155 | $args->thing = Fixtures::$testArgs['testStruct']; |
| 156 | |
| 157 | $args->write( $this->protocol ); |
| 158 | |
| 159 | $actual = $this->transport->read( BUFSIZ ); |
| 160 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testStruct']; |
| 161 | |
| 162 | $this->assertEquals( $expected, $actual ); |
| 163 | } |
| 164 | |
| 165 | public function testNest_Write() |
| 166 | { |
| 167 | $args = new \ThriftTest\ThriftTest_testNest_args(); |
| 168 | $args->thing = Fixtures::$testArgs['testNest']; |
| 169 | |
| 170 | $args->write( $this->protocol ); |
| 171 | |
| 172 | $actual = $this->transport->read( BUFSIZ ); |
| 173 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testNest']; |
| 174 | |
| 175 | $this->assertEquals( $expected, $actual ); |
| 176 | } |
| 177 | |
| 178 | public function testMap_Write() |
| 179 | { |
| 180 | $args = new \ThriftTest\ThriftTest_testMap_args(); |
| 181 | $args->thing = Fixtures::$testArgs['testMap']; |
| 182 | |
| 183 | $args->write( $this->protocol ); |
| 184 | |
| 185 | $actual = $this->transport->read( BUFSIZ ); |
| 186 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testMap']; |
| 187 | |
| 188 | $this->assertEquals( $expected, $actual ); |
| 189 | } |
| 190 | |
| 191 | public function testStringMap_Write() |
| 192 | { |
| 193 | $args = new \ThriftTest\ThriftTest_testStringMap_args(); |
| 194 | $args->thing = Fixtures::$testArgs['testStringMap']; |
| 195 | |
| 196 | $args->write( $this->protocol ); |
| 197 | |
| 198 | $actual = $this->transport->read( BUFSIZ ); |
| 199 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testStringMap']; |
| 200 | |
| 201 | $this->assertEquals( $expected, $actual ); |
| 202 | } |
| 203 | |
| 204 | public function testSet_Write() |
| 205 | { |
| 206 | $args = new \ThriftTest\ThriftTest_testSet_args(); |
| 207 | $args->thing = Fixtures::$testArgs['testSet']; |
| 208 | |
| 209 | $args->write( $this->protocol ); |
| 210 | |
| 211 | $actual = $this->transport->read( BUFSIZ ); |
| 212 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testSet']; |
| 213 | |
| 214 | $this->assertEquals( $expected, $actual ); |
| 215 | } |
| 216 | |
| 217 | public function testList_Write() |
| 218 | { |
| 219 | $args = new \ThriftTest\ThriftTest_testList_args(); |
| 220 | $args->thing = Fixtures::$testArgs['testList']; |
| 221 | |
| 222 | $args->write( $this->protocol ); |
| 223 | |
| 224 | $actual = $this->transport->read( BUFSIZ ); |
| 225 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testList']; |
| 226 | |
| 227 | $this->assertEquals( $expected, $actual ); |
| 228 | } |
| 229 | |
| 230 | public function testEnum_Write() |
| 231 | { |
| 232 | $args = new \ThriftTest\ThriftTest_testEnum_args(); |
| 233 | $args->thing = Fixtures::$testArgs['testEnum']; |
| 234 | |
| 235 | $args->write( $this->protocol ); |
| 236 | |
| 237 | $actual = $this->transport->read( BUFSIZ ); |
| 238 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testEnum']; |
| 239 | |
| 240 | $this->assertEquals( $expected, $actual ); |
| 241 | } |
| 242 | |
| 243 | public function testTypedef_Write() |
| 244 | { |
| 245 | $args = new \ThriftTest\ThriftTest_testTypedef_args(); |
| 246 | $args->thing = Fixtures::$testArgs['testTypedef']; |
| 247 | |
| 248 | $args->write( $this->protocol ); |
| 249 | |
| 250 | $actual = $this->transport->read( BUFSIZ ); |
| 251 | $expected = TestTSimpleJSONProtocol_Fixtures::$testArgsJSON['testTypedef']; |
| 252 | |
| 253 | $this->assertEquals( $expected, $actual ); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | class TestTSimpleJSONProtocol_Fixtures |
| 258 | { |
| 259 | public static $testArgsJSON = array(); |
| 260 | |
| 261 | public static function populateTestArgsSimpleJSON() |
| 262 | { |
| 263 | self::$testArgsJSON['testVoid'] = '{}'; |
| 264 | |
| 265 | self::$testArgsJSON['testString1'] = '{"1":{"str":"Afrikaans, Alemannisch, Aragon\u00e9s, \u0627\u0644\u0639\u0631\u0628\u064a\u0629, \u0645\u0635\u0631\u0649, Asturianu, Aymar aru, Az\u0259rbaycan, \u0411\u0430\u0448\u04a1\u043e\u0440\u0442, Boarisch, \u017demait\u0117\u0161ka, \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f, \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f (\u0442\u0430\u0440\u0430\u0448\u043a\u0435\u0432\u0456\u0446\u0430), \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438, Bamanankan, \u09ac\u09be\u0982\u09b2\u09be, Brezhoneg, Bosanski, Catal\u00e0, M\u00ecng-d\u0115\u0324ng-ng\u1e73\u0304, \u041d\u043e\u0445\u0447\u0438\u0439\u043d, Cebuano, \u13e3\u13b3\u13a9, \u010cesky, \u0421\u043b\u043e\u0432\u0463\u0301\u043d\u044c\u0441\u043a\u044a \/ \u2c14\u2c0e\u2c11\u2c02\u2c21\u2c10\u2c20\u2c14\u2c0d\u2c1f, \u0427\u04d1\u0432\u0430\u0448\u043b\u0430, Cymraeg, Dansk, Zazaki, \u078b\u07a8\u0788\u07ac\u0780\u07a8\u0784\u07a6\u0790\u07b0, \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac, Emili\u00e0n e rumagn\u00f2l, English, Esperanto, Espa\u00f1ol, Eesti, Euskara, \u0641\u0627\u0631\u0633\u06cc, Suomi, V\u00f5ro, F\u00f8royskt, Fran\u00e7ais, Arpetan, Furlan, Frysk, Gaeilge, \u8d1b\u8a9e, G\u00e0idhlig, Galego, Ava\u00f1e\'\u1ebd, \u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0, Gaelg, \u05e2\u05d1\u05e8\u05d9\u05ea, \u0939\u093f\u0928\u094d\u0926\u0940, Fiji Hindi, Hrvatski, Krey\u00f2l ayisyen, Magyar, \u0540\u0561\u0575\u0565\u0580\u0565\u0576, Interlingua, Bahasa Indonesia, Ilokano, Ido, \u00cdslenska, Italiano, \u65e5\u672c\u8a9e, Lojban, Basa Jawa, \u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8, Kongo, Kalaallisut, \u0c95\u0ca8\u0ccd\u0ca8\u0ca1, \ud55c\uad6d\uc5b4, \u041a\u044a\u0430\u0440\u0430\u0447\u0430\u0439-\u041c\u0430\u043b\u043a\u044a\u0430\u0440, Ripoarisch, Kurd\u00ee, \u041a\u043e\u043c\u0438, Kernewek, \u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430, Latina, Ladino, L\u00ebtzebuergesch, Limburgs, Ling\u00e1la, \u0ea5\u0eb2\u0ea7, Lietuvi\u0173, Latvie\u0161u, Basa Banyumasan, Malagasy, \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438, \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02, \u092e\u0930\u093e\u0920\u0940, Bahasa Melayu, \u0645\u0627\u0632\u0650\u0631\u0648\u0646\u06cc, Nnapulitano, Nedersaksisch, \u0928\u0947\u092a\u093e\u0932 \u092d\u093e\u0937\u093e, Nederlands, \u202aNorsk (nynorsk)\u202c, \u202aNorsk (bokm\u00e5l)\u202c, Nouormand, Din\u00e9 bizaad, Occitan, \u0418\u0440\u043e\u043d\u0430\u0443, Papiamentu, Deitsch, Norfuk \/ Pitkern, Polski, \u067e\u0646\u062c\u0627\u0628\u06cc, \u067e\u069a\u062a\u0648, Portugu\u00eas, Runa Simi, Rumantsch, Romani, Rom\u00e2n\u0103, \u0420\u0443\u0441\u0441\u043a\u0438\u0439, \u0421\u0430\u0445\u0430 \u0442\u044b\u043b\u0430, Sardu, Sicilianu, Scots, S\u00e1megiella, Simple English, Sloven\u010dina, Sloven\u0161\u010dina, \u0421\u0440\u043f\u0441\u043a\u0438 \/ Srpski, Seeltersk, Svenska, Kiswahili, \u0ba4\u0bae\u0bbf\u0bb4\u0bcd, \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41, \u0422\u043e\u04b7\u0438\u043a\u04e3, \u0e44\u0e17\u0e22, T\u00fcrkmen\u00e7e, Tagalog, T\u00fcrk\u00e7e, \u0422\u0430\u0442\u0430\u0440\u0447\u0430\/Tatar\u00e7a, \u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430, \u0627\u0631\u062f\u0648, Ti\u1ebfng Vi\u1ec7t, Volap\u00fck, Walon, Winaray, \u5434\u8bed, isiXhosa, \u05d9\u05d9\u05b4\u05d3\u05d9\u05e9, Yor\u00f9b\u00e1, Ze\u00eauws, \u4e2d\u6587, B\u00e2n-l\u00e2m-g\u00fa, \u7cb5\u8a9e"}}'; |
| 266 | |
| 267 | self::$testArgsJSON['testString2'] = '{"thing":"quote: \\\\\" backslash: forwardslash-escaped: \\\\\/ backspace: \\\\b formfeed: \f newline: \n return: \r tab: now-all-of-them-together: \"\\\\\\\\\/\\\\b\n\r\t now-a-bunch-of-junk: !@#$%&()(&%$#{}{}<><><"}'; |
| 268 | |
| 269 | self::$testArgsJSON['testDouble'] = '{"thing":3.1415926535898}'; |
| 270 | |
| 271 | self::$testArgsJSON['testByte'] = '{"thing":1}'; |
| 272 | |
| 273 | self::$testArgsJSON['testI32'] = '{"thing":1073741824}'; |
| 274 | |
| 275 | if (PHP_INT_SIZE == 8) { |
| 276 | self::$testArgsJSON['testI64'] = '{"thing":'.pow( 2, 60 ).'}'; |
| 277 | self::$testArgsJSON['testStruct'] = '{"thing":{"string_thing":"worked","byte_thing":1,"i32_thing":1073741824,"i64_thing":'.pow( 2, 60 ).'}}'; |
| 278 | self::$testArgsJSON['testNest'] = '{"thing":{"byte_thing":1,"struct_thing":{"string_thing":"worked","byte_thing":1,"i32_thing":1073741824,"i64_thing":'.pow( 2, 60 ).'},"i32_thing":32768}}'; |
| 279 | } else { |
| 280 | self::$testArgsJSON['testI64'] = '{"thing":1152921504606847000}'; |
| 281 | |
| 282 | self::$testArgsJSON['testStruct'] = '{"thing":{"string_thing":"worked","byte_thing":1,"i32_thing":1073741824,"i64_thing":1152921504606847000}}'; |
| 283 | self::$testArgsJSON['testNest'] = '{"thing":{"byte_thing":1,"struct_thing":{"string_thing":"worked","byte_thing":1,"i32_thing":1073741824,"i64_thing":1152921504606847000},"i32_thing":32768}}'; |
| 284 | } |
| 285 | |
| 286 | self::$testArgsJSON['testMap'] = '{"thing":{"7":77,"8":88,"9":99}}'; |
| 287 | |
| 288 | self::$testArgsJSON['testStringMap'] = '{"thing":{"a":"123","a b":"with spaces ","same":"same","0":"numeric key","longValue":"Afrikaans, Alemannisch, Aragon\u00e9s, \u0627\u0644\u0639\u0631\u0628\u064a\u0629, \u0645\u0635\u0631\u0649, Asturianu, Aymar aru, Az\u0259rbaycan, \u0411\u0430\u0448\u04a1\u043e\u0440\u0442, Boarisch, \u017demait\u0117\u0161ka, \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f, \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f (\u0442\u0430\u0440\u0430\u0448\u043a\u0435\u0432\u0456\u0446\u0430), \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438, Bamanankan, \u09ac\u09be\u0982\u09b2\u09be, Brezhoneg, Bosanski, Catal\u00e0, M\u00ecng-d\u0115\u0324ng-ng\u1e73\u0304, \u041d\u043e\u0445\u0447\u0438\u0439\u043d, Cebuano, \u13e3\u13b3\u13a9, \u010cesky, \u0421\u043b\u043e\u0432\u0463\u0301\u043d\u044c\u0441\u043a\u044a \/ \u2c14\u2c0e\u2c11\u2c02\u2c21\u2c10\u2c20\u2c14\u2c0d\u2c1f, \u0427\u04d1\u0432\u0430\u0448\u043b\u0430, Cymraeg, Dansk, Zazaki, \u078b\u07a8\u0788\u07ac\u0780\u07a8\u0784\u07a6\u0790\u07b0, \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac, Emili\u00e0n e rumagn\u00f2l, English, Esperanto, Espa\u00f1ol, Eesti, Euskara, \u0641\u0627\u0631\u0633\u06cc, Suomi, V\u00f5ro, F\u00f8royskt, Fran\u00e7ais, Arpetan, Furlan, Frysk, Gaeilge, \u8d1b\u8a9e, G\u00e0idhlig, Galego, Ava\u00f1e\'\u1ebd, \u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0, Gaelg, \u05e2\u05d1\u05e8\u05d9\u05ea, \u0939\u093f\u0928\u094d\u0926\u0940, Fiji Hindi, Hrvatski, Krey\u00f2l ayisyen, Magyar, \u0540\u0561\u0575\u0565\u0580\u0565\u0576, Interlingua, Bahasa Indonesia, Ilokano, Ido, \u00cdslenska, Italiano, \u65e5\u672c\u8a9e, Lojban, Basa Jawa, \u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8, Kongo, Kalaallisut, \u0c95\u0ca8\u0ccd\u0ca8\u0ca1, \ud55c\uad6d\uc5b4, \u041a\u044a\u0430\u0440\u0430\u0447\u0430\u0439-\u041c\u0430\u043b\u043a\u044a\u0430\u0440, Ripoarisch, Kurd\u00ee, \u041a\u043e\u043c\u0438, Kernewek, \u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430, Latina, Ladino, L\u00ebtzebuergesch, Limburgs, Ling\u00e1la, \u0ea5\u0eb2\u0ea7, Lietuvi\u0173, Latvie\u0161u, Basa Banyumasan, Malagasy, \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438, \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02, \u092e\u0930\u093e\u0920\u0940, Bahasa Melayu, \u0645\u0627\u0632\u0650\u0631\u0648\u0646\u06cc, Nnapulitano, Nedersaksisch, \u0928\u0947\u092a\u093e\u0932 \u092d\u093e\u0937\u093e, Nederlands, \u202aNorsk (nynorsk)\u202c, \u202aNorsk (bokm\u00e5l)\u202c, Nouormand, Din\u00e9 bizaad, Occitan, \u0418\u0440\u043e\u043d\u0430\u0443, Papiamentu, Deitsch, Norfuk \/ Pitkern, Polski, \u067e\u0646\u062c\u0627\u0628\u06cc, \u067e\u069a\u062a\u0648, Portugu\u00eas, Runa Simi, Rumantsch, Romani, Rom\u00e2n\u0103, \u0420\u0443\u0441\u0441\u043a\u0438\u0439, \u0421\u0430\u0445\u0430 \u0442\u044b\u043b\u0430, Sardu, Sicilianu, Scots, S\u00e1megiella, Simple English, Sloven\u010dina, Sloven\u0161\u010dina, \u0421\u0440\u043f\u0441\u043a\u0438 \/ Srpski, Seeltersk, Svenska, Kiswahili, \u0ba4\u0bae\u0bbf\u0bb4\u0bcd, \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41, \u0422\u043e\u04b7\u0438\u043a\u04e3, \u0e44\u0e17\u0e22, T\u00fcrkmen\u00e7e, Tagalog, T\u00fcrk\u00e7e, \u0422\u0430\u0442\u0430\u0440\u0447\u0430\/Tatar\u00e7a, \u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430, \u0627\u0631\u062f\u0648, Ti\u1ebfng Vi\u1ec7t, Volap\u00fck, Walon, Winaray, \u5434\u8bed, isiXhosa, \u05d9\u05d9\u05b4\u05d3\u05d9\u05e9, Yor\u00f9b\u00e1, Ze\u00eauws, \u4e2d\u6587, B\u00e2n-l\u00e2m-g\u00fa, \u7cb5\u8a9e","Afrikaans, Alemannisch, Aragon\u00e9s, \u0627\u0644\u0639\u0631\u0628\u064a\u0629, \u0645\u0635\u0631\u0649, Asturianu, Aymar aru, Az\u0259rbaycan, \u0411\u0430\u0448\u04a1\u043e\u0440\u0442, Boarisch, \u017demait\u0117\u0161ka, \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f, \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f (\u0442\u0430\u0440\u0430\u0448\u043a\u0435\u0432\u0456\u0446\u0430), \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438, Bamanankan, \u09ac\u09be\u0982\u09b2\u09be, Brezhoneg, Bosanski, Catal\u00e0, M\u00ecng-d\u0115\u0324ng-ng\u1e73\u0304, \u041d\u043e\u0445\u0447\u0438\u0439\u043d, Cebuano, \u13e3\u13b3\u13a9, \u010cesky, \u0421\u043b\u043e\u0432\u0463\u0301\u043d\u044c\u0441\u043a\u044a \/ \u2c14\u2c0e\u2c11\u2c02\u2c21\u2c10\u2c20\u2c14\u2c0d\u2c1f, \u0427\u04d1\u0432\u0430\u0448\u043b\u0430, Cymraeg, Dansk, Zazaki, \u078b\u07a8\u0788\u07ac\u0780\u07a8\u0784\u07a6\u0790\u07b0, \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac, Emili\u00e0n e rumagn\u00f2l, English, Esperanto, Espa\u00f1ol, Eesti, Euskara, \u0641\u0627\u0631\u0633\u06cc, Suomi, V\u00f5ro, F\u00f8royskt, Fran\u00e7ais, Arpetan, Furlan, Frysk, Gaeilge, \u8d1b\u8a9e, G\u00e0idhlig, Galego, Ava\u00f1e\'\u1ebd, \u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0, Gaelg, \u05e2\u05d1\u05e8\u05d9\u05ea, \u0939\u093f\u0928\u094d\u0926\u0940, Fiji Hindi, Hrvatski, Krey\u00f2l ayisyen, Magyar, \u0540\u0561\u0575\u0565\u0580\u0565\u0576, Interlingua, Bahasa Indonesia, Ilokano, Ido, \u00cdslenska, Italiano, \u65e5\u672c\u8a9e, Lojban, Basa Jawa, \u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8, Kongo, Kalaallisut, \u0c95\u0ca8\u0ccd\u0ca8\u0ca1, \ud55c\uad6d\uc5b4, \u041a\u044a\u0430\u0440\u0430\u0447\u0430\u0439-\u041c\u0430\u043b\u043a\u044a\u0430\u0440, Ripoarisch, Kurd\u00ee, \u041a\u043e\u043c\u0438, Kernewek, \u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430, Latina, Ladino, L\u00ebtzebuergesch, Limburgs, Ling\u00e1la, \u0ea5\u0eb2\u0ea7, Lietuvi\u0173, Latvie\u0161u, Basa Banyumasan, Malagasy, \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438, \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02, \u092e\u0930\u093e\u0920\u0940, Bahasa Melayu, \u0645\u0627\u0632\u0650\u0631\u0648\u0646\u06cc, Nnapulitano, Nedersaksisch, \u0928\u0947\u092a\u093e\u0932 \u092d\u093e\u0937\u093e, Nederlands, \u202aNorsk (nynorsk)\u202c, \u202aNorsk (bokm\u00e5l)\u202c, Nouormand, Din\u00e9 bizaad, Occitan, \u0418\u0440\u043e\u043d\u0430\u0443, Papiamentu, Deitsch, Norfuk \/ Pitkern, Polski, \u067e\u0646\u062c\u0627\u0628\u06cc, \u067e\u069a\u062a\u0648, Portugu\u00eas, Runa Simi, Rumantsch, Romani, Rom\u00e2n\u0103, \u0420\u0443\u0441\u0441\u043a\u0438\u0439, \u0421\u0430\u0445\u0430 \u0442\u044b\u043b\u0430, Sardu, Sicilianu, Scots, S\u00e1megiella, Simple English, Sloven\u010dina, Sloven\u0161\u010dina, \u0421\u0440\u043f\u0441\u043a\u0438 \/ Srpski, Seeltersk, Svenska, Kiswahili, \u0ba4\u0bae\u0bbf\u0bb4\u0bcd, \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41, \u0422\u043e\u04b7\u0438\u043a\u04e3, \u0e44\u0e17\u0e22, T\u00fcrkmen\u00e7e, Tagalog, T\u00fcrk\u00e7e, \u0422\u0430\u0442\u0430\u0440\u0447\u0430\/Tatar\u00e7a, \u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430, \u0627\u0631\u062f\u0648, Ti\u1ebfng Vi\u1ec7t, Volap\u00fck, Walon, Winaray, \u5434\u8bed, isiXhosa, \u05d9\u05d9\u05b4\u05d3\u05d9\u05e9, Yor\u00f9b\u00e1, Ze\u00eauws, \u4e2d\u6587, B\u00e2n-l\u00e2m-g\u00fa, \u7cb5\u8a9e":"long key"}}'; |
| 289 | |
| 290 | self::$testArgsJSON['testSet'] = '{"thing":[1,5,6]}'; |
| 291 | |
| 292 | self::$testArgsJSON['testList'] = '{"thing":[1,2,3]}'; |
| 293 | |
| 294 | self::$testArgsJSON['testEnum'] = '{"thing":1}'; |
| 295 | |
| 296 | self::$testArgsJSON['testTypedef'] = '{"thing":69}'; |
| 297 | } |
| 298 | } |