chillerlan-QRCodeTest-Data-AlphaNumTest.html 76 KB

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