chillerlan-QRCodeTest-Data-KanjiTest.html 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922
  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. KanjiTest
  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/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  131. :
  132. <span class="phpdocumentor-element-found-in__line">22</span>
  133. </aside>
  134. <p class="phpdocumentor-summary">Tests the Kanji class</p>
  135. <h3 id="toc">
  136. Table of Contents
  137. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.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-KanjiTest.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-Traits-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-KanjiTest.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-KanjiTest.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-KanjiTest.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-Data-DataInterfaceTestAbstract.html#method_binaryStringInvalid">binaryStringInvalid()</a>
  221. <span>
  222. &nbsp;: void </span>
  223. </dt>
  224. <dd>Tests if a random binary string is properly validated as false</dd>
  225. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  226. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_decodeSegment">decodeSegment()</a>
  227. <span>
  228. &nbsp;: void </span>
  229. </dt>
  230. <dd>Tests decoding a data segment from a given BitBuffer</dd>
  231. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  232. <a class="" href="classes/chillerlan-QRCodeTest-Traits-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  233. <span>
  234. &nbsp;: int </span>
  235. </dt>
  236. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  237. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  238. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_getMinimumVersion">getMinimumVersion()</a>
  239. <span>
  240. &nbsp;: void </span>
  241. </dt>
  242. <dd>Tests getting the minimum QR version for the given data</dd>
  243. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  244. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_getMinimumVersionException">getMinimumVersionException()</a>
  245. <span>
  246. &nbsp;: void </span>
  247. </dt>
  248. <dd>Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</dd>
  249. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  250. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_initMatrix">initMatrix()</a>
  251. <span>
  252. &nbsp;: void </span>
  253. </dt>
  254. <dd>Tests initializing the data matrix</dd>
  255. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  256. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_invalidDataException">invalidDataException()</a>
  257. <span>
  258. &nbsp;: void </span>
  259. </dt>
  260. <dd>Tests if an exception is thrown when an invalid character is encountered</dd>
  261. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  262. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_invalidDataOnEmptyException">invalidDataOnEmptyException()</a>
  263. <span>
  264. &nbsp;: void </span>
  265. </dt>
  266. <dd>Tests if an exception is thrown if the given string is empty</dd>
  267. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  268. <a class="" href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_kanjiProvider">kanjiProvider()</a>
  269. <span>
  270. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  271. </dt>
  272. <dd>lists the valid SJIS kanji</dd>
  273. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  274. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a>
  275. <span>
  276. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  277. </dt>
  278. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  279. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLength">maxLength()</a>
  280. <span>
  281. &nbsp;: void </span>
  282. </dt>
  283. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  284. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthOverflowException">maxLengthOverflowException()</a>
  285. <span>
  286. &nbsp;: void </span>
  287. </dt>
  288. <dd>Tests if an exception is thrown on data overflow</dd>
  289. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  290. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a>
  291. <span>
  292. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  293. </dt>
  294. <dd>Generates test data for each data mode:</dd>
  295. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  296. <a class="" href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_stringValidateProvider">stringValidateProvider()</a>
  297. <span>
  298. &nbsp;: array&lt;string|int, mixed&gt; </span>
  299. </dt>
  300. <dd>isKanji() should pass on Kanji/SJIS characters and fail on everything else</dd>
  301. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  302. <a class="" href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_validateSJIS">validateSJIS()</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_validateString">validateString()</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-KanjiTest.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-KanjiTest.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-Traits-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/Traits/QRMaxLengthTrait.php"><a href="files/tests-traits-qrmaxlengthtrait.html"><abbr title="tests/Traits/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-Traits-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-KanjiTest.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/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  413. :
  414. <span class="phpdocumentor-element-found-in__line">24</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-KanjiTest.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-KanjiTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  482. </h3>
  483. <article
  484. class="phpdocumentor-element
  485. -method
  486. -public
  487. "
  488. >
  489. <h4 class="phpdocumentor-element__name" id="method_binaryStringInvalid">
  490. binaryStringInvalid()
  491. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_binaryStringInvalid" 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/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  495. :
  496. <span class="phpdocumentor-element-found-in__line">102</span>
  497. </aside>
  498. <p class="phpdocumentor-summary">Tests if a random binary string is properly validated as false</p>
  499. <code class="phpdocumentor-code phpdocumentor-signature ">
  500. <span class="phpdocumentor-signature__visibility">public</span>
  501. <span class="phpdocumentor-signature__name">binaryStringInvalid</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  502. <div class="phpdocumentor-label-line">
  503. </div>
  504. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  505. Tags
  506. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_binaryStringInvalid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  507. </h5>
  508. <dl class="phpdocumentor-tag-list">
  509. <dt class="phpdocumentor-tag-list__entry">
  510. <span class="phpdocumentor-tag__name">see</span>
  511. </dt>
  512. <dd class="phpdocumentor-tag-list__definition">
  513. <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>
  514. </dd>
  515. </dl>
  516. <section class="phpdocumentor-attributes">
  517. <h5 class="phpdocumentor-elements__header" id="attributes">
  518. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_binaryStringInvalid#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  519. </h5>
  520. <dl class="phpdocumentor-argument-list">
  521. <dt class="phpdocumentor-argument-list__entry">
  522. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  523. </dt>
  524. </dl>
  525. </section>
  526. </article>
  527. <article
  528. class="phpdocumentor-element
  529. -method
  530. -public
  531. "
  532. >
  533. <h4 class="phpdocumentor-element__name" id="method_decodeSegment">
  534. decodeSegment()
  535. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_decodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  536. </h4>
  537. <aside class="phpdocumentor-element-found-in">
  538. <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>
  539. :
  540. <span class="phpdocumentor-element-found-in__line">119</span>
  541. </aside>
  542. <p class="phpdocumentor-summary">Tests decoding a data segment from a given BitBuffer</p>
  543. <code class="phpdocumentor-code phpdocumentor-signature ">
  544. <span class="phpdocumentor-signature__visibility">public</span>
  545. <span class="phpdocumentor-signature__name">decodeSegment</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>
  546. <div class="phpdocumentor-label-line">
  547. </div>
  548. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  549. <dl class="phpdocumentor-argument-list">
  550. <dt class="phpdocumentor-argument-list__entry">
  551. <span class="phpdocumentor-signature__argument__name">$version</span>
  552. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  553. </dt>
  554. <dd class="phpdocumentor-argument-list__definition">
  555. </dd>
  556. </dl>
  557. <section class="phpdocumentor-attributes">
  558. <h5 class="phpdocumentor-elements__header" id="attributes">
  559. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_decodeSegment#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  560. </h5>
  561. <dl class="phpdocumentor-argument-list">
  562. <dt class="phpdocumentor-argument-list__entry">
  563. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  564. </dt>
  565. <dd class="phpdocumentor-argument-list__entry">
  566. &#039;versionBreakpointProvider&#039;
  567. </dd>
  568. </dl>
  569. <dl class="phpdocumentor-argument-list">
  570. <dt class="phpdocumentor-argument-list__entry">
  571. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  572. </dt>
  573. </dl>
  574. </section>
  575. </article>
  576. <article
  577. class="phpdocumentor-element
  578. -method
  579. -public
  580. -static "
  581. >
  582. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  583. getMaxLengthForMode()
  584. <a href="classes/chillerlan-QRCodeTest-Traits-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  585. </h4>
  586. <aside class="phpdocumentor-element-found-in">
  587. <abbr class="phpdocumentor-element-found-in__file" title="tests/Traits/QRMaxLengthTrait.php"><a href="files/tests-traits-qrmaxlengthtrait.html"><abbr title="tests/Traits/QRMaxLengthTrait.php">QRMaxLengthTrait.php</abbr></a></abbr>
  588. :
  589. <span class="phpdocumentor-element-found-in__line">80</span>
  590. </aside>
  591. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  592. <code class="phpdocumentor-code phpdocumentor-signature ">
  593. <span class="phpdocumentor-signature__visibility">public</span>
  594. <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>
  595. <div class="phpdocumentor-label-line">
  596. </div>
  597. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  598. <dl class="phpdocumentor-argument-list">
  599. <dt class="phpdocumentor-argument-list__entry">
  600. <span class="phpdocumentor-signature__argument__name">$mode</span>
  601. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  602. </dt>
  603. <dd class="phpdocumentor-argument-list__definition">
  604. </dd>
  605. <dt class="phpdocumentor-argument-list__entry">
  606. <span class="phpdocumentor-signature__argument__name">$version</span>
  607. : <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>
  608. </dt>
  609. <dd class="phpdocumentor-argument-list__definition">
  610. </dd>
  611. <dt class="phpdocumentor-argument-list__entry">
  612. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  613. : <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>
  614. </dt>
  615. <dd class="phpdocumentor-argument-list__definition">
  616. </dd>
  617. </dl>
  618. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  619. Tags
  620. <a href="classes/chillerlan-QRCodeTest-Traits-QRMaxLengthTrait.html#method_getMaxLengthForMode#tags" class="headerlink"><i class="fas fa-link"></i></a>
  621. </h5>
  622. <dl class="phpdocumentor-tag-list">
  623. <dt class="phpdocumentor-tag-list__entry">
  624. <span class="phpdocumentor-tag__name">throws</span>
  625. </dt>
  626. <dd class="phpdocumentor-tag-list__definition">
  627. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  628. </dd>
  629. <dt class="phpdocumentor-tag-list__entry">
  630. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  631. </dt>
  632. <dd class="phpdocumentor-tag-list__definition">
  633. </dd>
  634. </dl>
  635. <section>
  636. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  637. <span class="phpdocumentor-signature__response_type">int</span>
  638. </section>
  639. </article>
  640. <article
  641. class="phpdocumentor-element
  642. -method
  643. -public
  644. "
  645. >
  646. <h4 class="phpdocumentor-element__name" id="method_getMinimumVersion">
  647. getMinimumVersion()
  648. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_getMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  649. </h4>
  650. <aside class="phpdocumentor-element-found-in">
  651. <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>
  652. :
  653. <span class="phpdocumentor-element-found-in__line">196</span>
  654. </aside>
  655. <p class="phpdocumentor-summary">Tests getting the minimum QR version for the given data</p>
  656. <code class="phpdocumentor-code phpdocumentor-signature ">
  657. <span class="phpdocumentor-signature__visibility">public</span>
  658. <span class="phpdocumentor-signature__name">getMinimumVersion</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>
  659. <div class="phpdocumentor-label-line">
  660. </div>
  661. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  662. <dl class="phpdocumentor-argument-list">
  663. <dt class="phpdocumentor-argument-list__entry">
  664. <span class="phpdocumentor-signature__argument__name">$version</span>
  665. : <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>
  666. </dt>
  667. <dd class="phpdocumentor-argument-list__definition">
  668. </dd>
  669. <dt class="phpdocumentor-argument-list__entry">
  670. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  671. : <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>
  672. </dt>
  673. <dd class="phpdocumentor-argument-list__definition">
  674. </dd>
  675. <dt class="phpdocumentor-argument-list__entry">
  676. <span class="phpdocumentor-signature__argument__name">$str</span>
  677. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  678. </dt>
  679. <dd class="phpdocumentor-argument-list__definition">
  680. </dd>
  681. </dl>
  682. <section class="phpdocumentor-attributes">
  683. <h5 class="phpdocumentor-elements__header" id="attributes">
  684. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_getMinimumVersion#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  685. </h5>
  686. <dl class="phpdocumentor-argument-list">
  687. <dt class="phpdocumentor-argument-list__entry">
  688. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  689. </dt>
  690. <dd class="phpdocumentor-argument-list__entry">
  691. &#039;maxLengthProvider&#039;
  692. </dd>
  693. </dl>
  694. <dl class="phpdocumentor-argument-list">
  695. <dt class="phpdocumentor-argument-list__entry">
  696. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  697. </dt>
  698. </dl>
  699. </section>
  700. </article>
  701. <article
  702. class="phpdocumentor-element
  703. -method
  704. -public
  705. "
  706. >
  707. <h4 class="phpdocumentor-element__name" id="method_getMinimumVersionException">
  708. getMinimumVersionException()
  709. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_getMinimumVersionException" class="headerlink"><i class="fas fa-link"></i></a>
  710. </h4>
  711. <aside class="phpdocumentor-element-found-in">
  712. <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>
  713. :
  714. <span class="phpdocumentor-element-found-in__line">244</span>
  715. </aside>
  716. <p class="phpdocumentor-summary">Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</p>
  717. <code class="phpdocumentor-code phpdocumentor-signature ">
  718. <span class="phpdocumentor-signature__visibility">public</span>
  719. <span class="phpdocumentor-signature__name">getMinimumVersionException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  720. <div class="phpdocumentor-label-line">
  721. </div>
  722. <section class="phpdocumentor-attributes">
  723. <h5 class="phpdocumentor-elements__header" id="attributes">
  724. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_getMinimumVersionException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  725. </h5>
  726. <dl class="phpdocumentor-argument-list">
  727. <dt class="phpdocumentor-argument-list__entry">
  728. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  729. </dt>
  730. </dl>
  731. </section>
  732. </article>
  733. <article
  734. class="phpdocumentor-element
  735. -method
  736. -public
  737. "
  738. >
  739. <h4 class="phpdocumentor-element__name" id="method_initMatrix">
  740. initMatrix()
  741. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_initMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  742. </h4>
  743. <aside class="phpdocumentor-element-found-in">
  744. <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>
  745. :
  746. <span class="phpdocumentor-element-found-in__line">52</span>
  747. </aside>
  748. <p class="phpdocumentor-summary">Tests initializing the data matrix</p>
  749. <code class="phpdocumentor-code phpdocumentor-signature ">
  750. <span class="phpdocumentor-signature__visibility">public</span>
  751. <span class="phpdocumentor-signature__name">initMatrix</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>
  752. <div class="phpdocumentor-label-line">
  753. </div>
  754. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  755. <dl class="phpdocumentor-argument-list">
  756. <dt class="phpdocumentor-argument-list__entry">
  757. <span class="phpdocumentor-signature__argument__name">$pattern</span>
  758. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  759. </dt>
  760. <dd class="phpdocumentor-argument-list__definition">
  761. </dd>
  762. </dl>
  763. <section class="phpdocumentor-attributes">
  764. <h5 class="phpdocumentor-elements__header" id="attributes">
  765. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_initMatrix#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  766. </h5>
  767. <dl class="phpdocumentor-argument-list">
  768. <dt class="phpdocumentor-argument-list__entry">
  769. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  770. </dt>
  771. <dd class="phpdocumentor-argument-list__entry">
  772. &#039;maskPatternProvider&#039;
  773. </dd>
  774. </dl>
  775. <dl class="phpdocumentor-argument-list">
  776. <dt class="phpdocumentor-argument-list__entry">
  777. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  778. </dt>
  779. </dl>
  780. </section>
  781. </article>
  782. <article
  783. class="phpdocumentor-element
  784. -method
  785. -public
  786. "
  787. >
  788. <h4 class="phpdocumentor-element__name" id="method_invalidDataException">
  789. invalidDataException()
  790. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_invalidDataException" class="headerlink"><i class="fas fa-link"></i></a>
  791. </h4>
  792. <aside class="phpdocumentor-element-found-in">
  793. <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>
  794. :
  795. <span class="phpdocumentor-element-found-in__line">255</span>
  796. </aside>
  797. <p class="phpdocumentor-summary">Tests if an exception is thrown when an invalid character is encountered</p>
  798. <code class="phpdocumentor-code phpdocumentor-signature ">
  799. <span class="phpdocumentor-signature__visibility">public</span>
  800. <span class="phpdocumentor-signature__name">invalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  801. <div class="phpdocumentor-label-line">
  802. </div>
  803. <section class="phpdocumentor-attributes">
  804. <h5 class="phpdocumentor-elements__header" id="attributes">
  805. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_invalidDataException#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\Test">Test</abbr>]
  810. </dt>
  811. </dl>
  812. </section>
  813. </article>
  814. <article
  815. class="phpdocumentor-element
  816. -method
  817. -public
  818. "
  819. >
  820. <h4 class="phpdocumentor-element__name" id="method_invalidDataOnEmptyException">
  821. invalidDataOnEmptyException()
  822. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_invalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  823. </h4>
  824. <aside class="phpdocumentor-element-found-in">
  825. <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>
  826. :
  827. <span class="phpdocumentor-element-found-in__line">266</span>
  828. </aside>
  829. <p class="phpdocumentor-summary">Tests if an exception is thrown if the given string is empty</p>
  830. <code class="phpdocumentor-code phpdocumentor-signature ">
  831. <span class="phpdocumentor-signature__visibility">public</span>
  832. <span class="phpdocumentor-signature__name">invalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  833. <div class="phpdocumentor-label-line">
  834. </div>
  835. <section class="phpdocumentor-attributes">
  836. <h5 class="phpdocumentor-elements__header" id="attributes">
  837. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_invalidDataOnEmptyException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  838. </h5>
  839. <dl class="phpdocumentor-argument-list">
  840. <dt class="phpdocumentor-argument-list__entry">
  841. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  842. </dt>
  843. </dl>
  844. </section>
  845. </article>
  846. <article
  847. class="phpdocumentor-element
  848. -method
  849. -public
  850. -static "
  851. >
  852. <h4 class="phpdocumentor-element__name" id="method_kanjiProvider">
  853. kanjiProvider()
  854. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_kanjiProvider" class="headerlink"><i class="fas fa-link"></i></a>
  855. </h4>
  856. <aside class="phpdocumentor-element-found-in">
  857. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  858. :
  859. <span class="phpdocumentor-element-found-in__line">49</span>
  860. </aside>
  861. <p class="phpdocumentor-summary">lists the valid SJIS kanji</p>
  862. <code class="phpdocumentor-code phpdocumentor-signature ">
  863. <span class="phpdocumentor-signature__visibility">public</span>
  864. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">kanjiProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span></code>
  865. <div class="phpdocumentor-label-line">
  866. </div>
  867. <section>
  868. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  869. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  870. </section>
  871. </article>
  872. <article
  873. class="phpdocumentor-element
  874. -method
  875. -public
  876. -static "
  877. >
  878. <h4 class="phpdocumentor-element__name" id="method_maskPatternProvider">
  879. maskPatternProvider()
  880. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  881. </h4>
  882. <aside class="phpdocumentor-element-found-in">
  883. <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>
  884. :
  885. <span class="phpdocumentor-element-found-in__line">45</span>
  886. </aside>
  887. <code class="phpdocumentor-code phpdocumentor-signature ">
  888. <span class="phpdocumentor-signature__visibility">public</span>
  889. <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>
  890. <div class="phpdocumentor-label-line">
  891. </div>
  892. <section>
  893. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  894. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  895. </section>
  896. </article>
  897. <article
  898. class="phpdocumentor-element
  899. -method
  900. -public
  901. "
  902. >
  903. <h4 class="phpdocumentor-element__name" id="method_maxLength">
  904. maxLength()
  905. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLength" class="headerlink"><i class="fas fa-link"></i></a>
  906. </h4>
  907. <aside class="phpdocumentor-element-found-in">
  908. <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>
  909. :
  910. <span class="phpdocumentor-element-found-in__line">177</span>
  911. </aside>
  912. <code class="phpdocumentor-code phpdocumentor-signature ">
  913. <span class="phpdocumentor-signature__visibility">public</span>
  914. <span class="phpdocumentor-signature__name">maxLength</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>
  915. <div class="phpdocumentor-label-line">
  916. </div>
  917. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  918. <dl class="phpdocumentor-argument-list">
  919. <dt class="phpdocumentor-argument-list__entry">
  920. <span class="phpdocumentor-signature__argument__name">$version</span>
  921. : <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>
  922. </dt>
  923. <dd class="phpdocumentor-argument-list__definition">
  924. </dd>
  925. <dt class="phpdocumentor-argument-list__entry">
  926. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  927. : <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>
  928. </dt>
  929. <dd class="phpdocumentor-argument-list__definition">
  930. </dd>
  931. <dt class="phpdocumentor-argument-list__entry">
  932. <span class="phpdocumentor-signature__argument__name">$str</span>
  933. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  934. </dt>
  935. <dd class="phpdocumentor-argument-list__definition">
  936. </dd>
  937. </dl>
  938. <section class="phpdocumentor-attributes">
  939. <h5 class="phpdocumentor-elements__header" id="attributes">
  940. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLength#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  941. </h5>
  942. <dl class="phpdocumentor-argument-list">
  943. <dt class="phpdocumentor-argument-list__entry">
  944. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  945. </dt>
  946. <dd class="phpdocumentor-argument-list__entry">
  947. &#039;maxLengthProvider&#039;
  948. </dd>
  949. </dl>
  950. <dl class="phpdocumentor-argument-list">
  951. <dt class="phpdocumentor-argument-list__entry">
  952. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  953. </dt>
  954. </dl>
  955. </section>
  956. </article>
  957. <article
  958. class="phpdocumentor-element
  959. -method
  960. -public
  961. "
  962. >
  963. <h4 class="phpdocumentor-element__name" id="method_maxLengthOverflowException">
  964. maxLengthOverflowException()
  965. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthOverflowException" class="headerlink"><i class="fas fa-link"></i></a>
  966. </h4>
  967. <aside class="phpdocumentor-element-found-in">
  968. <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>
  969. :
  970. <span class="phpdocumentor-element-found-in__line">227</span>
  971. </aside>
  972. <p class="phpdocumentor-summary">Tests if an exception is thrown on data overflow</p>
  973. <code class="phpdocumentor-code phpdocumentor-signature ">
  974. <span class="phpdocumentor-signature__visibility">public</span>
  975. <span class="phpdocumentor-signature__name">maxLengthOverflowException</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>
  976. <div class="phpdocumentor-label-line">
  977. </div>
  978. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  979. <dl class="phpdocumentor-argument-list">
  980. <dt class="phpdocumentor-argument-list__entry">
  981. <span class="phpdocumentor-signature__argument__name">$version</span>
  982. : <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>
  983. </dt>
  984. <dd class="phpdocumentor-argument-list__definition">
  985. </dd>
  986. <dt class="phpdocumentor-argument-list__entry">
  987. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  988. : <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>
  989. </dt>
  990. <dd class="phpdocumentor-argument-list__definition">
  991. </dd>
  992. <dt class="phpdocumentor-argument-list__entry">
  993. <span class="phpdocumentor-signature__argument__name">$str</span>
  994. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  995. </dt>
  996. <dd class="phpdocumentor-argument-list__definition">
  997. </dd>
  998. <dt class="phpdocumentor-argument-list__entry">
  999. <span class="phpdocumentor-signature__argument__name">$str1</span>
  1000. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1001. </dt>
  1002. <dd class="phpdocumentor-argument-list__definition">
  1003. </dd>
  1004. </dl>
  1005. <section class="phpdocumentor-attributes">
  1006. <h5 class="phpdocumentor-elements__header" id="attributes">
  1007. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthOverflowException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  1008. </h5>
  1009. <dl class="phpdocumentor-argument-list">
  1010. <dt class="phpdocumentor-argument-list__entry">
  1011. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  1012. </dt>
  1013. <dd class="phpdocumentor-argument-list__entry">
  1014. &#039;maxLengthProvider&#039;
  1015. </dd>
  1016. </dl>
  1017. <dl class="phpdocumentor-argument-list">
  1018. <dt class="phpdocumentor-argument-list__entry">
  1019. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  1020. </dt>
  1021. </dl>
  1022. </section>
  1023. </article>
  1024. <article
  1025. class="phpdocumentor-element
  1026. -method
  1027. -public
  1028. -static "
  1029. >
  1030. <h4 class="phpdocumentor-element__name" id="method_maxLengthProvider">
  1031. maxLengthProvider()
  1032. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider" class="headerlink"><i class="fas fa-link"></i></a>
  1033. </h4>
  1034. <aside class="phpdocumentor-element-found-in">
  1035. <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>
  1036. :
  1037. <span class="phpdocumentor-element-found-in__line">146</span>
  1038. </aside>
  1039. <p class="phpdocumentor-summary">Generates test data for each data mode:</p>
  1040. <code class="phpdocumentor-code phpdocumentor-signature ">
  1041. <span class="phpdocumentor-signature__visibility">public</span>
  1042. <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>
  1043. <div class="phpdocumentor-label-line">
  1044. </div>
  1045. <section class="phpdocumentor-description"><ul>
  1046. <li>version</li>
  1047. <li>ECC level</li>
  1048. <li>a string that contains the maximum amount of characters for the given mode</li>
  1049. <li>a string that contains characters for the given mode and that exceeds the maximum length by one/two character(s)</li>
  1050. <li>the maximum allowed character length</li>
  1051. </ul>
  1052. </section>
  1053. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1054. Tags
  1055. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1056. </h5>
  1057. <dl class="phpdocumentor-tag-list">
  1058. <dt class="phpdocumentor-tag-list__entry">
  1059. <span class="phpdocumentor-tag__name">throws</span>
  1060. </dt>
  1061. <dd class="phpdocumentor-tag-list__definition">
  1062. <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span>
  1063. </dd>
  1064. </dl>
  1065. <section>
  1066. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1067. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  1068. </section>
  1069. </article>
  1070. <article
  1071. class="phpdocumentor-element
  1072. -method
  1073. -public
  1074. -static "
  1075. >
  1076. <h4 class="phpdocumentor-element__name" id="method_stringValidateProvider">
  1077. stringValidateProvider()
  1078. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_stringValidateProvider" class="headerlink"><i class="fas fa-link"></i></a>
  1079. </h4>
  1080. <aside class="phpdocumentor-element-found-in">
  1081. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  1082. :
  1083. <span class="phpdocumentor-element-found-in__line">35</span>
  1084. </aside>
  1085. <p class="phpdocumentor-summary">isKanji() should pass on Kanji/SJIS characters and fail on everything else</p>
  1086. <code class="phpdocumentor-code phpdocumentor-signature ">
  1087. <span class="phpdocumentor-signature__visibility">public</span>
  1088. <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>
  1089. <div class="phpdocumentor-label-line">
  1090. </div>
  1091. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1092. Tags
  1093. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_stringValidateProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1094. </h5>
  1095. <dl class="phpdocumentor-tag-list">
  1096. <dt class="phpdocumentor-tag-list__entry">
  1097. <span class="phpdocumentor-tag__name">phpstan-return</span>
  1098. </dt>
  1099. <dd class="phpdocumentor-tag-list__definition">
  1100. <section class="phpdocumentor-description"><p>array&lt;int, array{0: string, 1: bool}&gt;</p>
  1101. </section>
  1102. </dd>
  1103. </dl>
  1104. <section>
  1105. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1106. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  1107. </section>
  1108. </article>
  1109. <article
  1110. class="phpdocumentor-element
  1111. -method
  1112. -public
  1113. "
  1114. >
  1115. <h4 class="phpdocumentor-element__name" id="method_validateSJIS">
  1116. validateSJIS()
  1117. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_validateSJIS" class="headerlink"><i class="fas fa-link"></i></a>
  1118. </h4>
  1119. <aside class="phpdocumentor-element-found-in">
  1120. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  1121. :
  1122. <span class="phpdocumentor-element-found-in__line">98</span>
  1123. </aside>
  1124. <code class="phpdocumentor-code phpdocumentor-signature ">
  1125. <span class="phpdocumentor-signature__visibility">public</span>
  1126. <span class="phpdocumentor-signature__name">validateSJIS</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>
  1127. <div class="phpdocumentor-label-line">
  1128. </div>
  1129. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1130. <dl class="phpdocumentor-argument-list">
  1131. <dt class="phpdocumentor-argument-list__entry">
  1132. <span class="phpdocumentor-signature__argument__name">$chr</span>
  1133. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1134. </dt>
  1135. <dd class="phpdocumentor-argument-list__definition">
  1136. </dd>
  1137. </dl>
  1138. <section class="phpdocumentor-attributes">
  1139. <h5 class="phpdocumentor-elements__header" id="attributes">
  1140. Attributes <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_validateSJIS#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  1141. </h5>
  1142. <dl class="phpdocumentor-argument-list">
  1143. <dt class="phpdocumentor-argument-list__entry">
  1144. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  1145. </dt>
  1146. <dd class="phpdocumentor-argument-list__entry">
  1147. &#039;kanjiProvider&#039;
  1148. </dd>
  1149. </dl>
  1150. <dl class="phpdocumentor-argument-list">
  1151. <dt class="phpdocumentor-argument-list__entry">
  1152. #[<abbr title="\PHPUnit\Framework\Attributes\Group">Group</abbr>]
  1153. </dt>
  1154. <dd class="phpdocumentor-argument-list__entry">
  1155. &#039;slow&#039;
  1156. </dd>
  1157. </dl>
  1158. <dl class="phpdocumentor-argument-list">
  1159. <dt class="phpdocumentor-argument-list__entry">
  1160. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  1161. </dt>
  1162. </dl>
  1163. </section>
  1164. </article>
  1165. <article
  1166. class="phpdocumentor-element
  1167. -method
  1168. -public
  1169. "
  1170. >
  1171. <h4 class="phpdocumentor-element__name" id="method_validateString">
  1172. validateString()
  1173. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_validateString" class="headerlink"><i class="fas fa-link"></i></a>
  1174. </h4>
  1175. <aside class="phpdocumentor-element-found-in">
  1176. <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>
  1177. :
  1178. <span class="phpdocumentor-element-found-in__line">73</span>
  1179. </aside>
  1180. <p class="phpdocumentor-summary">Tests if a string is properly validated for the respective data mode</p>
  1181. <code class="phpdocumentor-code phpdocumentor-signature ">
  1182. <span class="phpdocumentor-signature__visibility">public</span>
  1183. <span class="phpdocumentor-signature__name">validateString</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>
  1184. <div class="phpdocumentor-label-line">
  1185. </div>
  1186. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1187. <dl class="phpdocumentor-argument-list">
  1188. <dt class="phpdocumentor-argument-list__entry">
  1189. <span class="phpdocumentor-signature__argument__name">$string</span>
  1190. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1191. </dt>
  1192. <dd class="phpdocumentor-argument-list__definition">
  1193. </dd>
  1194. <dt class="phpdocumentor-argument-list__entry">
  1195. <span class="phpdocumentor-signature__argument__name">$expected</span>
  1196. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1197. </dt>
  1198. <dd class="phpdocumentor-argument-list__definition">
  1199. </dd>
  1200. </dl>
  1201. <section class="phpdocumentor-attributes">
  1202. <h5 class="phpdocumentor-elements__header" id="attributes">
  1203. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_validateString#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  1204. </h5>
  1205. <dl class="phpdocumentor-argument-list">
  1206. <dt class="phpdocumentor-argument-list__entry">
  1207. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  1208. </dt>
  1209. <dd class="phpdocumentor-argument-list__entry">
  1210. &#039;stringValidateProvider&#039;
  1211. </dd>
  1212. </dl>
  1213. <dl class="phpdocumentor-argument-list">
  1214. <dt class="phpdocumentor-argument-list__entry">
  1215. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  1216. </dt>
  1217. </dl>
  1218. </section>
  1219. </article>
  1220. <article
  1221. class="phpdocumentor-element
  1222. -method
  1223. -public
  1224. -static "
  1225. >
  1226. <h4 class="phpdocumentor-element__name" id="method_versionBreakpointProvider">
  1227. versionBreakpointProvider()
  1228. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider" class="headerlink"><i class="fas fa-link"></i></a>
  1229. </h4>
  1230. <aside class="phpdocumentor-element-found-in">
  1231. <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>
  1232. :
  1233. <span class="phpdocumentor-element-found-in__line">112</span>
  1234. </aside>
  1235. <p class="phpdocumentor-summary">returns versions within the version breakpoints 1-9, 10-26 and 27-40</p>
  1236. <code class="phpdocumentor-code phpdocumentor-signature ">
  1237. <span class="phpdocumentor-signature__visibility">public</span>
  1238. <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>
  1239. <div class="phpdocumentor-label-line">
  1240. </div>
  1241. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1242. Tags
  1243. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1244. </h5>
  1245. <dl class="phpdocumentor-tag-list">
  1246. <dt class="phpdocumentor-tag-list__entry">
  1247. <span class="phpdocumentor-tag__name">phpstan-return</span>
  1248. </dt>
  1249. <dd class="phpdocumentor-tag-list__definition">
  1250. <section class="phpdocumentor-description"><p>array&lt;string, array{0: int}&gt;</p>
  1251. </section>
  1252. </dd>
  1253. </dl>
  1254. <section>
  1255. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1256. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  1257. </section>
  1258. </article>
  1259. <article
  1260. class="phpdocumentor-element
  1261. -method
  1262. -protected
  1263. -static "
  1264. >
  1265. <h4 class="phpdocumentor-element__name" id="method_getDataModeInterface">
  1266. getDataModeInterface()
  1267. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_getDataModeInterface" class="headerlink"><i class="fas fa-link"></i></a>
  1268. </h4>
  1269. <aside class="phpdocumentor-element-found-in">
  1270. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  1271. :
  1272. <span class="phpdocumentor-element-found-in__line">26</span>
  1273. </aside>
  1274. <code class="phpdocumentor-code phpdocumentor-signature ">
  1275. <span class="phpdocumentor-signature__visibility">protected</span>
  1276. <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>
  1277. <div class="phpdocumentor-label-line">
  1278. </div>
  1279. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1280. <dl class="phpdocumentor-argument-list">
  1281. <dt class="phpdocumentor-argument-list__entry">
  1282. <span class="phpdocumentor-signature__argument__name">$data</span>
  1283. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1284. </dt>
  1285. <dd class="phpdocumentor-argument-list__definition">
  1286. </dd>
  1287. </dl>
  1288. <section>
  1289. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1290. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  1291. </section>
  1292. </article>
  1293. <article
  1294. class="phpdocumentor-element
  1295. -method
  1296. -protected
  1297. "
  1298. >
  1299. <h4 class="phpdocumentor-element__name" id="method_setUp">
  1300. setUp()
  1301. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  1302. </h4>
  1303. <aside class="phpdocumentor-element-found-in">
  1304. <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>
  1305. :
  1306. <span class="phpdocumentor-element-found-in__line">35</span>
  1307. </aside>
  1308. <code class="phpdocumentor-code phpdocumentor-signature ">
  1309. <span class="phpdocumentor-signature__visibility">protected</span>
  1310. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1311. <div class="phpdocumentor-label-line">
  1312. </div>
  1313. </article>
  1314. </section>
  1315. <div class="phpdocumentor-modal" id="source-view">
  1316. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1317. <div class="phpdocumentor-modal-container">
  1318. <div class="phpdocumentor-modal-content">
  1319. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Data/KanjiTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1320. </div>
  1321. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1322. </div>
  1323. </div>
  1324. <script type="text/javascript">
  1325. (function () {
  1326. function loadExternalCodeSnippet(el, url, line) {
  1327. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1328. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1329. const language = 'php';
  1330. const code = document.createElement('code');
  1331. code.className = 'language-' + language;
  1332. pre.textContent = '';
  1333. pre.setAttribute('data-line', line)
  1334. code.textContent = 'Loading…';
  1335. pre.appendChild(code);
  1336. var xhr = new XMLHttpRequest();
  1337. xhr.open('GET', src, true);
  1338. xhr.onreadystatechange = function () {
  1339. if (xhr.readyState !== 4) {
  1340. return;
  1341. }
  1342. if (xhr.status < 400 && xhr.responseText) {
  1343. code.textContent = xhr.responseText;
  1344. Prism.highlightElement(code);
  1345. d=document.getElementsByClassName("line-numbers");
  1346. d[0].scrollTop = d[0].children[1].offsetTop;
  1347. return;
  1348. }
  1349. if (xhr.status === 404) {
  1350. code.textContent = '✖ Error: File could not be found';
  1351. return;
  1352. }
  1353. if (xhr.status >= 400) {
  1354. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1355. return;
  1356. }
  1357. code.textContent = '✖ Error: An unknown error occurred';
  1358. };
  1359. xhr.send(null);
  1360. });
  1361. }
  1362. const modalButtons = document.querySelectorAll("[data-modal]");
  1363. const openedAsLocalFile = window.location.protocol === 'file:';
  1364. if (modalButtons.length > 0 && openedAsLocalFile) {
  1365. console.warn(
  1366. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1367. 'browsers block XHR requests when a page is opened this way'
  1368. );
  1369. }
  1370. modalButtons.forEach(function (trigger) {
  1371. if (openedAsLocalFile) {
  1372. trigger.setAttribute("hidden", "hidden");
  1373. }
  1374. trigger.addEventListener("click", function (event) {
  1375. event.preventDefault();
  1376. const modal = document.getElementById(trigger.dataset.modal);
  1377. if (!modal) {
  1378. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1379. return;
  1380. }
  1381. modal.classList.add("phpdocumentor-modal__open");
  1382. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1383. const exits = modal.querySelectorAll("[data-exit-button]");
  1384. exits.forEach(function (exit) {
  1385. exit.addEventListener("click", function (event) {
  1386. event.preventDefault();
  1387. modal.classList.remove("phpdocumentor-modal__open");
  1388. });
  1389. });
  1390. });
  1391. });
  1392. })();
  1393. </script>
  1394. </article>
  1395. </section>
  1396. <section class="phpdocumentor-on-this-page__sidebar">
  1397. <section class="phpdocumentor-on-this-page__content">
  1398. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1399. <ul class="phpdocumentor-list -clean">
  1400. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1401. <li>
  1402. <ul class="phpdocumentor-list -clean">
  1403. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-constants">Constants</a></li>
  1404. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-properties">Properties</a></li>
  1405. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-methods">Methods</a></li>
  1406. </ul>
  1407. </li>
  1408. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  1409. <li>
  1410. <ul class="phpdocumentor-list -clean">
  1411. <li class=""><a href="classes/chillerlan-QRCodeTest-Traits-QRMaxLengthTrait.html#constant_MAX_LENGTH">MAX_LENGTH</a></li>
  1412. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#constant_testData">testData</a></li>
  1413. </ul>
  1414. </li>
  1415. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1416. <li>
  1417. <ul class="phpdocumentor-list -clean">
  1418. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode">$dataMode</a></li>
  1419. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData">$QRData</a></li>
  1420. </ul>
  1421. </li>
  1422. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1423. <li>
  1424. <ul class="phpdocumentor-list -clean">
  1425. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_binaryStringInvalid">binaryStringInvalid()</a></li>
  1426. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_decodeSegment">decodeSegment()</a></li>
  1427. <li class=""><a href="classes/chillerlan-QRCodeTest-Traits-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a></li>
  1428. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_getMinimumVersion">getMinimumVersion()</a></li>
  1429. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_getMinimumVersionException">getMinimumVersionException()</a></li>
  1430. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_initMatrix">initMatrix()</a></li>
  1431. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_invalidDataException">invalidDataException()</a></li>
  1432. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_invalidDataOnEmptyException">invalidDataOnEmptyException()</a></li>
  1433. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_kanjiProvider">kanjiProvider()</a></li>
  1434. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a></li>
  1435. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLength">maxLength()</a></li>
  1436. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthOverflowException">maxLengthOverflowException()</a></li>
  1437. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a></li>
  1438. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_stringValidateProvider">stringValidateProvider()</a></li>
  1439. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_validateSJIS">validateSJIS()</a></li>
  1440. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_validateString">validateString()</a></li>
  1441. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a></li>
  1442. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_getDataModeInterface">getDataModeInterface()</a></li>
  1443. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a></li>
  1444. </ul>
  1445. </li>
  1446. </ul>
  1447. </section>
  1448. </section>
  1449. </div>
  1450. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1451. <section class="phpdocumentor-search-results__dialog">
  1452. <header class="phpdocumentor-search-results__header">
  1453. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1454. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1455. </header>
  1456. <section class="phpdocumentor-search-results__body">
  1457. <ul class="phpdocumentor-search-results__entries"></ul>
  1458. </section>
  1459. </section>
  1460. </section>
  1461. </div>
  1462. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1463. </main>
  1464. <script>
  1465. cssVars({});
  1466. </script>
  1467. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1468. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1469. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1470. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1471. </body>
  1472. </html>