chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html 79 KB

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