chillerlan-QRCodeTest-Data-HanziTest.html 83 KB

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