chillerlan-QRCodeTest-Data-ByteTest.html 80 KB

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