chillerlan-QRCodeTest-Data-AlphaNumTest.html 79 KB

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