chillerlan-QRCodeTest-Data-HanziTest.html 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  111. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  112. </ul>
  113. <article class="phpdocumentor-element -class">
  114. <h2 class="phpdocumentor-content__title">
  115. HanziTest
  116. <span class="phpdocumentor-element__extends">
  117. extends <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Data\DataInterfaceTestAbstract">DataInterfaceTestAbstract</abbr></a>
  118. </span>
  119. <div class="phpdocumentor-element__package">
  120. in package
  121. <ul class="phpdocumentor-breadcrumbs">
  122. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  123. </ul>
  124. </div>
  125. </h2>
  126. <div class="phpdocumentor-label-line">
  127. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  128. </div>
  129. <aside class="phpdocumentor-element-found-in">
  130. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/HanziTest.php"><a href="files/tests-data-hanzitest.html"><abbr title="tests/Data/HanziTest.php">HanziTest.php</abbr></a></abbr>
  131. :
  132. <span class="phpdocumentor-element-found-in__line">24</span>
  133. </aside>
  134. <p class="phpdocumentor-summary">Tests the Hanzi/GB2312 class</p>
  135. <h3 id="toc">
  136. Table of Contents
  137. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  138. </h3>
  139. <h4 id="toc-constants">
  140. Constants
  141. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  142. </h4>
  143. <dl class="phpdocumentor-table-of-contents">
  144. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  145. <a class="" href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#constant_MAX_LENGTH">MAX_LENGTH</a>
  146. <span>
  147. &nbsp;= [
  148. // v =&gt; [NUMERIC =&gt; [L, M, Q, H ], ALPHANUM =&gt; [L, M, Q, H], BINARY =&gt; [L, M, Q, H ], KANJI =&gt; [L, M, Q, H ]]
  149. 1 =&gt; [[41, 34, 27, 17], [25, 20, 16, 10], [17, 14, 11, 7], [10, 8, 7, 4]],
  150. 2 =&gt; [[77, 63, 48, 34], [47, 38, 29, 20], [32, 26, 20, 14], [20, 16, 12, 8]],
  151. 3 =&gt; [[127, 101, 77, 58], [77, 61, 47, 35], [53, 42, 32, 24], [32, 26, 20, 15]],
  152. 4 =&gt; [[187, 149, 111, 82], [114, 90, 67, 50], [78, 62, 46, 34], [48, 38, 28, 21]],
  153. 5 =&gt; [[255, 202, 144, 106], [154, 122, 87, 64], [106, 84, 60, 44], [65, 52, 37, 27]],
  154. 6 =&gt; [[322, 255, 178, 139], [195, 154, 108, 84], [134, 106, 74, 58], [82, 65, 45, 36]],
  155. 7 =&gt; [[370, 293, 207, 154], [224, 178, 125, 93], [154, 122, 86, 64], [95, 75, 53, 39]],
  156. 8 =&gt; [[461, 365, 259, 202], [279, 221, 157, 122], [192, 152, 108, 84], [118, 93, 66, 52]],
  157. 9 =&gt; [[552, 432, 312, 235], [335, 262, 189, 143], [230, 180, 130, 98], [141, 111, 80, 60]],
  158. 10 =&gt; [[652, 513, 364, 288], [395, 311, 221, 174], [271, 213, 151, 119], [167, 131, 93, 74]],
  159. 11 =&gt; [[772, 604, 427, 331], [468, 366, 259, 200], [321, 251, 177, 137], [198, 155, 109, 85]],
  160. 12 =&gt; [[883, 691, 489, 374], [535, 419, 296, 227], [367, 287, 203, 155], [226, 177, 125, 96]],
  161. 13 =&gt; [[1022, 796, 580, 427], [619, 483, 352, 259], [425, 331, 241, 177], [262, 204, 149, 109]],
  162. 14 =&gt; [[1101, 871, 621, 468], [667, 528, 376, 283], [458, 362, 258, 194], [282, 223, 159, 120]],
  163. 15 =&gt; [[1250, 991, 703, 530], [758, 600, 426, 321], [520, 412, 292, 220], [320, 254, 180, 136]],
  164. 16 =&gt; [[1408, 1082, 775, 602], [854, 656, 470, 365], [586, 450, 322, 250], [361, 277, 198, 154]],
  165. 17 =&gt; [[1548, 1212, 876, 674], [938, 734, 531, 408], [644, 504, 364, 280], [397, 310, 224, 173]],
  166. 18 =&gt; [[1725, 1346, 948, 746], [1046, 816, 574, 452], [718, 560, 394, 310], [442, 345, 243, 191]],
  167. 19 =&gt; [[1903, 1500, 1063, 813], [1153, 909, 644, 493], [792, 624, 442, 338], [488, 384, 272, 208]],
  168. 20 =&gt; [[2061, 1600, 1159, 919], [1249, 970, 702, 557], [858, 666, 482, 382], [528, 410, 297, 235]],
  169. 21 =&gt; [[2232, 1708, 1224, 969], [1352, 1035, 742, 587], [929, 711, 509, 403], [572, 438, 314, 248]],
  170. 22 =&gt; [[2409, 1872, 1358, 1056], [1460, 1134, 823, 640], [1003, 779, 565, 439], [618, 480, 348, 270]],
  171. 23 =&gt; [[2620, 2059, 1468, 1108], [1588, 1248, 890, 672], [1091, 857, 611, 461], [672, 528, 376, 284]],
  172. 24 =&gt; [[2812, 2188, 1588, 1228], [1704, 1326, 963, 744], [1171, 911, 661, 511], [721, 561, 407, 315]],
  173. 25 =&gt; [[3057, 2395, 1718, 1286], [1853, 1451, 1041, 779], [1273, 997, 715, 535], [784, 614, 440, 330]],
  174. 26 =&gt; [[3283, 2544, 1804, 1425], [1990, 1542, 1094, 864], [1367, 1059, 751, 593], [842, 652, 462, 365]],
  175. 27 =&gt; [[3517, 2701, 1933, 1501], [2132, 1637, 1172, 910], [1465, 1125, 805, 625], [902, 692, 496, 385]],
  176. 28 =&gt; [[3669, 2857, 2085, 1581], [2223, 1732, 1263, 958], [1528, 1190, 868, 658], [940, 732, 534, 405]],
  177. 29 =&gt; [[3909, 3035, 2181, 1677], [2369, 1839, 1322, 1016], [1628, 1264, 908, 698], [1002, 778, 559, 430]],
  178. 30 =&gt; [[4158, 3289, 2358, 1782], [2520, 1994, 1429, 1080], [1732, 1370, 982, 742], [1066, 843, 604, 457]],
  179. 31 =&gt; [[4417, 3486, 2473, 1897], [2677, 2113, 1499, 1150], [1840, 1452, 1030, 790], [1132, 894, 634, 486]],
  180. 32 =&gt; [[4686, 3693, 2670, 2022], [2840, 2238, 1618, 1226], [1952, 1538, 1112, 842], [1201, 947, 684, 518]],
  181. 33 =&gt; [[4965, 3909, 2805, 2157], [3009, 2369, 1700, 1307], [2068, 1628, 1168, 898], [1273, 1002, 719, 553]],
  182. 34 =&gt; [[5253, 4134, 2949, 2301], [3183, 2506, 1787, 1394], [2188, 1722, 1228, 958], [1347, 1060, 756, 590]],
  183. 35 =&gt; [[5529, 4343, 3081, 2361], [3351, 2632, 1867, 1431], [2303, 1809, 1283, 983], [1417, 1113, 790, 605]],
  184. 36 =&gt; [[5836, 4588, 3244, 2524], [3537, 2780, 1966, 1530], [2431, 1911, 1351, 1051], [1496, 1176, 832, 647]],
  185. 37 =&gt; [[6153, 4775, 3417, 2625], [3729, 2894, 2071, 1591], [2563, 1989, 1423, 1093], [1577, 1224, 876, 673]],
  186. 38 =&gt; [[6479, 5039, 3599, 2735], [3927, 3054, 2181, 1658], [2699, 2099, 1499, 1139], [1661, 1292, 923, 701]],
  187. 39 =&gt; [[6743, 5313, 3791, 2927], [4087, 3220, 2298, 1774], [2809, 2213, 1579, 1219], [1729, 1362, 972, 750]],
  188. 40 =&gt; [[7089, 5596, 3993, 3057], [4296, 3391, 2420, 1852], [2953, 2331, 1663, 1273], [1817, 1435, 1024, 784]],
  189. ] </span>
  190. </dt>
  191. <dd>ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</dd>
  192. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  193. <a class="" href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#constant_testData">testData</a>
  194. <span>
  195. &nbsp;= &#039;无可奈何燃花作香&#039; </span>
  196. </dt>
  197. </dl>
  198. <h4 id="toc-properties">
  199. Properties
  200. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  201. </h4>
  202. <dl class="phpdocumentor-table-of-contents">
  203. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  204. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode">$dataMode</a>
  205. <span>
  206. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  207. </dt>
  208. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  209. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData">$QRData</a>
  210. <span>
  211. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a> </span>
  212. </dt>
  213. </dl>
  214. <h4 id="toc-methods">
  215. Methods
  216. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  217. </h4>
  218. <dl class="phpdocumentor-table-of-contents">
  219. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  220. <a class="" href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  221. <span>
  222. &nbsp;: int </span>
  223. </dt>
  224. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  225. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  226. <a class="" href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_hanziProvider">hanziProvider()</a>
  227. <span>
  228. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  229. </dt>
  230. <dd>lists all characters in the valid GB2312 range</dd>
  231. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  232. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a>
  233. <span>
  234. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  235. </dt>
  236. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  237. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a>
  238. <span>
  239. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  240. </dt>
  241. <dd>Generates test data for each data mode:</dd>
  242. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  243. <a class="" href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_stringValidateProvider">stringValidateProvider()</a>
  244. <span>
  245. &nbsp;: array&lt;string|int, mixed&gt; </span>
  246. </dt>
  247. <dd>isGB2312() should pass on Hanzi/GB2312 characters and fail on everything else</dd>
  248. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  249. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid">testBinaryStringInvalid()</a>
  250. <span>
  251. &nbsp;: void </span>
  252. </dt>
  253. <dd>Tests if a random binary string is properly validated as false</dd>
  254. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  255. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment">testDecodeSegment()</a>
  256. <span>
  257. &nbsp;: void </span>
  258. </dt>
  259. <dd>Tests decoding a data segment from a given BitBuffer</dd>
  260. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  261. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a>
  262. <span>
  263. &nbsp;: void </span>
  264. </dt>
  265. <dd>Tests getting the minimum QR version for the given data</dd>
  266. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  267. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a>
  268. <span>
  269. &nbsp;: void </span>
  270. </dt>
  271. <dd>Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</dd>
  272. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  273. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a>
  274. <span>
  275. &nbsp;: void </span>
  276. </dt>
  277. <dd>Tests initializing the data matrix</dd>
  278. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  279. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException">testInvalidDataException()</a>
  280. <span>
  281. &nbsp;: void </span>
  282. </dt>
  283. <dd>Tests if an exception is thrown when an invalid character is encountered</dd>
  284. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  285. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a>
  286. <span>
  287. &nbsp;: void </span>
  288. </dt>
  289. <dd>Tests if an exception is thrown if the given string is empty</dd>
  290. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  291. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength">testMaxLength()</a>
  292. <span>
  293. &nbsp;: void </span>
  294. </dt>
  295. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  296. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException">testMaxLengthOverflowException()</a>
  297. <span>
  298. &nbsp;: void </span>
  299. </dt>
  300. <dd>Tests if an exception is thrown on data overflow</dd>
  301. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  302. <a class="" href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_testValidateGB2312">testValidateGB2312()</a>
  303. <span>
  304. &nbsp;: void </span>
  305. </dt>
  306. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  307. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString">testValidateString()</a>
  308. <span>
  309. &nbsp;: void </span>
  310. </dt>
  311. <dd>Tests if a string is properly validated for the respective data mode</dd>
  312. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  313. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a>
  314. <span>
  315. &nbsp;: array&lt;string|int, mixed&gt; </span>
  316. </dt>
  317. <dd>returns versions within the version breakpoints 1-9, 10-26 and 27-40</dd>
  318. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  319. <a class="" href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_getDataModeInterface">getDataModeInterface()</a>
  320. <span>
  321. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  322. </dt>
  323. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  324. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a>
  325. <span>
  326. &nbsp;: void </span>
  327. </dt>
  328. </dl>
  329. <section class="phpdocumentor-constants">
  330. <h3 class="phpdocumentor-elements__header" id="constants">
  331. Constants
  332. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  333. </h3>
  334. <article class="phpdocumentor-element -constant -protected ">
  335. <h4 class="phpdocumentor-element__name" id="constant_MAX_LENGTH">
  336. MAX_LENGTH
  337. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#constant_MAX_LENGTH" class="headerlink"><i class="fas fa-link"></i></a>
  338. </h4>
  339. <aside class="phpdocumentor-element-found-in">
  340. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRMaxLengthTrait.php"><a href="files/tests-qrmaxlengthtrait.html"><abbr title="tests/QRMaxLengthTrait.php">QRMaxLengthTrait.php</abbr></a></abbr>
  341. :
  342. <span class="phpdocumentor-element-found-in__line">29</span>
  343. </aside>
  344. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</p>
  345. <code class="phpdocumentor-signature phpdocumentor-code ">
  346. <span class="phpdocumentor-signature__visibility">protected</span>
  347. <span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt;</span>
  348. <span class="phpdocumentor-signature__name">MAX_LENGTH</span>
  349. = <span class="phpdocumentor-signature__default-value">[
  350. // v =&gt; [NUMERIC =&gt; [L, M, Q, H ], ALPHANUM =&gt; [L, M, Q, H], BINARY =&gt; [L, M, Q, H ], KANJI =&gt; [L, M, Q, H ]]
  351. 1 =&gt; [[41, 34, 27, 17], [25, 20, 16, 10], [17, 14, 11, 7], [10, 8, 7, 4]],
  352. 2 =&gt; [[77, 63, 48, 34], [47, 38, 29, 20], [32, 26, 20, 14], [20, 16, 12, 8]],
  353. 3 =&gt; [[127, 101, 77, 58], [77, 61, 47, 35], [53, 42, 32, 24], [32, 26, 20, 15]],
  354. 4 =&gt; [[187, 149, 111, 82], [114, 90, 67, 50], [78, 62, 46, 34], [48, 38, 28, 21]],
  355. 5 =&gt; [[255, 202, 144, 106], [154, 122, 87, 64], [106, 84, 60, 44], [65, 52, 37, 27]],
  356. 6 =&gt; [[322, 255, 178, 139], [195, 154, 108, 84], [134, 106, 74, 58], [82, 65, 45, 36]],
  357. 7 =&gt; [[370, 293, 207, 154], [224, 178, 125, 93], [154, 122, 86, 64], [95, 75, 53, 39]],
  358. 8 =&gt; [[461, 365, 259, 202], [279, 221, 157, 122], [192, 152, 108, 84], [118, 93, 66, 52]],
  359. 9 =&gt; [[552, 432, 312, 235], [335, 262, 189, 143], [230, 180, 130, 98], [141, 111, 80, 60]],
  360. 10 =&gt; [[652, 513, 364, 288], [395, 311, 221, 174], [271, 213, 151, 119], [167, 131, 93, 74]],
  361. 11 =&gt; [[772, 604, 427, 331], [468, 366, 259, 200], [321, 251, 177, 137], [198, 155, 109, 85]],
  362. 12 =&gt; [[883, 691, 489, 374], [535, 419, 296, 227], [367, 287, 203, 155], [226, 177, 125, 96]],
  363. 13 =&gt; [[1022, 796, 580, 427], [619, 483, 352, 259], [425, 331, 241, 177], [262, 204, 149, 109]],
  364. 14 =&gt; [[1101, 871, 621, 468], [667, 528, 376, 283], [458, 362, 258, 194], [282, 223, 159, 120]],
  365. 15 =&gt; [[1250, 991, 703, 530], [758, 600, 426, 321], [520, 412, 292, 220], [320, 254, 180, 136]],
  366. 16 =&gt; [[1408, 1082, 775, 602], [854, 656, 470, 365], [586, 450, 322, 250], [361, 277, 198, 154]],
  367. 17 =&gt; [[1548, 1212, 876, 674], [938, 734, 531, 408], [644, 504, 364, 280], [397, 310, 224, 173]],
  368. 18 =&gt; [[1725, 1346, 948, 746], [1046, 816, 574, 452], [718, 560, 394, 310], [442, 345, 243, 191]],
  369. 19 =&gt; [[1903, 1500, 1063, 813], [1153, 909, 644, 493], [792, 624, 442, 338], [488, 384, 272, 208]],
  370. 20 =&gt; [[2061, 1600, 1159, 919], [1249, 970, 702, 557], [858, 666, 482, 382], [528, 410, 297, 235]],
  371. 21 =&gt; [[2232, 1708, 1224, 969], [1352, 1035, 742, 587], [929, 711, 509, 403], [572, 438, 314, 248]],
  372. 22 =&gt; [[2409, 1872, 1358, 1056], [1460, 1134, 823, 640], [1003, 779, 565, 439], [618, 480, 348, 270]],
  373. 23 =&gt; [[2620, 2059, 1468, 1108], [1588, 1248, 890, 672], [1091, 857, 611, 461], [672, 528, 376, 284]],
  374. 24 =&gt; [[2812, 2188, 1588, 1228], [1704, 1326, 963, 744], [1171, 911, 661, 511], [721, 561, 407, 315]],
  375. 25 =&gt; [[3057, 2395, 1718, 1286], [1853, 1451, 1041, 779], [1273, 997, 715, 535], [784, 614, 440, 330]],
  376. 26 =&gt; [[3283, 2544, 1804, 1425], [1990, 1542, 1094, 864], [1367, 1059, 751, 593], [842, 652, 462, 365]],
  377. 27 =&gt; [[3517, 2701, 1933, 1501], [2132, 1637, 1172, 910], [1465, 1125, 805, 625], [902, 692, 496, 385]],
  378. 28 =&gt; [[3669, 2857, 2085, 1581], [2223, 1732, 1263, 958], [1528, 1190, 868, 658], [940, 732, 534, 405]],
  379. 29 =&gt; [[3909, 3035, 2181, 1677], [2369, 1839, 1322, 1016], [1628, 1264, 908, 698], [1002, 778, 559, 430]],
  380. 30 =&gt; [[4158, 3289, 2358, 1782], [2520, 1994, 1429, 1080], [1732, 1370, 982, 742], [1066, 843, 604, 457]],
  381. 31 =&gt; [[4417, 3486, 2473, 1897], [2677, 2113, 1499, 1150], [1840, 1452, 1030, 790], [1132, 894, 634, 486]],
  382. 32 =&gt; [[4686, 3693, 2670, 2022], [2840, 2238, 1618, 1226], [1952, 1538, 1112, 842], [1201, 947, 684, 518]],
  383. 33 =&gt; [[4965, 3909, 2805, 2157], [3009, 2369, 1700, 1307], [2068, 1628, 1168, 898], [1273, 1002, 719, 553]],
  384. 34 =&gt; [[5253, 4134, 2949, 2301], [3183, 2506, 1787, 1394], [2188, 1722, 1228, 958], [1347, 1060, 756, 590]],
  385. 35 =&gt; [[5529, 4343, 3081, 2361], [3351, 2632, 1867, 1431], [2303, 1809, 1283, 983], [1417, 1113, 790, 605]],
  386. 36 =&gt; [[5836, 4588, 3244, 2524], [3537, 2780, 1966, 1530], [2431, 1911, 1351, 1051], [1496, 1176, 832, 647]],
  387. 37 =&gt; [[6153, 4775, 3417, 2625], [3729, 2894, 2071, 1591], [2563, 1989, 1423, 1093], [1577, 1224, 876, 673]],
  388. 38 =&gt; [[6479, 5039, 3599, 2735], [3927, 3054, 2181, 1658], [2699, 2099, 1499, 1139], [1661, 1292, 923, 701]],
  389. 39 =&gt; [[6743, 5313, 3791, 2927], [4087, 3220, 2298, 1774], [2809, 2213, 1579, 1219], [1729, 1362, 972, 750]],
  390. 40 =&gt; [[7089, 5596, 3993, 3057], [4296, 3391, 2420, 1852], [2953, 2331, 1663, 1273], [1817, 1435, 1024, 784]],
  391. ]</span>
  392. </code>
  393. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  394. Tags
  395. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#constant_MAX_LENGTH#tags" class="headerlink"><i class="fas fa-link"></i></a>
  396. </h5>
  397. <dl class="phpdocumentor-tag-list">
  398. <dt class="phpdocumentor-tag-list__entry">
  399. <span class="phpdocumentor-tag__name">see</span>
  400. </dt>
  401. <dd class="phpdocumentor-tag-list__definition">
  402. <span class="phpdocumentor-tag-link"><a href="http://www.qrcode.com/en/about/version.html">http://www.qrcode.com/en/about/version.html</a></span>
  403. </dd>
  404. </dl>
  405. </article>
  406. <article class="phpdocumentor-element -constant -protected ">
  407. <h4 class="phpdocumentor-element__name" id="constant_testData">
  408. testData
  409. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#constant_testData" class="headerlink"><i class="fas fa-link"></i></a>
  410. </h4>
  411. <aside class="phpdocumentor-element-found-in">
  412. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/HanziTest.php"><a href="files/tests-data-hanzitest.html"><abbr title="tests/Data/HanziTest.php">HanziTest.php</abbr></a></abbr>
  413. :
  414. <span class="phpdocumentor-element-found-in__line">26</span>
  415. </aside>
  416. <code class="phpdocumentor-signature phpdocumentor-code ">
  417. <span class="phpdocumentor-signature__visibility">protected</span>
  418. <span class="phpdocumentor-signature__type">mixed</span>
  419. <span class="phpdocumentor-signature__name">testData</span>
  420. = <span class="phpdocumentor-signature__default-value">&#039;无可奈何燃花作香&#039;</span>
  421. </code>
  422. </article>
  423. </section>
  424. <section class="phpdocumentor-properties">
  425. <h3 class="phpdocumentor-elements__header" id="properties">
  426. Properties
  427. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  428. </h3>
  429. <article
  430. class="
  431. phpdocumentor-element
  432. -property
  433. -protected
  434. "
  435. >
  436. <h4 class="phpdocumentor-element__name" id="property_dataMode">
  437. $dataMode
  438. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode" class="headerlink"><i class="fas fa-link"></i></a>
  439. <span class="phpdocumentor-element__modifiers">
  440. </span>
  441. </h4>
  442. <aside class="phpdocumentor-element-found-in">
  443. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  444. :
  445. <span class="phpdocumentor-element-found-in__line">31</span>
  446. </aside>
  447. <code class="phpdocumentor-code phpdocumentor-signature ">
  448. <span class="phpdocumentor-signature__visibility">protected</span>
  449. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  450. <span class="phpdocumentor-signature__name">$dataMode</span>
  451. </code>
  452. </article>
  453. <article
  454. class="
  455. phpdocumentor-element
  456. -property
  457. -protected
  458. "
  459. >
  460. <h4 class="phpdocumentor-element__name" id="property_QRData">
  461. $QRData
  462. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData" class="headerlink"><i class="fas fa-link"></i></a>
  463. <span class="phpdocumentor-element__modifiers">
  464. </span>
  465. </h4>
  466. <aside class="phpdocumentor-element-found-in">
  467. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  468. :
  469. <span class="phpdocumentor-element-found-in__line">30</span>
  470. </aside>
  471. <code class="phpdocumentor-code phpdocumentor-signature ">
  472. <span class="phpdocumentor-signature__visibility">protected</span>
  473. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a></span>
  474. <span class="phpdocumentor-signature__name">$QRData</span>
  475. </code>
  476. </article>
  477. </section>
  478. <section class="phpdocumentor-methods">
  479. <h3 class="phpdocumentor-elements__header" id="methods">
  480. Methods
  481. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  482. </h3>
  483. <article
  484. class="phpdocumentor-element
  485. -method
  486. -public
  487. -static "
  488. >
  489. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  490. getMaxLengthForMode()
  491. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  492. </h4>
  493. <aside class="phpdocumentor-element-found-in">
  494. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRMaxLengthTrait.php"><a href="files/tests-qrmaxlengthtrait.html"><abbr title="tests/QRMaxLengthTrait.php">QRMaxLengthTrait.php</abbr></a></abbr>
  495. :
  496. <span class="phpdocumentor-element-found-in__line">80</span>
  497. </aside>
  498. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  499. <code class="phpdocumentor-code phpdocumentor-signature ">
  500. <span class="phpdocumentor-signature__visibility">public</span>
  501. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getMaxLengthForMode</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mode</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  502. <div class="phpdocumentor-label-line">
  503. </div>
  504. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  505. <dl class="phpdocumentor-argument-list">
  506. <dt class="phpdocumentor-argument-list__entry">
  507. <span class="phpdocumentor-signature__argument__name">$mode</span>
  508. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  509. </dt>
  510. <dd class="phpdocumentor-argument-list__definition">
  511. </dd>
  512. <dt class="phpdocumentor-argument-list__entry">
  513. <span class="phpdocumentor-signature__argument__name">$version</span>
  514. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  515. </dt>
  516. <dd class="phpdocumentor-argument-list__definition">
  517. </dd>
  518. <dt class="phpdocumentor-argument-list__entry">
  519. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  520. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  521. </dt>
  522. <dd class="phpdocumentor-argument-list__definition">
  523. </dd>
  524. </dl>
  525. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  526. Tags
  527. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode#tags" class="headerlink"><i class="fas fa-link"></i></a>
  528. </h5>
  529. <dl class="phpdocumentor-tag-list">
  530. <dt class="phpdocumentor-tag-list__entry">
  531. <span class="phpdocumentor-tag__name">throws</span>
  532. </dt>
  533. <dd class="phpdocumentor-tag-list__definition">
  534. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  535. </dd>
  536. <dt class="phpdocumentor-tag-list__entry">
  537. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  538. </dt>
  539. <dd class="phpdocumentor-tag-list__definition">
  540. </dd>
  541. </dl>
  542. <section>
  543. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  544. <span class="phpdocumentor-signature__response_type">int</span>
  545. </section>
  546. </article>
  547. <article
  548. class="phpdocumentor-element
  549. -method
  550. -public
  551. -static "
  552. >
  553. <h4 class="phpdocumentor-element__name" id="method_hanziProvider">
  554. hanziProvider()
  555. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_hanziProvider" class="headerlink"><i class="fas fa-link"></i></a>
  556. </h4>
  557. <aside class="phpdocumentor-element-found-in">
  558. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/HanziTest.php"><a href="files/tests-data-hanzitest.html"><abbr title="tests/Data/HanziTest.php">HanziTest.php</abbr></a></abbr>
  559. :
  560. <span class="phpdocumentor-element-found-in__line">51</span>
  561. </aside>
  562. <p class="phpdocumentor-summary">lists all characters in the valid GB2312 range</p>
  563. <code class="phpdocumentor-code phpdocumentor-signature ">
  564. <span class="phpdocumentor-signature__visibility">public</span>
  565. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">hanziProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span></code>
  566. <div class="phpdocumentor-label-line">
  567. </div>
  568. <section>
  569. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  570. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  571. </section>
  572. </article>
  573. <article
  574. class="phpdocumentor-element
  575. -method
  576. -public
  577. -static "
  578. >
  579. <h4 class="phpdocumentor-element__name" id="method_maskPatternProvider">
  580. maskPatternProvider()
  581. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  582. </h4>
  583. <aside class="phpdocumentor-element-found-in">
  584. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  585. :
  586. <span class="phpdocumentor-element-found-in__line">45</span>
  587. </aside>
  588. <code class="phpdocumentor-code phpdocumentor-signature ">
  589. <span class="phpdocumentor-signature__visibility">public</span>
  590. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">maskPatternProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span></code>
  591. <div class="phpdocumentor-label-line">
  592. </div>
  593. <section>
  594. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  595. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  596. </section>
  597. </article>
  598. <article
  599. class="phpdocumentor-element
  600. -method
  601. -public
  602. -static "
  603. >
  604. <h4 class="phpdocumentor-element__name" id="method_maxLengthProvider">
  605. maxLengthProvider()
  606. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider" class="headerlink"><i class="fas fa-link"></i></a>
  607. </h4>
  608. <aside class="phpdocumentor-element-found-in">
  609. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  610. :
  611. <span class="phpdocumentor-element-found-in__line">124</span>
  612. </aside>
  613. <p class="phpdocumentor-summary">Generates test data for each data mode:</p>
  614. <code class="phpdocumentor-code phpdocumentor-signature ">
  615. <span class="phpdocumentor-signature__visibility">public</span>
  616. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">maxLengthProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span></code>
  617. <div class="phpdocumentor-label-line">
  618. </div>
  619. <section class="phpdocumentor-description"><ul>
  620. <li>version</li>
  621. <li>ECC level</li>
  622. <li>a string that contains the maximum amount of characters for the given mode</li>
  623. <li>a string that contains characters for the given mode and that exceeds the maximum length by one/two character(s)</li>
  624. <li>the maximum allowed character length</li>
  625. </ul>
  626. </section>
  627. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  628. Tags
  629. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  630. </h5>
  631. <dl class="phpdocumentor-tag-list">
  632. <dt class="phpdocumentor-tag-list__entry">
  633. <span class="phpdocumentor-tag__name">throws</span>
  634. </dt>
  635. <dd class="phpdocumentor-tag-list__definition">
  636. <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span>
  637. </dd>
  638. </dl>
  639. <section>
  640. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  641. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  642. </section>
  643. </article>
  644. <article
  645. class="phpdocumentor-element
  646. -method
  647. -public
  648. -static "
  649. >
  650. <h4 class="phpdocumentor-element__name" id="method_stringValidateProvider">
  651. stringValidateProvider()
  652. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_stringValidateProvider" class="headerlink"><i class="fas fa-link"></i></a>
  653. </h4>
  654. <aside class="phpdocumentor-element-found-in">
  655. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/HanziTest.php"><a href="files/tests-data-hanzitest.html"><abbr title="tests/Data/HanziTest.php">HanziTest.php</abbr></a></abbr>
  656. :
  657. <span class="phpdocumentor-element-found-in__line">37</span>
  658. </aside>
  659. <p class="phpdocumentor-summary">isGB2312() should pass on Hanzi/GB2312 characters and fail on everything else</p>
  660. <code class="phpdocumentor-code phpdocumentor-signature ">
  661. <span class="phpdocumentor-signature__visibility">public</span>
  662. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">stringValidateProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  663. <div class="phpdocumentor-label-line">
  664. </div>
  665. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  666. Tags
  667. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_stringValidateProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  668. </h5>
  669. <dl class="phpdocumentor-tag-list">
  670. <dt class="phpdocumentor-tag-list__entry">
  671. <span class="phpdocumentor-tag__name">phpstan-return</span>
  672. </dt>
  673. <dd class="phpdocumentor-tag-list__definition">
  674. <section class="phpdocumentor-description"><p>array&lt;int, array{0: string, 1: bool}&gt;</p>
  675. </section>
  676. </dd>
  677. </dl>
  678. <section>
  679. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  680. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  681. </section>
  682. </article>
  683. <article
  684. class="phpdocumentor-element
  685. -method
  686. -public
  687. "
  688. >
  689. <h4 class="phpdocumentor-element__name" id="method_testBinaryStringInvalid">
  690. testBinaryStringInvalid()
  691. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid" class="headerlink"><i class="fas fa-link"></i></a>
  692. </h4>
  693. <aside class="phpdocumentor-element-found-in">
  694. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  695. :
  696. <span class="phpdocumentor-element-found-in__line">82</span>
  697. </aside>
  698. <p class="phpdocumentor-summary">Tests if a random binary string is properly validated as false</p>
  699. <code class="phpdocumentor-code phpdocumentor-signature ">
  700. <span class="phpdocumentor-signature__visibility">public</span>
  701. <span class="phpdocumentor-signature__name">testBinaryStringInvalid</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  702. <div class="phpdocumentor-label-line">
  703. </div>
  704. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  705. Tags
  706. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  707. </h5>
  708. <dl class="phpdocumentor-tag-list">
  709. <dt class="phpdocumentor-tag-list__entry">
  710. <span class="phpdocumentor-tag__name">see</span>
  711. </dt>
  712. <dd class="phpdocumentor-tag-list__definition">
  713. <span class="phpdocumentor-tag-link"><a href="https://github.com/chillerlan/php-qrcode/issues/182">https://github.com/chillerlan/php-qrcode/issues/182</a></span>
  714. </dd>
  715. </dl>
  716. </article>
  717. <article
  718. class="phpdocumentor-element
  719. -method
  720. -public
  721. "
  722. >
  723. <h4 class="phpdocumentor-element__name" id="method_testDecodeSegment">
  724. testDecodeSegment()
  725. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  726. </h4>
  727. <aside class="phpdocumentor-element-found-in">
  728. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  729. :
  730. <span class="phpdocumentor-element-found-in__line">98</span>
  731. </aside>
  732. <p class="phpdocumentor-summary">Tests decoding a data segment from a given BitBuffer</p>
  733. <code class="phpdocumentor-code phpdocumentor-signature ">
  734. <span class="phpdocumentor-signature__visibility">public</span>
  735. <span class="phpdocumentor-signature__name">testDecodeSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  736. <div class="phpdocumentor-label-line">
  737. </div>
  738. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  739. <dl class="phpdocumentor-argument-list">
  740. <dt class="phpdocumentor-argument-list__entry">
  741. <span class="phpdocumentor-signature__argument__name">$version</span>
  742. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  743. </dt>
  744. <dd class="phpdocumentor-argument-list__definition">
  745. </dd>
  746. </dl>
  747. <section class="phpdocumentor-attributes">
  748. <h5 class="phpdocumentor-elements__header" id="attributes">
  749. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  750. </h5>
  751. <dl class="phpdocumentor-argument-list">
  752. <dt class="phpdocumentor-argument-list__entry">
  753. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  754. </dt>
  755. <dd class="phpdocumentor-argument-list__entry">
  756. &#039;versionBreakpointProvider&#039;
  757. </dd>
  758. </dl>
  759. </section>
  760. </article>
  761. <article
  762. class="phpdocumentor-element
  763. -method
  764. -public
  765. "
  766. >
  767. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersion">
  768. testGetMinimumVersion()
  769. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  770. </h4>
  771. <aside class="phpdocumentor-element-found-in">
  772. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  773. :
  774. <span class="phpdocumentor-element-found-in__line">173</span>
  775. </aside>
  776. <p class="phpdocumentor-summary">Tests getting the minimum QR version for the given data</p>
  777. <code class="phpdocumentor-code phpdocumentor-signature ">
  778. <span class="phpdocumentor-signature__visibility">public</span>
  779. <span class="phpdocumentor-signature__name">testGetMinimumVersion</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  780. <div class="phpdocumentor-label-line">
  781. </div>
  782. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  783. <dl class="phpdocumentor-argument-list">
  784. <dt class="phpdocumentor-argument-list__entry">
  785. <span class="phpdocumentor-signature__argument__name">$version</span>
  786. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  787. </dt>
  788. <dd class="phpdocumentor-argument-list__definition">
  789. </dd>
  790. <dt class="phpdocumentor-argument-list__entry">
  791. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  792. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  793. </dt>
  794. <dd class="phpdocumentor-argument-list__definition">
  795. </dd>
  796. <dt class="phpdocumentor-argument-list__entry">
  797. <span class="phpdocumentor-signature__argument__name">$str</span>
  798. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  799. </dt>
  800. <dd class="phpdocumentor-argument-list__definition">
  801. </dd>
  802. </dl>
  803. <section class="phpdocumentor-attributes">
  804. <h5 class="phpdocumentor-elements__header" id="attributes">
  805. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  806. </h5>
  807. <dl class="phpdocumentor-argument-list">
  808. <dt class="phpdocumentor-argument-list__entry">
  809. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  810. </dt>
  811. <dd class="phpdocumentor-argument-list__entry">
  812. &#039;maxLengthProvider&#039;
  813. </dd>
  814. </dl>
  815. </section>
  816. </article>
  817. <article
  818. class="phpdocumentor-element
  819. -method
  820. -public
  821. "
  822. >
  823. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersionException">
  824. testGetMinimumVersionException()
  825. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException" class="headerlink"><i class="fas fa-link"></i></a>
  826. </h4>
  827. <aside class="phpdocumentor-element-found-in">
  828. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  829. :
  830. <span class="phpdocumentor-element-found-in__line">219</span>
  831. </aside>
  832. <p class="phpdocumentor-summary">Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</p>
  833. <code class="phpdocumentor-code phpdocumentor-signature ">
  834. <span class="phpdocumentor-signature__visibility">public</span>
  835. <span class="phpdocumentor-signature__name">testGetMinimumVersionException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  836. <div class="phpdocumentor-label-line">
  837. </div>
  838. </article>
  839. <article
  840. class="phpdocumentor-element
  841. -method
  842. -public
  843. "
  844. >
  845. <h4 class="phpdocumentor-element__name" id="method_testInitMatrix">
  846. testInitMatrix()
  847. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  848. </h4>
  849. <aside class="phpdocumentor-element-found-in">
  850. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  851. :
  852. <span class="phpdocumentor-element-found-in__line">52</span>
  853. </aside>
  854. <p class="phpdocumentor-summary">Tests initializing the data matrix</p>
  855. <code class="phpdocumentor-code phpdocumentor-signature ">
  856. <span class="phpdocumentor-signature__visibility">public</span>
  857. <span class="phpdocumentor-signature__name">testInitMatrix</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$pattern</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  858. <div class="phpdocumentor-label-line">
  859. </div>
  860. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  861. <dl class="phpdocumentor-argument-list">
  862. <dt class="phpdocumentor-argument-list__entry">
  863. <span class="phpdocumentor-signature__argument__name">$pattern</span>
  864. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  865. </dt>
  866. <dd class="phpdocumentor-argument-list__definition">
  867. </dd>
  868. </dl>
  869. <section class="phpdocumentor-attributes">
  870. <h5 class="phpdocumentor-elements__header" id="attributes">
  871. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  872. </h5>
  873. <dl class="phpdocumentor-argument-list">
  874. <dt class="phpdocumentor-argument-list__entry">
  875. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  876. </dt>
  877. <dd class="phpdocumentor-argument-list__entry">
  878. &#039;maskPatternProvider&#039;
  879. </dd>
  880. </dl>
  881. </section>
  882. </article>
  883. <article
  884. class="phpdocumentor-element
  885. -method
  886. -public
  887. "
  888. >
  889. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataException">
  890. testInvalidDataException()
  891. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException" class="headerlink"><i class="fas fa-link"></i></a>
  892. </h4>
  893. <aside class="phpdocumentor-element-found-in">
  894. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  895. :
  896. <span class="phpdocumentor-element-found-in__line">229</span>
  897. </aside>
  898. <p class="phpdocumentor-summary">Tests if an exception is thrown when an invalid character is encountered</p>
  899. <code class="phpdocumentor-code phpdocumentor-signature ">
  900. <span class="phpdocumentor-signature__visibility">public</span>
  901. <span class="phpdocumentor-signature__name">testInvalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  902. <div class="phpdocumentor-label-line">
  903. </div>
  904. </article>
  905. <article
  906. class="phpdocumentor-element
  907. -method
  908. -public
  909. "
  910. >
  911. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataOnEmptyException">
  912. testInvalidDataOnEmptyException()
  913. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  914. </h4>
  915. <aside class="phpdocumentor-element-found-in">
  916. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  917. :
  918. <span class="phpdocumentor-element-found-in__line">239</span>
  919. </aside>
  920. <p class="phpdocumentor-summary">Tests if an exception is thrown if the given string is empty</p>
  921. <code class="phpdocumentor-code phpdocumentor-signature ">
  922. <span class="phpdocumentor-signature__visibility">public</span>
  923. <span class="phpdocumentor-signature__name">testInvalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  924. <div class="phpdocumentor-label-line">
  925. </div>
  926. </article>
  927. <article
  928. class="phpdocumentor-element
  929. -method
  930. -public
  931. "
  932. >
  933. <h4 class="phpdocumentor-element__name" id="method_testMaxLength">
  934. testMaxLength()
  935. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength" class="headerlink"><i class="fas fa-link"></i></a>
  936. </h4>
  937. <aside class="phpdocumentor-element-found-in">
  938. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  939. :
  940. <span class="phpdocumentor-element-found-in__line">155</span>
  941. </aside>
  942. <code class="phpdocumentor-code phpdocumentor-signature ">
  943. <span class="phpdocumentor-signature__visibility">public</span>
  944. <span class="phpdocumentor-signature__name">testMaxLength</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  945. <div class="phpdocumentor-label-line">
  946. </div>
  947. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  948. <dl class="phpdocumentor-argument-list">
  949. <dt class="phpdocumentor-argument-list__entry">
  950. <span class="phpdocumentor-signature__argument__name">$version</span>
  951. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  952. </dt>
  953. <dd class="phpdocumentor-argument-list__definition">
  954. </dd>
  955. <dt class="phpdocumentor-argument-list__entry">
  956. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  957. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  958. </dt>
  959. <dd class="phpdocumentor-argument-list__definition">
  960. </dd>
  961. <dt class="phpdocumentor-argument-list__entry">
  962. <span class="phpdocumentor-signature__argument__name">$str</span>
  963. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  964. </dt>
  965. <dd class="phpdocumentor-argument-list__definition">
  966. </dd>
  967. </dl>
  968. <section class="phpdocumentor-attributes">
  969. <h5 class="phpdocumentor-elements__header" id="attributes">
  970. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  971. </h5>
  972. <dl class="phpdocumentor-argument-list">
  973. <dt class="phpdocumentor-argument-list__entry">
  974. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  975. </dt>
  976. <dd class="phpdocumentor-argument-list__entry">
  977. &#039;maxLengthProvider&#039;
  978. </dd>
  979. </dl>
  980. </section>
  981. </article>
  982. <article
  983. class="phpdocumentor-element
  984. -method
  985. -public
  986. "
  987. >
  988. <h4 class="phpdocumentor-element__name" id="method_testMaxLengthOverflowException">
  989. testMaxLengthOverflowException()
  990. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException" class="headerlink"><i class="fas fa-link"></i></a>
  991. </h4>
  992. <aside class="phpdocumentor-element-found-in">
  993. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  994. :
  995. <span class="phpdocumentor-element-found-in__line">203</span>
  996. </aside>
  997. <p class="phpdocumentor-summary">Tests if an exception is thrown on data overflow</p>
  998. <code class="phpdocumentor-code phpdocumentor-signature ">
  999. <span class="phpdocumentor-signature__visibility">public</span>
  1000. <span class="phpdocumentor-signature__name">testMaxLengthOverflowException</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str1</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1001. <div class="phpdocumentor-label-line">
  1002. </div>
  1003. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1004. <dl class="phpdocumentor-argument-list">
  1005. <dt class="phpdocumentor-argument-list__entry">
  1006. <span class="phpdocumentor-signature__argument__name">$version</span>
  1007. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  1008. </dt>
  1009. <dd class="phpdocumentor-argument-list__definition">
  1010. </dd>
  1011. <dt class="phpdocumentor-argument-list__entry">
  1012. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  1013. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  1014. </dt>
  1015. <dd class="phpdocumentor-argument-list__definition">
  1016. </dd>
  1017. <dt class="phpdocumentor-argument-list__entry">
  1018. <span class="phpdocumentor-signature__argument__name">$str</span>
  1019. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1020. </dt>
  1021. <dd class="phpdocumentor-argument-list__definition">
  1022. </dd>
  1023. <dt class="phpdocumentor-argument-list__entry">
  1024. <span class="phpdocumentor-signature__argument__name">$str1</span>
  1025. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1026. </dt>
  1027. <dd class="phpdocumentor-argument-list__definition">
  1028. </dd>
  1029. </dl>
  1030. <section class="phpdocumentor-attributes">
  1031. <h5 class="phpdocumentor-elements__header" id="attributes">
  1032. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  1033. </h5>
  1034. <dl class="phpdocumentor-argument-list">
  1035. <dt class="phpdocumentor-argument-list__entry">
  1036. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  1037. </dt>
  1038. <dd class="phpdocumentor-argument-list__entry">
  1039. &#039;maxLengthProvider&#039;
  1040. </dd>
  1041. </dl>
  1042. </section>
  1043. </article>
  1044. <article
  1045. class="phpdocumentor-element
  1046. -method
  1047. -public
  1048. "
  1049. >
  1050. <h4 class="phpdocumentor-element__name" id="method_testValidateGB2312">
  1051. testValidateGB2312()
  1052. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_testValidateGB2312" class="headerlink"><i class="fas fa-link"></i></a>
  1053. </h4>
  1054. <aside class="phpdocumentor-element-found-in">
  1055. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/HanziTest.php"><a href="files/tests-data-hanzitest.html"><abbr title="tests/Data/HanziTest.php">HanziTest.php</abbr></a></abbr>
  1056. :
  1057. <span class="phpdocumentor-element-found-in__line">73</span>
  1058. </aside>
  1059. <code class="phpdocumentor-code phpdocumentor-signature ">
  1060. <span class="phpdocumentor-signature__visibility">public</span>
  1061. <span class="phpdocumentor-signature__name">testValidateGB2312</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$chr</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1062. <div class="phpdocumentor-label-line">
  1063. </div>
  1064. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1065. <dl class="phpdocumentor-argument-list">
  1066. <dt class="phpdocumentor-argument-list__entry">
  1067. <span class="phpdocumentor-signature__argument__name">$chr</span>
  1068. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1069. </dt>
  1070. <dd class="phpdocumentor-argument-list__definition">
  1071. </dd>
  1072. </dl>
  1073. <section class="phpdocumentor-attributes">
  1074. <h5 class="phpdocumentor-elements__header" id="attributes">
  1075. Attributes <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_testValidateGB2312#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  1076. </h5>
  1077. <dl class="phpdocumentor-argument-list">
  1078. <dt class="phpdocumentor-argument-list__entry">
  1079. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  1080. </dt>
  1081. <dd class="phpdocumentor-argument-list__entry">
  1082. &#039;hanziProvider&#039;
  1083. </dd>
  1084. </dl>
  1085. <dl class="phpdocumentor-argument-list">
  1086. <dt class="phpdocumentor-argument-list__entry">
  1087. #[<abbr title="\PHPUnit\Framework\Attributes\Group">Group</abbr>]
  1088. </dt>
  1089. <dd class="phpdocumentor-argument-list__entry">
  1090. &#039;slow&#039;
  1091. </dd>
  1092. </dl>
  1093. </section>
  1094. </article>
  1095. <article
  1096. class="phpdocumentor-element
  1097. -method
  1098. -public
  1099. "
  1100. >
  1101. <h4 class="phpdocumentor-element__name" id="method_testValidateString">
  1102. testValidateString()
  1103. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString" class="headerlink"><i class="fas fa-link"></i></a>
  1104. </h4>
  1105. <aside class="phpdocumentor-element-found-in">
  1106. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  1107. :
  1108. <span class="phpdocumentor-element-found-in__line">72</span>
  1109. </aside>
  1110. <p class="phpdocumentor-summary">Tests if a string is properly validated for the respective data mode</p>
  1111. <code class="phpdocumentor-code phpdocumentor-signature ">
  1112. <span class="phpdocumentor-signature__visibility">public</span>
  1113. <span class="phpdocumentor-signature__name">testValidateString</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1114. <div class="phpdocumentor-label-line">
  1115. </div>
  1116. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1117. <dl class="phpdocumentor-argument-list">
  1118. <dt class="phpdocumentor-argument-list__entry">
  1119. <span class="phpdocumentor-signature__argument__name">$string</span>
  1120. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1121. </dt>
  1122. <dd class="phpdocumentor-argument-list__definition">
  1123. </dd>
  1124. <dt class="phpdocumentor-argument-list__entry">
  1125. <span class="phpdocumentor-signature__argument__name">$expected</span>
  1126. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1127. </dt>
  1128. <dd class="phpdocumentor-argument-list__definition">
  1129. </dd>
  1130. </dl>
  1131. <section class="phpdocumentor-attributes">
  1132. <h5 class="phpdocumentor-elements__header" id="attributes">
  1133. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  1134. </h5>
  1135. <dl class="phpdocumentor-argument-list">
  1136. <dt class="phpdocumentor-argument-list__entry">
  1137. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  1138. </dt>
  1139. <dd class="phpdocumentor-argument-list__entry">
  1140. &#039;stringValidateProvider&#039;
  1141. </dd>
  1142. </dl>
  1143. </section>
  1144. </article>
  1145. <article
  1146. class="phpdocumentor-element
  1147. -method
  1148. -public
  1149. -static "
  1150. >
  1151. <h4 class="phpdocumentor-element__name" id="method_versionBreakpointProvider">
  1152. versionBreakpointProvider()
  1153. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider" class="headerlink"><i class="fas fa-link"></i></a>
  1154. </h4>
  1155. <aside class="phpdocumentor-element-found-in">
  1156. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  1157. :
  1158. <span class="phpdocumentor-element-found-in__line">91</span>
  1159. </aside>
  1160. <p class="phpdocumentor-summary">returns versions within the version breakpoints 1-9, 10-26 and 27-40</p>
  1161. <code class="phpdocumentor-code phpdocumentor-signature ">
  1162. <span class="phpdocumentor-signature__visibility">public</span>
  1163. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">versionBreakpointProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  1164. <div class="phpdocumentor-label-line">
  1165. </div>
  1166. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1167. Tags
  1168. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1169. </h5>
  1170. <dl class="phpdocumentor-tag-list">
  1171. <dt class="phpdocumentor-tag-list__entry">
  1172. <span class="phpdocumentor-tag__name">phpstan-return</span>
  1173. </dt>
  1174. <dd class="phpdocumentor-tag-list__definition">
  1175. <section class="phpdocumentor-description"><p>array&lt;string, array{0: int}&gt;</p>
  1176. </section>
  1177. </dd>
  1178. </dl>
  1179. <section>
  1180. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1181. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  1182. </section>
  1183. </article>
  1184. <article
  1185. class="phpdocumentor-element
  1186. -method
  1187. -protected
  1188. -static "
  1189. >
  1190. <h4 class="phpdocumentor-element__name" id="method_getDataModeInterface">
  1191. getDataModeInterface()
  1192. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_getDataModeInterface" class="headerlink"><i class="fas fa-link"></i></a>
  1193. </h4>
  1194. <aside class="phpdocumentor-element-found-in">
  1195. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/HanziTest.php"><a href="files/tests-data-hanzitest.html"><abbr title="tests/Data/HanziTest.php">HanziTest.php</abbr></a></abbr>
  1196. :
  1197. <span class="phpdocumentor-element-found-in__line">28</span>
  1198. </aside>
  1199. <code class="phpdocumentor-code phpdocumentor-signature ">
  1200. <span class="phpdocumentor-signature__visibility">protected</span>
  1201. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getDataModeInterface</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span></code>
  1202. <div class="phpdocumentor-label-line">
  1203. </div>
  1204. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1205. <dl class="phpdocumentor-argument-list">
  1206. <dt class="phpdocumentor-argument-list__entry">
  1207. <span class="phpdocumentor-signature__argument__name">$data</span>
  1208. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1209. </dt>
  1210. <dd class="phpdocumentor-argument-list__definition">
  1211. </dd>
  1212. </dl>
  1213. <section>
  1214. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1215. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  1216. </section>
  1217. </article>
  1218. <article
  1219. class="phpdocumentor-element
  1220. -method
  1221. -protected
  1222. "
  1223. >
  1224. <h4 class="phpdocumentor-element__name" id="method_setUp">
  1225. setUp()
  1226. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  1227. </h4>
  1228. <aside class="phpdocumentor-element-found-in">
  1229. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  1230. :
  1231. <span class="phpdocumentor-element-found-in__line">35</span>
  1232. </aside>
  1233. <code class="phpdocumentor-code phpdocumentor-signature ">
  1234. <span class="phpdocumentor-signature__visibility">protected</span>
  1235. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1236. <div class="phpdocumentor-label-line">
  1237. </div>
  1238. </article>
  1239. </section>
  1240. <div class="phpdocumentor-modal" id="source-view">
  1241. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1242. <div class="phpdocumentor-modal-container">
  1243. <div class="phpdocumentor-modal-content">
  1244. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Data/HanziTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1245. </div>
  1246. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1247. </div>
  1248. </div>
  1249. <script type="text/javascript">
  1250. (function () {
  1251. function loadExternalCodeSnippet(el, url, line) {
  1252. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1253. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1254. const language = 'php';
  1255. const code = document.createElement('code');
  1256. code.className = 'language-' + language;
  1257. pre.textContent = '';
  1258. pre.setAttribute('data-line', line)
  1259. code.textContent = 'Loading…';
  1260. pre.appendChild(code);
  1261. var xhr = new XMLHttpRequest();
  1262. xhr.open('GET', src, true);
  1263. xhr.onreadystatechange = function () {
  1264. if (xhr.readyState !== 4) {
  1265. return;
  1266. }
  1267. if (xhr.status < 400 && xhr.responseText) {
  1268. code.textContent = xhr.responseText;
  1269. Prism.highlightElement(code);
  1270. d=document.getElementsByClassName("line-numbers");
  1271. d[0].scrollTop = d[0].children[1].offsetTop;
  1272. return;
  1273. }
  1274. if (xhr.status === 404) {
  1275. code.textContent = '✖ Error: File could not be found';
  1276. return;
  1277. }
  1278. if (xhr.status >= 400) {
  1279. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1280. return;
  1281. }
  1282. code.textContent = '✖ Error: An unknown error occurred';
  1283. };
  1284. xhr.send(null);
  1285. });
  1286. }
  1287. const modalButtons = document.querySelectorAll("[data-modal]");
  1288. const openedAsLocalFile = window.location.protocol === 'file:';
  1289. if (modalButtons.length > 0 && openedAsLocalFile) {
  1290. console.warn(
  1291. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1292. 'browsers block XHR requests when a page is opened this way'
  1293. );
  1294. }
  1295. modalButtons.forEach(function (trigger) {
  1296. if (openedAsLocalFile) {
  1297. trigger.setAttribute("hidden", "hidden");
  1298. }
  1299. trigger.addEventListener("click", function (event) {
  1300. event.preventDefault();
  1301. const modal = document.getElementById(trigger.dataset.modal);
  1302. if (!modal) {
  1303. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1304. return;
  1305. }
  1306. modal.classList.add("phpdocumentor-modal__open");
  1307. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1308. const exits = modal.querySelectorAll("[data-exit-button]");
  1309. exits.forEach(function (exit) {
  1310. exit.addEventListener("click", function (event) {
  1311. event.preventDefault();
  1312. modal.classList.remove("phpdocumentor-modal__open");
  1313. });
  1314. });
  1315. });
  1316. });
  1317. })();
  1318. </script>
  1319. </article>
  1320. </section>
  1321. <section class="phpdocumentor-on-this-page__sidebar">
  1322. <section class="phpdocumentor-on-this-page__content">
  1323. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1324. <ul class="phpdocumentor-list -clean">
  1325. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1326. <li>
  1327. <ul class="phpdocumentor-list -clean">
  1328. <li><a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#toc-constants">Constants</a></li>
  1329. <li><a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#toc-properties">Properties</a></li>
  1330. <li><a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#toc-methods">Methods</a></li>
  1331. </ul>
  1332. </li>
  1333. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  1334. <li>
  1335. <ul class="phpdocumentor-list -clean">
  1336. <li class=""><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#constant_MAX_LENGTH">MAX_LENGTH</a></li>
  1337. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#constant_testData">testData</a></li>
  1338. </ul>
  1339. </li>
  1340. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1341. <li>
  1342. <ul class="phpdocumentor-list -clean">
  1343. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode">$dataMode</a></li>
  1344. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData">$QRData</a></li>
  1345. </ul>
  1346. </li>
  1347. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1348. <li>
  1349. <ul class="phpdocumentor-list -clean">
  1350. <li class=""><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a></li>
  1351. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_hanziProvider">hanziProvider()</a></li>
  1352. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a></li>
  1353. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a></li>
  1354. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_stringValidateProvider">stringValidateProvider()</a></li>
  1355. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid">testBinaryStringInvalid()</a></li>
  1356. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment">testDecodeSegment()</a></li>
  1357. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a></li>
  1358. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a></li>
  1359. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a></li>
  1360. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException">testInvalidDataException()</a></li>
  1361. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a></li>
  1362. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength">testMaxLength()</a></li>
  1363. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException">testMaxLengthOverflowException()</a></li>
  1364. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_testValidateGB2312">testValidateGB2312()</a></li>
  1365. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString">testValidateString()</a></li>
  1366. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a></li>
  1367. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#method_getDataModeInterface">getDataModeInterface()</a></li>
  1368. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a></li>
  1369. </ul>
  1370. </li>
  1371. </ul>
  1372. </section>
  1373. </section>
  1374. </div>
  1375. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1376. <section class="phpdocumentor-search-results__dialog">
  1377. <header class="phpdocumentor-search-results__header">
  1378. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1379. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1380. </header>
  1381. <section class="phpdocumentor-search-results__body">
  1382. <ul class="phpdocumentor-search-results__entries"></ul>
  1383. </section>
  1384. </section>
  1385. </section>
  1386. </div>
  1387. <a href="classes/chillerlan-QRCodeTest-Data-HanziTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1388. </main>
  1389. <script>
  1390. cssVars({});
  1391. </script>
  1392. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1393. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1394. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1395. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1396. </body>
  1397. </html>