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