chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html 77 KB

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