private function DecoderTest::strings in Smart IP 7.2
Same name and namespace in other branches
- 6.2 includes/vendor/maxmind-db/reader/tests/MaxMind/Db/Test/Reader/DecoderTest.php \MaxMind\Db\Test\Reader\DecoderTest::strings()
2 calls to DecoderTest::strings()
- DecoderTest::bytes in includes/
vendor/ maxmind-db/ reader/ tests/ MaxMind/ Db/ Test/ Reader/ DecoderTest.php - DecoderTest::testStrings in includes/
vendor/ maxmind-db/ reader/ tests/ MaxMind/ Db/ Test/ Reader/ DecoderTest.php
File
- includes/
vendor/ maxmind-db/ reader/ tests/ MaxMind/ Db/ Test/ Reader/ DecoderTest.php, line 170
Class
Namespace
MaxMind\Db\Test\ReaderCode
private function strings() {
$strings = array(
'' => array(
0x40,
),
1 => array(
0x41,
0x31,
),
'人' => array(
0x43,
0xe4,
0xba,
0xba,
),
'123' => array(
0x43,
0x31,
0x32,
0x33,
),
'123456789012345678901234567' => array(
0x5b,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
),
'1234567890123456789012345678' => array(
0x5c,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
),
'12345678901234567890123456789' => array(
0x5d,
0x0,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
),
'123456789012345678901234567890' => array(
0x5d,
0x1,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
0x31,
0x32,
0x33,
0x34,
0x35,
0x36,
0x37,
0x38,
0x39,
0x30,
),
);
$strings[str_repeat('x', 500)] = array_pad(array(
0x5e,
0x0,
0xd7,
), 503, 0x78);
$strings[str_repeat('x', 2000)] = array_pad(array(
0x5e,
0x6,
0xb3,
), 2003, 0x78);
$strings[str_repeat('x', 70000)] = array_pad(array(
0x5f,
0x0,
0x10,
0x53,
), 70004, 0x78);
return $strings;
}