chillerlan-QRCodeTest-Data-HanziTest.html 84 KB

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