chillerlan-QRCodeTest-Data-HanziTest.html 85 KB

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