chillerlan-QRCodeTest-Data-ByteTest.html 77 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=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. <h4 class="phpdocumentor-sidebar__root-namespace">
  89. <a href="namespaces/output.html" class="">Output</a>
  90. </h4>
  91. </section>
  92. <section class="phpdocumentor-sidebar__category -packages">
  93. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  94. <h4 class="phpdocumentor-sidebar__root-namespace">
  95. <a href="packages/Application.html" class="">Application</a>
  96. </h4>
  97. </section>
  98. <section class="phpdocumentor-sidebar__category -reports">
  99. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  100. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  101. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  102. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  103. </section>
  104. <section class="phpdocumentor-sidebar__category -indices">
  105. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  106. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  107. </section>
  108. </aside>
  109. <div class="phpdocumentor-column -nine phpdocumentor-content">
  110. <section>
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  113. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  114. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  115. </ul>
  116. <article class="phpdocumentor-element -class">
  117. <h2 class="phpdocumentor-content__title">
  118. ByteTest
  119. <span class="phpdocumentor-element__extends">
  120. extends <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Data\DataInterfaceTestAbstract">DataInterfaceTestAbstract</abbr></a>
  121. </span>
  122. <div class="phpdocumentor-element__package">
  123. in package
  124. <ul class="phpdocumentor-breadcrumbs">
  125. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  126. </ul>
  127. </div>
  128. </h2>
  129. <div class="phpdocumentor-label-line">
  130. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  131. </div>
  132. <aside class="phpdocumentor-element-found-in">
  133. <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>
  134. :
  135. <span class="phpdocumentor-element-found-in__line">19</span>
  136. </aside>
  137. <p class="phpdocumentor-summary">Tests the Byte class</p>
  138. <h3 id="toc">
  139. Table of Contents
  140. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  141. </h3>
  142. <h4 id="toc-constants">
  143. Constants
  144. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  145. </h4>
  146. <dl class="phpdocumentor-table-of-contents">
  147. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  148. <a class="" href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#constant_testData">testData</a>
  149. <span>
  150. &nbsp;= &#039;[¯\_(ツ)_/¯]&#039; </span>
  151. </dt>
  152. </dl>
  153. <h4 id="toc-properties">
  154. Properties
  155. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  156. </h4>
  157. <dl class="phpdocumentor-table-of-contents">
  158. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  159. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode">$dataMode</a>
  160. <span>
  161. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  162. </dt>
  163. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  164. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData">$QRData</a>
  165. <span>
  166. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a> </span>
  167. </dt>
  168. </dl>
  169. <h4 id="toc-methods">
  170. Methods
  171. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  172. </h4>
  173. <dl class="phpdocumentor-table-of-contents">
  174. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  175. <a class="" href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  176. <span>
  177. &nbsp;: int </span>
  178. </dt>
  179. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  180. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  181. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a>
  182. <span>
  183. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  184. </dt>
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a>
  187. <span>
  188. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  189. </dt>
  190. <dd>Generates test data for each data mode:</dd>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a class="" href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_stringValidateProvider">stringValidateProvider()</a>
  193. <span>
  194. &nbsp;: array&lt;string|int, mixed&gt; </span>
  195. </dt>
  196. <dd>isByte() passses any binary string and only fails on empty strings</dd>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a class="" href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_testBinaryStringInvalid">testBinaryStringInvalid()</a>
  199. <span>
  200. &nbsp;: void </span>
  201. </dt>
  202. <dd>Tests if a random binary string is properly validated as false</dd>
  203. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  204. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment">testDecodeSegment()</a>
  205. <span>
  206. &nbsp;: void </span>
  207. </dt>
  208. <dd>Tests decoding a data segment from a given BitBuffer</dd>
  209. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  210. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a>
  211. <span>
  212. &nbsp;: void </span>
  213. </dt>
  214. <dd>Tests getting the minimum QR version for the given data</dd>
  215. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  216. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a>
  217. <span>
  218. &nbsp;: void </span>
  219. </dt>
  220. <dd>Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</dd>
  221. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  222. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a>
  223. <span>
  224. &nbsp;: void </span>
  225. </dt>
  226. <dd>Tests initializing the data matrix</dd>
  227. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  228. <a class="" href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_testInvalidDataException">testInvalidDataException()</a>
  229. <span>
  230. &nbsp;: void </span>
  231. </dt>
  232. <dd>Tests if an exception is thrown when an invalid character is encountered</dd>
  233. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  234. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a>
  235. <span>
  236. &nbsp;: void </span>
  237. </dt>
  238. <dd>Tests if an exception is thrown if the given string is empty</dd>
  239. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  240. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength">testMaxLength()</a>
  241. <span>
  242. &nbsp;: void </span>
  243. </dt>
  244. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  245. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException">testMaxLengthOverflowException()</a>
  246. <span>
  247. &nbsp;: void </span>
  248. </dt>
  249. <dd>Tests if an exception is thrown on data overflow</dd>
  250. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  251. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString">testValidateString()</a>
  252. <span>
  253. &nbsp;: void </span>
  254. </dt>
  255. <dd>Tests if a string is properly validated for the respective data mode</dd>
  256. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  257. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a>
  258. <span>
  259. &nbsp;: array&lt;string|int, mixed&gt; </span>
  260. </dt>
  261. <dd>returns versions within the version breakpoints 1-9, 10-26 and 27-40</dd>
  262. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  263. <a class="" href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_getDataModeInterface">getDataModeInterface()</a>
  264. <span>
  265. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  266. </dt>
  267. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  268. <a class="" href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a>
  269. <span>
  270. &nbsp;: void </span>
  271. </dt>
  272. </dl>
  273. <section class="phpdocumentor-constants">
  274. <h3 class="phpdocumentor-elements__header" id="constants">
  275. Constants
  276. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  277. </h3>
  278. <article class="phpdocumentor-element -constant -protected ">
  279. <h4 class="phpdocumentor-element__name" id="constant_testData">
  280. testData
  281. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#constant_testData" class="headerlink"><i class="fas fa-link"></i></a>
  282. </h4>
  283. <aside class="phpdocumentor-element-found-in">
  284. <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>
  285. :
  286. <span class="phpdocumentor-element-found-in__line">21</span>
  287. </aside>
  288. <code class="phpdocumentor-signature phpdocumentor-code ">
  289. <span class="phpdocumentor-signature__visibility">protected</span>
  290. <span class="phpdocumentor-signature__type">mixed</span>
  291. <span class="phpdocumentor-signature__name">testData</span>
  292. = <span class="phpdocumentor-signature__default-value">&#039;[¯\_(ツ)_/¯]&#039;</span>
  293. </code>
  294. </article>
  295. </section>
  296. <section class="phpdocumentor-properties">
  297. <h3 class="phpdocumentor-elements__header" id="properties">
  298. Properties
  299. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  300. </h3>
  301. <article
  302. class="
  303. phpdocumentor-element
  304. -property
  305. -protected
  306. "
  307. >
  308. <h4 class="phpdocumentor-element__name" id="property_dataMode">
  309. $dataMode
  310. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode" class="headerlink"><i class="fas fa-link"></i></a>
  311. <span class="phpdocumentor-element__modifiers">
  312. </span>
  313. </h4>
  314. <aside class="phpdocumentor-element-found-in">
  315. <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>
  316. :
  317. <span class="phpdocumentor-element-found-in__line">30</span>
  318. </aside>
  319. <code class="phpdocumentor-code phpdocumentor-signature ">
  320. <span class="phpdocumentor-signature__visibility">protected</span>
  321. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  322. <span class="phpdocumentor-signature__name">$dataMode</span>
  323. </code>
  324. </article>
  325. <article
  326. class="
  327. phpdocumentor-element
  328. -property
  329. -protected
  330. "
  331. >
  332. <h4 class="phpdocumentor-element__name" id="property_QRData">
  333. $QRData
  334. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData" class="headerlink"><i class="fas fa-link"></i></a>
  335. <span class="phpdocumentor-element__modifiers">
  336. </span>
  337. </h4>
  338. <aside class="phpdocumentor-element-found-in">
  339. <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>
  340. :
  341. <span class="phpdocumentor-element-found-in__line">29</span>
  342. </aside>
  343. <code class="phpdocumentor-code phpdocumentor-signature ">
  344. <span class="phpdocumentor-signature__visibility">protected</span>
  345. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a></span>
  346. <span class="phpdocumentor-signature__name">$QRData</span>
  347. </code>
  348. </article>
  349. </section>
  350. <section class="phpdocumentor-methods">
  351. <h3 class="phpdocumentor-elements__header" id="methods">
  352. Methods
  353. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  354. </h3>
  355. <article
  356. class="phpdocumentor-element
  357. -method
  358. -public
  359. -static "
  360. >
  361. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  362. getMaxLengthForMode()
  363. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  364. </h4>
  365. <aside class="phpdocumentor-element-found-in">
  366. <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>
  367. :
  368. <span class="phpdocumentor-element-found-in__line">79</span>
  369. </aside>
  370. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  371. <code class="phpdocumentor-code phpdocumentor-signature ">
  372. <span class="phpdocumentor-signature__visibility">public</span>
  373. <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>
  374. <div class="phpdocumentor-label-line">
  375. </div>
  376. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  377. <dl class="phpdocumentor-argument-list">
  378. <dt class="phpdocumentor-argument-list__entry">
  379. <span class="phpdocumentor-signature__argument__name">$mode</span>
  380. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  381. </dt>
  382. <dd class="phpdocumentor-argument-list__definition">
  383. </dd>
  384. <dt class="phpdocumentor-argument-list__entry">
  385. <span class="phpdocumentor-signature__argument__name">$version</span>
  386. : <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>
  387. </dt>
  388. <dd class="phpdocumentor-argument-list__definition">
  389. </dd>
  390. <dt class="phpdocumentor-argument-list__entry">
  391. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  392. : <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>
  393. </dt>
  394. <dd class="phpdocumentor-argument-list__definition">
  395. </dd>
  396. </dl>
  397. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  398. Tags
  399. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode#tags" class="headerlink"><i class="fas fa-link"></i></a>
  400. </h5>
  401. <dl class="phpdocumentor-tag-list">
  402. <dt class="phpdocumentor-tag-list__entry">
  403. <span class="phpdocumentor-tag__name">throws</span>
  404. </dt>
  405. <dd class="phpdocumentor-tag-list__definition">
  406. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  407. </dd>
  408. <dt class="phpdocumentor-tag-list__entry">
  409. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  410. </dt>
  411. <dd class="phpdocumentor-tag-list__definition">
  412. </dd>
  413. </dl>
  414. <section>
  415. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  416. <span class="phpdocumentor-signature__response_type">int</span>
  417. </section>
  418. </article>
  419. <article
  420. class="phpdocumentor-element
  421. -method
  422. -public
  423. -static "
  424. >
  425. <h4 class="phpdocumentor-element__name" id="method_maskPatternProvider">
  426. maskPatternProvider()
  427. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  428. </h4>
  429. <aside class="phpdocumentor-element-found-in">
  430. <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>
  431. :
  432. <span class="phpdocumentor-element-found-in__line">44</span>
  433. </aside>
  434. <code class="phpdocumentor-code phpdocumentor-signature ">
  435. <span class="phpdocumentor-signature__visibility">public</span>
  436. <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>
  437. <div class="phpdocumentor-label-line">
  438. </div>
  439. <section>
  440. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  441. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  442. </section>
  443. </article>
  444. <article
  445. class="phpdocumentor-element
  446. -method
  447. -public
  448. -static "
  449. >
  450. <h4 class="phpdocumentor-element__name" id="method_maxLengthProvider">
  451. maxLengthProvider()
  452. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider" class="headerlink"><i class="fas fa-link"></i></a>
  453. </h4>
  454. <aside class="phpdocumentor-element-found-in">
  455. <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>
  456. :
  457. <span class="phpdocumentor-element-found-in__line">118</span>
  458. </aside>
  459. <p class="phpdocumentor-summary">Generates test data for each data mode:</p>
  460. <code class="phpdocumentor-code phpdocumentor-signature ">
  461. <span class="phpdocumentor-signature__visibility">public</span>
  462. <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>
  463. <div class="phpdocumentor-label-line">
  464. </div>
  465. <section class="phpdocumentor-description"><ul>
  466. <li>version</li>
  467. <li>ECC level</li>
  468. <li>a string that contains the maximum amount of characters for the given mode</li>
  469. <li>a string that contains characters for the given mode and that exceeds the maximum length by one/two character(s)</li>
  470. <li>the maximum allowed character length</li>
  471. </ul>
  472. </section>
  473. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  474. Tags
  475. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  476. </h5>
  477. <dl class="phpdocumentor-tag-list">
  478. <dt class="phpdocumentor-tag-list__entry">
  479. <span class="phpdocumentor-tag__name">throws</span>
  480. </dt>
  481. <dd class="phpdocumentor-tag-list__definition">
  482. <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span>
  483. </dd>
  484. </dl>
  485. <section>
  486. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  487. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  488. </section>
  489. </article>
  490. <article
  491. class="phpdocumentor-element
  492. -method
  493. -public
  494. -static "
  495. >
  496. <h4 class="phpdocumentor-element__name" id="method_stringValidateProvider">
  497. stringValidateProvider()
  498. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_stringValidateProvider" class="headerlink"><i class="fas fa-link"></i></a>
  499. </h4>
  500. <aside class="phpdocumentor-element-found-in">
  501. <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>
  502. :
  503. <span class="phpdocumentor-element-found-in__line">30</span>
  504. </aside>
  505. <p class="phpdocumentor-summary">isByte() passses any binary string and only fails on empty strings</p>
  506. <code class="phpdocumentor-code phpdocumentor-signature ">
  507. <span class="phpdocumentor-signature__visibility">public</span>
  508. <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>
  509. <div class="phpdocumentor-label-line">
  510. </div>
  511. <section>
  512. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  513. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  514. </section>
  515. </article>
  516. <article
  517. class="phpdocumentor-element
  518. -method
  519. -public
  520. "
  521. >
  522. <h4 class="phpdocumentor-element__name" id="method_testBinaryStringInvalid">
  523. testBinaryStringInvalid()
  524. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_testBinaryStringInvalid" 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/ByteTest.php"><a href="files/tests-data-bytetest.html"><abbr title="tests/Data/ByteTest.php">ByteTest.php</abbr></a></abbr>
  528. :
  529. <span class="phpdocumentor-element-found-in__line">49</span>
  530. </aside>
  531. <p class="phpdocumentor-summary">Tests if a random binary string is properly validated as false</p>
  532. <code class="phpdocumentor-code phpdocumentor-signature ">
  533. <span class="phpdocumentor-signature__visibility">public</span>
  534. <span class="phpdocumentor-signature__name">testBinaryStringInvalid</span><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-tag-list__heading" id="tags">
  538. Tags
  539. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_testBinaryStringInvalid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  540. </h5>
  541. <dl class="phpdocumentor-tag-list">
  542. <dt class="phpdocumentor-tag-list__entry">
  543. <span class="phpdocumentor-tag__name">inheritDoc</span>
  544. </dt>
  545. <dd class="phpdocumentor-tag-list__definition">
  546. </dd>
  547. </dl>
  548. </article>
  549. <article
  550. class="phpdocumentor-element
  551. -method
  552. -public
  553. "
  554. >
  555. <h4 class="phpdocumentor-element__name" id="method_testDecodeSegment">
  556. testDecodeSegment()
  557. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  558. </h4>
  559. <aside class="phpdocumentor-element-found-in">
  560. <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>
  561. :
  562. <span class="phpdocumentor-element-found-in__line">92</span>
  563. </aside>
  564. <p class="phpdocumentor-summary">Tests decoding a data segment from a given BitBuffer</p>
  565. <code class="phpdocumentor-code phpdocumentor-signature ">
  566. <span class="phpdocumentor-signature__visibility">public</span>
  567. <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>
  568. <div class="phpdocumentor-label-line">
  569. </div>
  570. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  571. <dl class="phpdocumentor-argument-list">
  572. <dt class="phpdocumentor-argument-list__entry">
  573. <span class="phpdocumentor-signature__argument__name">$version</span>
  574. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  575. </dt>
  576. <dd class="phpdocumentor-argument-list__definition">
  577. </dd>
  578. </dl>
  579. <section class="phpdocumentor-attributes">
  580. <h5 class="phpdocumentor-elements__header" id="attributes">
  581. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  582. </h5>
  583. <dl class="phpdocumentor-argument-list">
  584. <dt class="phpdocumentor-argument-list__entry">
  585. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  586. </dt>
  587. <dd class="phpdocumentor-argument-list__entry">
  588. &#039;versionBreakpointProvider&#039;
  589. </dd>
  590. </dl>
  591. </section>
  592. </article>
  593. <article
  594. class="phpdocumentor-element
  595. -method
  596. -public
  597. "
  598. >
  599. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersion">
  600. testGetMinimumVersion()
  601. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  602. </h4>
  603. <aside class="phpdocumentor-element-found-in">
  604. <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>
  605. :
  606. <span class="phpdocumentor-element-found-in__line">167</span>
  607. </aside>
  608. <p class="phpdocumentor-summary">Tests getting the minimum QR version for the given data</p>
  609. <code class="phpdocumentor-code phpdocumentor-signature ">
  610. <span class="phpdocumentor-signature__visibility">public</span>
  611. <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>
  612. <div class="phpdocumentor-label-line">
  613. </div>
  614. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  615. <dl class="phpdocumentor-argument-list">
  616. <dt class="phpdocumentor-argument-list__entry">
  617. <span class="phpdocumentor-signature__argument__name">$version</span>
  618. : <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>
  619. </dt>
  620. <dd class="phpdocumentor-argument-list__definition">
  621. </dd>
  622. <dt class="phpdocumentor-argument-list__entry">
  623. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  624. : <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>
  625. </dt>
  626. <dd class="phpdocumentor-argument-list__definition">
  627. </dd>
  628. <dt class="phpdocumentor-argument-list__entry">
  629. <span class="phpdocumentor-signature__argument__name">$str</span>
  630. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  631. </dt>
  632. <dd class="phpdocumentor-argument-list__definition">
  633. </dd>
  634. </dl>
  635. <section class="phpdocumentor-attributes">
  636. <h5 class="phpdocumentor-elements__header" id="attributes">
  637. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  638. </h5>
  639. <dl class="phpdocumentor-argument-list">
  640. <dt class="phpdocumentor-argument-list__entry">
  641. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  642. </dt>
  643. <dd class="phpdocumentor-argument-list__entry">
  644. &#039;maxLengthProvider&#039;
  645. </dd>
  646. </dl>
  647. </section>
  648. </article>
  649. <article
  650. class="phpdocumentor-element
  651. -method
  652. -public
  653. "
  654. >
  655. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersionException">
  656. testGetMinimumVersionException()
  657. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException" class="headerlink"><i class="fas fa-link"></i></a>
  658. </h4>
  659. <aside class="phpdocumentor-element-found-in">
  660. <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>
  661. :
  662. <span class="phpdocumentor-element-found-in__line">213</span>
  663. </aside>
  664. <p class="phpdocumentor-summary">Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</p>
  665. <code class="phpdocumentor-code phpdocumentor-signature ">
  666. <span class="phpdocumentor-signature__visibility">public</span>
  667. <span class="phpdocumentor-signature__name">testGetMinimumVersionException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  668. <div class="phpdocumentor-label-line">
  669. </div>
  670. </article>
  671. <article
  672. class="phpdocumentor-element
  673. -method
  674. -public
  675. "
  676. >
  677. <h4 class="phpdocumentor-element__name" id="method_testInitMatrix">
  678. testInitMatrix()
  679. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  680. </h4>
  681. <aside class="phpdocumentor-element-found-in">
  682. <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>
  683. :
  684. <span class="phpdocumentor-element-found-in__line">51</span>
  685. </aside>
  686. <p class="phpdocumentor-summary">Tests initializing the data matrix</p>
  687. <code class="phpdocumentor-code phpdocumentor-signature ">
  688. <span class="phpdocumentor-signature__visibility">public</span>
  689. <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>
  690. <div class="phpdocumentor-label-line">
  691. </div>
  692. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  693. <dl class="phpdocumentor-argument-list">
  694. <dt class="phpdocumentor-argument-list__entry">
  695. <span class="phpdocumentor-signature__argument__name">$pattern</span>
  696. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  697. </dt>
  698. <dd class="phpdocumentor-argument-list__definition">
  699. </dd>
  700. </dl>
  701. <section class="phpdocumentor-attributes">
  702. <h5 class="phpdocumentor-elements__header" id="attributes">
  703. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  704. </h5>
  705. <dl class="phpdocumentor-argument-list">
  706. <dt class="phpdocumentor-argument-list__entry">
  707. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  708. </dt>
  709. <dd class="phpdocumentor-argument-list__entry">
  710. &#039;maskPatternProvider&#039;
  711. </dd>
  712. </dl>
  713. </section>
  714. </article>
  715. <article
  716. class="phpdocumentor-element
  717. -method
  718. -public
  719. "
  720. >
  721. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataException">
  722. testInvalidDataException()
  723. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_testInvalidDataException" class="headerlink"><i class="fas fa-link"></i></a>
  724. </h4>
  725. <aside class="phpdocumentor-element-found-in">
  726. <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>
  727. :
  728. <span class="phpdocumentor-element-found-in__line">42</span>
  729. </aside>
  730. <p class="phpdocumentor-summary">Tests if an exception is thrown when an invalid character is encountered</p>
  731. <code class="phpdocumentor-code phpdocumentor-signature ">
  732. <span class="phpdocumentor-signature__visibility">public</span>
  733. <span class="phpdocumentor-signature__name">testInvalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  734. <div class="phpdocumentor-label-line">
  735. </div>
  736. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  737. Tags
  738. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_testInvalidDataException#tags" class="headerlink"><i class="fas fa-link"></i></a>
  739. </h5>
  740. <dl class="phpdocumentor-tag-list">
  741. <dt class="phpdocumentor-tag-list__entry">
  742. <span class="phpdocumentor-tag__name">inheritDoc</span>
  743. </dt>
  744. <dd class="phpdocumentor-tag-list__definition">
  745. </dd>
  746. </dl>
  747. </article>
  748. <article
  749. class="phpdocumentor-element
  750. -method
  751. -public
  752. "
  753. >
  754. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataOnEmptyException">
  755. testInvalidDataOnEmptyException()
  756. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  757. </h4>
  758. <aside class="phpdocumentor-element-found-in">
  759. <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>
  760. :
  761. <span class="phpdocumentor-element-found-in__line">233</span>
  762. </aside>
  763. <p class="phpdocumentor-summary">Tests if an exception is thrown if the given string is empty</p>
  764. <code class="phpdocumentor-code phpdocumentor-signature ">
  765. <span class="phpdocumentor-signature__visibility">public</span>
  766. <span class="phpdocumentor-signature__name">testInvalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  767. <div class="phpdocumentor-label-line">
  768. </div>
  769. </article>
  770. <article
  771. class="phpdocumentor-element
  772. -method
  773. -public
  774. "
  775. >
  776. <h4 class="phpdocumentor-element__name" id="method_testMaxLength">
  777. testMaxLength()
  778. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength" class="headerlink"><i class="fas fa-link"></i></a>
  779. </h4>
  780. <aside class="phpdocumentor-element-found-in">
  781. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  782. :
  783. <span class="phpdocumentor-element-found-in__line">149</span>
  784. </aside>
  785. <code class="phpdocumentor-code phpdocumentor-signature ">
  786. <span class="phpdocumentor-signature__visibility">public</span>
  787. <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>
  788. <div class="phpdocumentor-label-line">
  789. </div>
  790. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  791. <dl class="phpdocumentor-argument-list">
  792. <dt class="phpdocumentor-argument-list__entry">
  793. <span class="phpdocumentor-signature__argument__name">$version</span>
  794. : <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>
  795. </dt>
  796. <dd class="phpdocumentor-argument-list__definition">
  797. </dd>
  798. <dt class="phpdocumentor-argument-list__entry">
  799. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  800. : <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>
  801. </dt>
  802. <dd class="phpdocumentor-argument-list__definition">
  803. </dd>
  804. <dt class="phpdocumentor-argument-list__entry">
  805. <span class="phpdocumentor-signature__argument__name">$str</span>
  806. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  807. </dt>
  808. <dd class="phpdocumentor-argument-list__definition">
  809. </dd>
  810. </dl>
  811. <section class="phpdocumentor-attributes">
  812. <h5 class="phpdocumentor-elements__header" id="attributes">
  813. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  814. </h5>
  815. <dl class="phpdocumentor-argument-list">
  816. <dt class="phpdocumentor-argument-list__entry">
  817. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  818. </dt>
  819. <dd class="phpdocumentor-argument-list__entry">
  820. &#039;maxLengthProvider&#039;
  821. </dd>
  822. </dl>
  823. </section>
  824. </article>
  825. <article
  826. class="phpdocumentor-element
  827. -method
  828. -public
  829. "
  830. >
  831. <h4 class="phpdocumentor-element__name" id="method_testMaxLengthOverflowException">
  832. testMaxLengthOverflowException()
  833. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException" class="headerlink"><i class="fas fa-link"></i></a>
  834. </h4>
  835. <aside class="phpdocumentor-element-found-in">
  836. <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>
  837. :
  838. <span class="phpdocumentor-element-found-in__line">197</span>
  839. </aside>
  840. <p class="phpdocumentor-summary">Tests if an exception is thrown on data overflow</p>
  841. <code class="phpdocumentor-code phpdocumentor-signature ">
  842. <span class="phpdocumentor-signature__visibility">public</span>
  843. <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>
  844. <div class="phpdocumentor-label-line">
  845. </div>
  846. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  847. <dl class="phpdocumentor-argument-list">
  848. <dt class="phpdocumentor-argument-list__entry">
  849. <span class="phpdocumentor-signature__argument__name">$version</span>
  850. : <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>
  851. </dt>
  852. <dd class="phpdocumentor-argument-list__definition">
  853. </dd>
  854. <dt class="phpdocumentor-argument-list__entry">
  855. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  856. : <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>
  857. </dt>
  858. <dd class="phpdocumentor-argument-list__definition">
  859. </dd>
  860. <dt class="phpdocumentor-argument-list__entry">
  861. <span class="phpdocumentor-signature__argument__name">$str</span>
  862. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  863. </dt>
  864. <dd class="phpdocumentor-argument-list__definition">
  865. </dd>
  866. <dt class="phpdocumentor-argument-list__entry">
  867. <span class="phpdocumentor-signature__argument__name">$str1</span>
  868. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  869. </dt>
  870. <dd class="phpdocumentor-argument-list__definition">
  871. </dd>
  872. </dl>
  873. <section class="phpdocumentor-attributes">
  874. <h5 class="phpdocumentor-elements__header" id="attributes">
  875. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  876. </h5>
  877. <dl class="phpdocumentor-argument-list">
  878. <dt class="phpdocumentor-argument-list__entry">
  879. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  880. </dt>
  881. <dd class="phpdocumentor-argument-list__entry">
  882. &#039;maxLengthProvider&#039;
  883. </dd>
  884. </dl>
  885. </section>
  886. </article>
  887. <article
  888. class="phpdocumentor-element
  889. -method
  890. -public
  891. "
  892. >
  893. <h4 class="phpdocumentor-element__name" id="method_testValidateString">
  894. testValidateString()
  895. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString" class="headerlink"><i class="fas fa-link"></i></a>
  896. </h4>
  897. <aside class="phpdocumentor-element-found-in">
  898. <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>
  899. :
  900. <span class="phpdocumentor-element-found-in__line">68</span>
  901. </aside>
  902. <p class="phpdocumentor-summary">Tests if a string is properly validated for the respective data mode</p>
  903. <code class="phpdocumentor-code phpdocumentor-signature ">
  904. <span class="phpdocumentor-signature__visibility">public</span>
  905. <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>
  906. <div class="phpdocumentor-label-line">
  907. </div>
  908. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  909. <dl class="phpdocumentor-argument-list">
  910. <dt class="phpdocumentor-argument-list__entry">
  911. <span class="phpdocumentor-signature__argument__name">$string</span>
  912. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  913. </dt>
  914. <dd class="phpdocumentor-argument-list__definition">
  915. </dd>
  916. <dt class="phpdocumentor-argument-list__entry">
  917. <span class="phpdocumentor-signature__argument__name">$expected</span>
  918. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  919. </dt>
  920. <dd class="phpdocumentor-argument-list__definition">
  921. </dd>
  922. </dl>
  923. <section class="phpdocumentor-attributes">
  924. <h5 class="phpdocumentor-elements__header" id="attributes">
  925. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  926. </h5>
  927. <dl class="phpdocumentor-argument-list">
  928. <dt class="phpdocumentor-argument-list__entry">
  929. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  930. </dt>
  931. <dd class="phpdocumentor-argument-list__entry">
  932. &#039;stringValidateProvider&#039;
  933. </dd>
  934. </dl>
  935. </section>
  936. </article>
  937. <article
  938. class="phpdocumentor-element
  939. -method
  940. -public
  941. -static "
  942. >
  943. <h4 class="phpdocumentor-element__name" id="method_versionBreakpointProvider">
  944. versionBreakpointProvider()
  945. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider" class="headerlink"><i class="fas fa-link"></i></a>
  946. </h4>
  947. <aside class="phpdocumentor-element-found-in">
  948. <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>
  949. :
  950. <span class="phpdocumentor-element-found-in__line">85</span>
  951. </aside>
  952. <p class="phpdocumentor-summary">returns versions within the version breakpoints 1-9, 10-26 and 27-40</p>
  953. <code class="phpdocumentor-code phpdocumentor-signature ">
  954. <span class="phpdocumentor-signature__visibility">public</span>
  955. <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>
  956. <div class="phpdocumentor-label-line">
  957. </div>
  958. <section>
  959. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  960. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  961. </section>
  962. </article>
  963. <article
  964. class="phpdocumentor-element
  965. -method
  966. -protected
  967. -static "
  968. >
  969. <h4 class="phpdocumentor-element__name" id="method_getDataModeInterface">
  970. getDataModeInterface()
  971. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_getDataModeInterface" class="headerlink"><i class="fas fa-link"></i></a>
  972. </h4>
  973. <aside class="phpdocumentor-element-found-in">
  974. <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>
  975. :
  976. <span class="phpdocumentor-element-found-in__line">23</span>
  977. </aside>
  978. <code class="phpdocumentor-code phpdocumentor-signature ">
  979. <span class="phpdocumentor-signature__visibility">protected</span>
  980. <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>
  981. <div class="phpdocumentor-label-line">
  982. </div>
  983. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  984. <dl class="phpdocumentor-argument-list">
  985. <dt class="phpdocumentor-argument-list__entry">
  986. <span class="phpdocumentor-signature__argument__name">$data</span>
  987. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  988. </dt>
  989. <dd class="phpdocumentor-argument-list__definition">
  990. </dd>
  991. </dl>
  992. <section>
  993. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  994. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  995. </section>
  996. </article>
  997. <article
  998. class="phpdocumentor-element
  999. -method
  1000. -protected
  1001. "
  1002. >
  1003. <h4 class="phpdocumentor-element__name" id="method_setUp">
  1004. setUp()
  1005. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  1006. </h4>
  1007. <aside class="phpdocumentor-element-found-in">
  1008. <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>
  1009. :
  1010. <span class="phpdocumentor-element-found-in__line">34</span>
  1011. </aside>
  1012. <code class="phpdocumentor-code phpdocumentor-signature ">
  1013. <span class="phpdocumentor-signature__visibility">protected</span>
  1014. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1015. <div class="phpdocumentor-label-line">
  1016. </div>
  1017. </article>
  1018. </section>
  1019. <div class="phpdocumentor-modal" id="source-view">
  1020. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1021. <div class="phpdocumentor-modal-container">
  1022. <div class="phpdocumentor-modal-content">
  1023. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Data/ByteTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1024. </div>
  1025. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1026. </div>
  1027. </div>
  1028. <script type="text/javascript">
  1029. (function () {
  1030. function loadExternalCodeSnippet(el, url, line) {
  1031. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1032. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1033. const language = 'php';
  1034. const code = document.createElement('code');
  1035. code.className = 'language-' + language;
  1036. pre.textContent = '';
  1037. pre.setAttribute('data-line', line)
  1038. code.textContent = 'Loading…';
  1039. pre.appendChild(code);
  1040. var xhr = new XMLHttpRequest();
  1041. xhr.open('GET', src, true);
  1042. xhr.onreadystatechange = function () {
  1043. if (xhr.readyState !== 4) {
  1044. return;
  1045. }
  1046. if (xhr.status < 400 && xhr.responseText) {
  1047. code.textContent = xhr.responseText;
  1048. Prism.highlightElement(code);
  1049. return;
  1050. }
  1051. if (xhr.status === 404) {
  1052. code.textContent = '✖ Error: File could not be found';
  1053. return;
  1054. }
  1055. if (xhr.status >= 400) {
  1056. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1057. return;
  1058. }
  1059. code.textContent = '✖ Error: An unknown error occurred';
  1060. };
  1061. xhr.send(null);
  1062. });
  1063. }
  1064. const modalButtons = document.querySelectorAll("[data-modal]");
  1065. const openedAsLocalFile = window.location.protocol === 'file:';
  1066. if (modalButtons.length > 0 && openedAsLocalFile) {
  1067. console.warn(
  1068. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1069. 'browsers block XHR requests when a page is opened this way'
  1070. );
  1071. }
  1072. modalButtons.forEach(function (trigger) {
  1073. if (openedAsLocalFile) {
  1074. trigger.setAttribute("hidden", "hidden");
  1075. }
  1076. trigger.addEventListener("click", function (event) {
  1077. event.preventDefault();
  1078. const modal = document.getElementById(trigger.dataset.modal);
  1079. if (!modal) {
  1080. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1081. return;
  1082. }
  1083. modal.classList.add("phpdocumentor-modal__open");
  1084. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1085. const exits = modal.querySelectorAll("[data-exit-button]");
  1086. exits.forEach(function (exit) {
  1087. exit.addEventListener("click", function (event) {
  1088. event.preventDefault();
  1089. modal.classList.remove("phpdocumentor-modal__open");
  1090. });
  1091. });
  1092. });
  1093. });
  1094. })();
  1095. </script>
  1096. </article>
  1097. </section>
  1098. <section class="phpdocumentor-on-this-page__sidebar">
  1099. <section class="phpdocumentor-on-this-page__content">
  1100. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1101. <ul class="phpdocumentor-list -clean">
  1102. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1103. <li>
  1104. <ul class="phpdocumentor-list -clean">
  1105. <li><a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#toc-constants">Constants</a></li>
  1106. <li><a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#toc-properties">Properties</a></li>
  1107. <li><a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#toc-methods">Methods</a></li>
  1108. </ul>
  1109. </li>
  1110. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  1111. <li>
  1112. <ul class="phpdocumentor-list -clean">
  1113. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#constant_testData">testData</a></li>
  1114. </ul>
  1115. </li>
  1116. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1117. <li>
  1118. <ul class="phpdocumentor-list -clean">
  1119. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode">$dataMode</li>
  1120. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData">$QRData</li>
  1121. </ul>
  1122. </li>
  1123. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1124. <li>
  1125. <ul class="phpdocumentor-list -clean">
  1126. <li class=""><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a></li>
  1127. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a></li>
  1128. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a></li>
  1129. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_stringValidateProvider">stringValidateProvider()</a></li>
  1130. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_testBinaryStringInvalid">testBinaryStringInvalid()</a></li>
  1131. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment">testDecodeSegment()</a></li>
  1132. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a></li>
  1133. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a></li>
  1134. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a></li>
  1135. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_testInvalidDataException">testInvalidDataException()</a></li>
  1136. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a></li>
  1137. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength">testMaxLength()</a></li>
  1138. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException">testMaxLengthOverflowException()</a></li>
  1139. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString">testValidateString()</a></li>
  1140. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a></li>
  1141. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#method_getDataModeInterface">getDataModeInterface()</a></li>
  1142. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a></li>
  1143. </ul>
  1144. </li>
  1145. </ul>
  1146. </section>
  1147. </section>
  1148. </div>
  1149. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1150. <section class="phpdocumentor-search-results__dialog">
  1151. <header class="phpdocumentor-search-results__header">
  1152. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1153. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1154. </header>
  1155. <section class="phpdocumentor-search-results__body">
  1156. <ul class="phpdocumentor-search-results__entries"></ul>
  1157. </section>
  1158. </section>
  1159. </section>
  1160. </div>
  1161. <a href="classes/chillerlan-QRCodeTest-Data-ByteTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1162. </main>
  1163. <script>
  1164. cssVars({});
  1165. </script>
  1166. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1167. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1168. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1169. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1170. </body>
  1171. </html>