chillerlan-QRCodeTest-Data-NumberTest.html 93 KB

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