chillerlan-QRCodeTest-Data-HanziTest.html 92 KB

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