private property DecoderTest::$maps in Smart IP 6.2
Same name and namespace in other branches
- 7.2 includes/vendor/maxmind-db/reader/tests/MaxMind/Db/Test/Reader/DecoderTest.php \MaxMind\Db\Test\Reader\DecoderTest::maps
File
- includes/
vendor/ maxmind-db/ reader/ tests/ MaxMind/ Db/ Test/ Reader/ DecoderTest.php, line 68
Class
Namespace
MaxMind\Db\Test\ReaderCode
private $maps = array(
array(
'expected' => array(),
'input' => array(
0xe0,
),
'name' => 'empty',
),
array(
'expected' => array(
'en' => 'Foo',
),
'input' => array(
0xe1,
/* en */
0x42,
0x65,
0x6e,
/* Foo */
0x43,
0x46,
0x6f,
0x6f,
),
'name' => 'one key',
),
array(
'expected' => array(
'en' => 'Foo',
'zh' => '人',
),
'input' => array(
0xe2,
/* en */
0x42,
0x65,
0x6e,
/* Foo */
0x43,
0x46,
0x6f,
0x6f,
/* zh */
0x42,
0x7a,
0x68,
/* 人 */
0x43,
0xe4,
0xba,
0xba,
),
'name' => 'two keys',
),
array(
'expected' => array(
'name' => array(
'en' => 'Foo',
'zh' => '人',
),
),
'input' => array(
0xe1,
/* name */
0x44,
0x6e,
0x61,
0x6d,
0x65,
0xe2,
/* en */
0x42,
0x65,
0x6e,
/* Foo */
0x43,
0x46,
0x6f,
0x6f,
/* zh */
0x42,
0x7a,
0x68,
/* 人 */
0x43,
0xe4,
0xba,
0xba,
),
'name' => 'nested',
),
array(
'expected' => array(
'languages' => array(
'en',
'zh',
),
),
'input' => array(
0xe1,
/* languages */
0x49,
0x6c,
0x61,
0x6e,
0x67,
0x75,
0x61,
0x67,
0x65,
0x73,
/* array */
0x2,
0x4,
/* en */
0x42,
0x65,
0x6e,
/* zh */
0x42,
0x7a,
0x68,
),
'name' => 'map with array in it',
),
);