chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html 80 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560
  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=Source+Sans+Pro:wght@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/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. <li class="phpdocumentor-topnav__menu-item -menu">
  44. <a href="https://php-qrcode.readthedocs.io">
  45. <span>
  46. User Manual
  47. </span>
  48. </a>
  49. </li>
  50. <li class="phpdocumentor-topnav__menu-item -social">
  51. <a href="https://github.com/chillerlan/php-qrcode">
  52. <span>
  53. <i class="fab fa-github"></i>
  54. </span>
  55. </a>
  56. </li>
  57. </ul>
  58. </nav>
  59. </header>
  60. <main class="phpdocumentor">
  61. <div class="phpdocumentor-section">
  62. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  63. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  64. Menu
  65. </label>
  66. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  71. </h4>
  72. <ul class="phpdocumentor-list">
  73. <li>
  74. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  75. </li>
  76. <li>
  77. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  78. </li>
  79. </ul>
  80. </section>
  81. <section class="phpdocumentor-sidebar__category">
  82. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  83. <h4 class="phpdocumentor-sidebar__root-namespace">
  84. <a href="packages/Application.html" class="">Application</a>
  85. </h4>
  86. </section>
  87. <section class="phpdocumentor-sidebar__category">
  88. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  89. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  92. </section>
  93. <section class="phpdocumentor-sidebar__category">
  94. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  96. </section>
  97. </aside>
  98. <div class="phpdocumentor-column -eight phpdocumentor-content">
  99. <ul class="phpdocumentor-breadcrumbs">
  100. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  101. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  103. </ul>
  104. <article class="phpdocumentor-element -class">
  105. <h2 class="phpdocumentor-content__title">
  106. DataInterfaceTestAbstract
  107. <span class="phpdocumentor-element__extends">
  108. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  109. </span>
  110. <div class="phpdocumentor-element__package">
  111. in package
  112. <ul class="phpdocumentor-breadcrumbs">
  113. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  114. </ul>
  115. </div>
  116. <span class="phpdocumentor-element__extends">
  117. Uses
  118. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html"><abbr title="\chillerlan\QRCodeTest\QRMaxLengthTrait">QRMaxLengthTrait</abbr></a> </span>
  119. </h2>
  120. <aside class="phpdocumentor-element-found-in">
  121. <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>
  122. :
  123. <span class="phpdocumentor-element-found-in__line">32</span>
  124. </aside>
  125. <p class="phpdocumentor-summary">The data interface test abstract</p>
  126. <h3 id="toc">
  127. Table of Contents
  128. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  129. </h3>
  130. <dl class="phpdocumentor-table-of-contents">
  131. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  132. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode">$dataMode</a>
  133. <span>
  134. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  135. </dt>
  136. <dd></dd>
  137. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  138. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_FQN">$FQN</a>
  139. <span>
  140. &nbsp;: string </span>
  141. </dt>
  142. <dd></dd>
  143. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  144. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData">$QRData</a>
  145. <span>
  146. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a> </span>
  147. </dt>
  148. <dd></dd>
  149. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  150. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_testdata">$testdata</a>
  151. <span>
  152. &nbsp;: string </span>
  153. </dt>
  154. <dd></dd>
  155. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  156. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#property_MAX_LENGTH">$MAX_LENGTH</a>
  157. <span>
  158. &nbsp;: array&lt;string|int, mixed&gt; </span>
  159. </dt>
  160. <dd>ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</dd>
  161. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  162. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  163. <span>
  164. &nbsp;: int </span>
  165. </dt>
  166. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  167. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  168. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a>
  169. <span>
  170. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  171. </dt>
  172. <dd></dd>
  173. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  174. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a>
  175. <span>
  176. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  177. </dt>
  178. <dd>Generates test data for each data mode:</dd>
  179. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  180. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_stringValidateProvider">stringValidateProvider()</a>
  181. <span>
  182. &nbsp;: array&lt;string|int, mixed&gt; </span>
  183. </dt>
  184. <dd></dd>
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid">testBinaryStringInvalid()</a>
  187. <span>
  188. &nbsp;: void </span>
  189. </dt>
  190. <dd>Tests if a binary string is properly validated as false</dd>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDataModeInstance">testDataModeInstance()</a>
  193. <span>
  194. &nbsp;: void </span>
  195. </dt>
  196. <dd>Verifies the QRDataModeInterface instance</dd>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment">testDecodeSegment()</a>
  199. <span>
  200. &nbsp;: void </span>
  201. </dt>
  202. <dd>Tests decoding a data segment from a given BitBuffer</dd>
  203. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  204. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a>
  205. <span>
  206. &nbsp;: void </span>
  207. </dt>
  208. <dd>Tests getting the minimum QR version for the given data</dd>
  209. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  210. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a>
  211. <span>
  212. &nbsp;: void </span>
  213. </dt>
  214. <dd>Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</dd>
  215. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  216. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a>
  217. <span>
  218. &nbsp;: void </span>
  219. </dt>
  220. <dd>Tests initializing the data matrix</dd>
  221. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  222. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInstance">testInstance()</a>
  223. <span>
  224. &nbsp;: void </span>
  225. </dt>
  226. <dd>Verifies the QRData instance</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. <dd></dd>
  245. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  246. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException">testMaxLengthOverflowException()</a>
  247. <span>
  248. &nbsp;: void </span>
  249. </dt>
  250. <dd>Tests if an exception is thrown on data overflow</dd>
  251. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  252. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString">testValidateString()</a>
  253. <span>
  254. &nbsp;: void </span>
  255. </dt>
  256. <dd>Tests if a string is properly validated for the respective data mode</dd>
  257. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  258. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a>
  259. <span>
  260. &nbsp;: array&lt;string|int, mixed&gt; </span>
  261. </dt>
  262. <dd>returns versions within the version breakpoints 1-9, 10-26 and 27-40</dd>
  263. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  264. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a>
  265. <span>
  266. &nbsp;: void </span>
  267. </dt>
  268. <dd></dd>
  269. </dl>
  270. <section class="phpdocumentor-properties">
  271. <h3 class="phpdocumentor-elements__header" id="properties">
  272. Properties
  273. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  274. </h3>
  275. <article
  276. class="
  277. phpdocumentor-element
  278. -property
  279. -protected
  280. "
  281. >
  282. <h4 class="phpdocumentor-element__name" id="property_dataMode">
  283. $dataMode
  284. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode" class="headerlink"><i class="fas fa-link"></i></a>
  285. <span class="phpdocumentor-element__modifiers">
  286. </span>
  287. </h4>
  288. <aside class="phpdocumentor-element-found-in">
  289. <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>
  290. :
  291. <span class="phpdocumentor-element-found-in__line">36</span>
  292. </aside>
  293. <code class="phpdocumentor-code phpdocumentor-signature ">
  294. <span class="phpdocumentor-signature__visibility">protected</span>
  295. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  296. <span class="phpdocumentor-signature__name">$dataMode</span>
  297. </code>
  298. <section class="phpdocumentor-description"></section>
  299. <section class="phpdocumentor-description"></section>
  300. </article>
  301. <article
  302. class="
  303. phpdocumentor-element
  304. -property
  305. -protected
  306. -static "
  307. >
  308. <h4 class="phpdocumentor-element__name" id="property_FQN">
  309. $FQN
  310. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_FQN" 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">37</span>
  318. </aside>
  319. <code class="phpdocumentor-code phpdocumentor-signature ">
  320. <span class="phpdocumentor-signature__visibility">protected</span>
  321. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span>
  322. <span class="phpdocumentor-signature__name">$FQN</span>
  323. </code>
  324. <section class="phpdocumentor-description"></section>
  325. <section class="phpdocumentor-description"></section>
  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">35</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. <section class="phpdocumentor-description"></section>
  351. <section class="phpdocumentor-description"></section>
  352. </article>
  353. <article
  354. class="
  355. phpdocumentor-element
  356. -property
  357. -protected
  358. -static "
  359. >
  360. <h4 class="phpdocumentor-element__name" id="property_testdata">
  361. $testdata
  362. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_testdata" class="headerlink"><i class="fas fa-link"></i></a>
  363. <span class="phpdocumentor-element__modifiers">
  364. </span>
  365. </h4>
  366. <aside class="phpdocumentor-element-found-in">
  367. <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>
  368. :
  369. <span class="phpdocumentor-element-found-in__line">38</span>
  370. </aside>
  371. <code class="phpdocumentor-code phpdocumentor-signature ">
  372. <span class="phpdocumentor-signature__visibility">protected</span>
  373. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span>
  374. <span class="phpdocumentor-signature__name">$testdata</span>
  375. </code>
  376. <section class="phpdocumentor-description"></section>
  377. <section class="phpdocumentor-description"></section>
  378. </article>
  379. <article
  380. class="
  381. phpdocumentor-element
  382. -property
  383. -private
  384. -static "
  385. >
  386. <h4 class="phpdocumentor-element__name" id="property_MAX_LENGTH">
  387. $MAX_LENGTH
  388. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#property_MAX_LENGTH" class="headerlink"><i class="fas fa-link"></i></a>
  389. <span class="phpdocumentor-element__modifiers">
  390. </span>
  391. </h4>
  392. <aside class="phpdocumentor-element-found-in">
  393. <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>
  394. :
  395. <span class="phpdocumentor-element-found-in__line">28</span>
  396. </aside>
  397. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</p>
  398. <code class="phpdocumentor-code phpdocumentor-signature ">
  399. <span class="phpdocumentor-signature__visibility">private</span>
  400. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  401. <span class="phpdocumentor-signature__name">$MAX_LENGTH</span>
  402. = <span class="phpdocumentor-signature__default-value">[
  403. // v =&gt; [NUMERIC =&gt; [L, M, Q, H ], ALPHANUM =&gt; [L, M, Q, H], BINARY =&gt; [L, M, Q, H ], KANJI =&gt; [L, M, Q, H ]]
  404. 1 =&gt; [[41, 34, 27, 17], [25, 20, 16, 10], [17, 14, 11, 7], [10, 8, 7, 4]],
  405. 2 =&gt; [[77, 63, 48, 34], [47, 38, 29, 20], [32, 26, 20, 14], [20, 16, 12, 8]],
  406. 3 =&gt; [[127, 101, 77, 58], [77, 61, 47, 35], [53, 42, 32, 24], [32, 26, 20, 15]],
  407. 4 =&gt; [[187, 149, 111, 82], [114, 90, 67, 50], [78, 62, 46, 34], [48, 38, 28, 21]],
  408. 5 =&gt; [[255, 202, 144, 106], [154, 122, 87, 64], [106, 84, 60, 44], [65, 52, 37, 27]],
  409. 6 =&gt; [[322, 255, 178, 139], [195, 154, 108, 84], [134, 106, 74, 58], [82, 65, 45, 36]],
  410. 7 =&gt; [[370, 293, 207, 154], [224, 178, 125, 93], [154, 122, 86, 64], [95, 75, 53, 39]],
  411. 8 =&gt; [[461, 365, 259, 202], [279, 221, 157, 122], [192, 152, 108, 84], [118, 93, 66, 52]],
  412. 9 =&gt; [[552, 432, 312, 235], [335, 262, 189, 143], [230, 180, 130, 98], [141, 111, 80, 60]],
  413. 10 =&gt; [[652, 513, 364, 288], [395, 311, 221, 174], [271, 213, 151, 119], [167, 131, 93, 74]],
  414. 11 =&gt; [[772, 604, 427, 331], [468, 366, 259, 200], [321, 251, 177, 137], [198, 155, 109, 85]],
  415. 12 =&gt; [[883, 691, 489, 374], [535, 419, 296, 227], [367, 287, 203, 155], [226, 177, 125, 96]],
  416. 13 =&gt; [[1022, 796, 580, 427], [619, 483, 352, 259], [425, 331, 241, 177], [262, 204, 149, 109]],
  417. 14 =&gt; [[1101, 871, 621, 468], [667, 528, 376, 283], [458, 362, 258, 194], [282, 223, 159, 120]],
  418. 15 =&gt; [[1250, 991, 703, 530], [758, 600, 426, 321], [520, 412, 292, 220], [320, 254, 180, 136]],
  419. 16 =&gt; [[1408, 1082, 775, 602], [854, 656, 470, 365], [586, 450, 322, 250], [361, 277, 198, 154]],
  420. 17 =&gt; [[1548, 1212, 876, 674], [938, 734, 531, 408], [644, 504, 364, 280], [397, 310, 224, 173]],
  421. 18 =&gt; [[1725, 1346, 948, 746], [1046, 816, 574, 452], [718, 560, 394, 310], [442, 345, 243, 191]],
  422. 19 =&gt; [[1903, 1500, 1063, 813], [1153, 909, 644, 493], [792, 624, 442, 338], [488, 384, 272, 208]],
  423. 20 =&gt; [[2061, 1600, 1159, 919], [1249, 970, 702, 557], [858, 666, 482, 382], [528, 410, 297, 235]],
  424. 21 =&gt; [[2232, 1708, 1224, 969], [1352, 1035, 742, 587], [929, 711, 509, 403], [572, 438, 314, 248]],
  425. 22 =&gt; [[2409, 1872, 1358, 1056], [1460, 1134, 823, 640], [1003, 779, 565, 439], [618, 480, 348, 270]],
  426. 23 =&gt; [[2620, 2059, 1468, 1108], [1588, 1248, 890, 672], [1091, 857, 611, 461], [672, 528, 376, 284]],
  427. 24 =&gt; [[2812, 2188, 1588, 1228], [1704, 1326, 963, 744], [1171, 911, 661, 511], [721, 561, 407, 315]],
  428. 25 =&gt; [[3057, 2395, 1718, 1286], [1853, 1451, 1041, 779], [1273, 997, 715, 535], [784, 614, 440, 330]],
  429. 26 =&gt; [[3283, 2544, 1804, 1425], [1990, 1542, 1094, 864], [1367, 1059, 751, 593], [842, 652, 462, 365]],
  430. 27 =&gt; [[3517, 2701, 1933, 1501], [2132, 1637, 1172, 910], [1465, 1125, 805, 625], [902, 692, 496, 385]],
  431. 28 =&gt; [[3669, 2857, 2085, 1581], [2223, 1732, 1263, 958], [1528, 1190, 868, 658], [940, 732, 534, 405]],
  432. 29 =&gt; [[3909, 3035, 2181, 1677], [2369, 1839, 1322, 1016], [1628, 1264, 908, 698], [1002, 778, 559, 430]],
  433. 30 =&gt; [[4158, 3289, 2358, 1782], [2520, 1994, 1429, 1080], [1732, 1370, 982, 742], [1066, 843, 604, 457]],
  434. 31 =&gt; [[4417, 3486, 2473, 1897], [2677, 2113, 1499, 1150], [1840, 1452, 1030, 790], [1132, 894, 634, 486]],
  435. 32 =&gt; [[4686, 3693, 2670, 2022], [2840, 2238, 1618, 1226], [1952, 1538, 1112, 842], [1201, 947, 684, 518]],
  436. 33 =&gt; [[4965, 3909, 2805, 2157], [3009, 2369, 1700, 1307], [2068, 1628, 1168, 898], [1273, 1002, 719, 553]],
  437. 34 =&gt; [[5253, 4134, 2949, 2301], [3183, 2506, 1787, 1394], [2188, 1722, 1228, 958], [1347, 1060, 756, 590]],
  438. 35 =&gt; [[5529, 4343, 3081, 2361], [3351, 2632, 1867, 1431], [2303, 1809, 1283, 983], [1417, 1113, 790, 605]],
  439. 36 =&gt; [[5836, 4588, 3244, 2524], [3537, 2780, 1966, 1530], [2431, 1911, 1351, 1051], [1496, 1176, 832, 647]],
  440. 37 =&gt; [[6153, 4775, 3417, 2625], [3729, 2894, 2071, 1591], [2563, 1989, 1423, 1093], [1577, 1224, 876, 673]],
  441. 38 =&gt; [[6479, 5039, 3599, 2735], [3927, 3054, 2181, 1658], [2699, 2099, 1499, 1139], [1661, 1292, 923, 701]],
  442. 39 =&gt; [[6743, 5313, 3791, 2927], [4087, 3220, 2298, 1774], [2809, 2213, 1579, 1219], [1729, 1362, 972, 750]],
  443. 40 =&gt; [[7089, 5596, 3993, 3057], [4296, 3391, 2420, 1852], [2953, 2331, 1663, 1273], [1817, 1435, 1024, 784]],
  444. ]</span></code>
  445. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  446. Tags
  447. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  448. </h5>
  449. <dl class="phpdocumentor-tag-list">
  450. <dt class="phpdocumentor-tag-list__entry">
  451. <span class="phpdocumentor-tag__name">see</span>
  452. </dt>
  453. <dd class="phpdocumentor-tag-list__definition">
  454. <span class="phpdocumentor-tag-link"><a href="http://www.qrcode.com/en/about/version.html"><abbr title="http://www.qrcode.com/en/about/version.html">http://www.qrcode.com/en/about/version.html</abbr></a></span>
  455. </dd>
  456. </dl>
  457. </article>
  458. </section>
  459. <section class="phpdocumentor-methods">
  460. <h3 class="phpdocumentor-elements__header" id="methods">
  461. Methods
  462. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  463. </h3>
  464. <article
  465. class="phpdocumentor-element
  466. -method
  467. -public
  468. -static "
  469. >
  470. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  471. getMaxLengthForMode()
  472. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  473. </h4>
  474. <aside class="phpdocumentor-element-found-in">
  475. <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>
  476. :
  477. <span class="phpdocumentor-element-found-in__line">81</span>
  478. </aside>
  479. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  480. <code class="phpdocumentor-code phpdocumentor-signature ">
  481. <span class="phpdocumentor-signature__visibility">public</span>
  482. <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>
  483. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  484. <dl class="phpdocumentor-argument-list">
  485. <dt class="phpdocumentor-argument-list__entry">
  486. <span class="phpdocumentor-signature__argument__name">$mode</span>
  487. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  488. </dt>
  489. <dd class="phpdocumentor-argument-list__definition">
  490. <section class="phpdocumentor-description"></section>
  491. </dd>
  492. <dt class="phpdocumentor-argument-list__entry">
  493. <span class="phpdocumentor-signature__argument__name">$version</span>
  494. : <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>
  495. </dt>
  496. <dd class="phpdocumentor-argument-list__definition">
  497. <section class="phpdocumentor-description"></section>
  498. </dd>
  499. <dt class="phpdocumentor-argument-list__entry">
  500. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  501. : <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>
  502. </dt>
  503. <dd class="phpdocumentor-argument-list__definition">
  504. <section class="phpdocumentor-description"></section>
  505. </dd>
  506. </dl>
  507. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  508. Tags
  509. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  510. </h5>
  511. <dl class="phpdocumentor-tag-list">
  512. <dt class="phpdocumentor-tag-list__entry">
  513. <span class="phpdocumentor-tag__name">todo:</span>
  514. </dt>
  515. <dd class="phpdocumentor-tag-list__definition">
  516. <section class="phpdocumentor-description"><p>this methood is only used in unit tests (incl. MAX_LENGTH table)</p>
  517. </section>
  518. </dd>
  519. <dt class="phpdocumentor-tag-list__entry">
  520. <span class="phpdocumentor-tag__name">throws</span>
  521. </dt>
  522. <dd class="phpdocumentor-tag-list__definition">
  523. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  524. </dd>
  525. <dt class="phpdocumentor-tag-list__entry">
  526. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  527. </dt>
  528. <dd class="phpdocumentor-tag-list__definition">
  529. </dd>
  530. </dl>
  531. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  532. <span class="phpdocumentor-signature__response_type">int</span>
  533. &mdash;
  534. </article>
  535. <article
  536. class="phpdocumentor-element
  537. -method
  538. -public
  539. -static "
  540. >
  541. <h4 class="phpdocumentor-element__name" id="method_maskPatternProvider">
  542. maskPatternProvider()
  543. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  544. </h4>
  545. <aside class="phpdocumentor-element-found-in">
  546. <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>
  547. :
  548. <span class="phpdocumentor-element-found-in__line">61</span>
  549. </aside>
  550. <code class="phpdocumentor-code phpdocumentor-signature ">
  551. <span class="phpdocumentor-signature__visibility">public</span>
  552. <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>
  553. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  554. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  555. &mdash;
  556. </article>
  557. <article
  558. class="phpdocumentor-element
  559. -method
  560. -public
  561. -static "
  562. >
  563. <h4 class="phpdocumentor-element__name" id="method_maxLengthProvider">
  564. maxLengthProvider()
  565. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider" class="headerlink"><i class="fas fa-link"></i></a>
  566. </h4>
  567. <aside class="phpdocumentor-element-found-in">
  568. <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>
  569. :
  570. <span class="phpdocumentor-element-found-in__line">142</span>
  571. </aside>
  572. <p class="phpdocumentor-summary">Generates test data for each data mode:</p>
  573. <code class="phpdocumentor-code phpdocumentor-signature ">
  574. <span class="phpdocumentor-signature__visibility">public</span>
  575. <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>
  576. <section class="phpdocumentor-description"><ul>
  577. <li>version</li>
  578. <li>ECC level</li>
  579. <li>a string that contains the maximum amount of characters for the given mode</li>
  580. <li>a string that contains characters for the given mode and that exceeds the maximum length by one/two character(s)</li>
  581. <li>the maximum allowed character length</li>
  582. </ul>
  583. </section>
  584. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  585. Tags
  586. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  587. </h5>
  588. <dl class="phpdocumentor-tag-list">
  589. <dt class="phpdocumentor-tag-list__entry">
  590. <span class="phpdocumentor-tag__name">throws</span>
  591. </dt>
  592. <dd class="phpdocumentor-tag-list__definition">
  593. <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span>
  594. </dd>
  595. </dl>
  596. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  597. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  598. &mdash;
  599. </article>
  600. <article
  601. class="phpdocumentor-element
  602. -method
  603. -public
  604. -abstract -static "
  605. >
  606. <h4 class="phpdocumentor-element__name" id="method_stringValidateProvider">
  607. stringValidateProvider()
  608. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_stringValidateProvider" class="headerlink"><i class="fas fa-link"></i></a>
  609. </h4>
  610. <aside class="phpdocumentor-element-found-in">
  611. <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>
  612. :
  613. <span class="phpdocumentor-element-found-in__line">81</span>
  614. </aside>
  615. <code class="phpdocumentor-code phpdocumentor-signature ">
  616. <span class="phpdocumentor-signature__visibility">public</span>
  617. <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>
  618. <section class="phpdocumentor-description"></section>
  619. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  620. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  621. &mdash;
  622. </article>
  623. <article
  624. class="phpdocumentor-element
  625. -method
  626. -public
  627. "
  628. >
  629. <h4 class="phpdocumentor-element__name" id="method_testBinaryStringInvalid">
  630. testBinaryStringInvalid()
  631. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid" class="headerlink"><i class="fas fa-link"></i></a>
  632. </h4>
  633. <aside class="phpdocumentor-element-found-in">
  634. <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>
  635. :
  636. <span class="phpdocumentor-element-found-in__line">98</span>
  637. </aside>
  638. <p class="phpdocumentor-summary">Tests if a binary string is properly validated as false</p>
  639. <code class="phpdocumentor-code phpdocumentor-signature ">
  640. <span class="phpdocumentor-signature__visibility">public</span>
  641. <span class="phpdocumentor-signature__name">testBinaryStringInvalid</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  642. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  643. Tags
  644. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  645. </h5>
  646. <dl class="phpdocumentor-tag-list">
  647. <dt class="phpdocumentor-tag-list__entry">
  648. <span class="phpdocumentor-tag__name">see</span>
  649. </dt>
  650. <dd class="phpdocumentor-tag-list__definition">
  651. <span class="phpdocumentor-tag-link"><a href="https://github.com/chillerlan/php-qrcode/issues/182"><abbr title="https://github.com/chillerlan/php-qrcode/issues/182">https://github.com/chillerlan/php-qrcode/issues/182</abbr></a></span>
  652. </dd>
  653. </dl>
  654. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  655. <span class="phpdocumentor-signature__response_type">void</span>
  656. &mdash;
  657. </article>
  658. <article
  659. class="phpdocumentor-element
  660. -method
  661. -public
  662. "
  663. >
  664. <h4 class="phpdocumentor-element__name" id="method_testDataModeInstance">
  665. testDataModeInstance()
  666. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDataModeInstance" class="headerlink"><i class="fas fa-link"></i></a>
  667. </h4>
  668. <aside class="phpdocumentor-element-found-in">
  669. <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>
  670. :
  671. <span class="phpdocumentor-element-found-in__line">54</span>
  672. </aside>
  673. <p class="phpdocumentor-summary">Verifies the QRDataModeInterface instance</p>
  674. <code class="phpdocumentor-code phpdocumentor-signature ">
  675. <span class="phpdocumentor-signature__visibility">public</span>
  676. <span class="phpdocumentor-signature__name">testDataModeInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  677. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  678. <span class="phpdocumentor-signature__response_type">void</span>
  679. &mdash;
  680. </article>
  681. <article
  682. class="phpdocumentor-element
  683. -method
  684. -public
  685. "
  686. >
  687. <h4 class="phpdocumentor-element__name" id="method_testDecodeSegment">
  688. testDecodeSegment()
  689. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  690. </h4>
  691. <aside class="phpdocumentor-element-found-in">
  692. <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>
  693. :
  694. <span class="phpdocumentor-element-found-in__line">115</span>
  695. </aside>
  696. <p class="phpdocumentor-summary">Tests decoding a data segment from a given BitBuffer</p>
  697. <code class="phpdocumentor-code phpdocumentor-signature ">
  698. <span class="phpdocumentor-signature__visibility">public</span>
  699. <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>
  700. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  701. <dl class="phpdocumentor-argument-list">
  702. <dt class="phpdocumentor-argument-list__entry">
  703. <span class="phpdocumentor-signature__argument__name">$version</span>
  704. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  705. </dt>
  706. <dd class="phpdocumentor-argument-list__definition">
  707. <section class="phpdocumentor-description"></section>
  708. </dd>
  709. </dl>
  710. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  711. Tags
  712. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  713. </h5>
  714. <dl class="phpdocumentor-tag-list">
  715. <dt class="phpdocumentor-tag-list__entry">
  716. <span class="phpdocumentor-tag__name">dataProvider</span>
  717. </dt>
  718. <dd class="phpdocumentor-tag-list__definition">
  719. <section class="phpdocumentor-description"><p>versionBreakpointProvider</p>
  720. </section>
  721. </dd>
  722. </dl>
  723. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  724. <span class="phpdocumentor-signature__response_type">void</span>
  725. &mdash;
  726. </article>
  727. <article
  728. class="phpdocumentor-element
  729. -method
  730. -public
  731. "
  732. >
  733. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersion">
  734. testGetMinimumVersion()
  735. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  736. </h4>
  737. <aside class="phpdocumentor-element-found-in">
  738. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  739. :
  740. <span class="phpdocumentor-element-found-in__line">191</span>
  741. </aside>
  742. <p class="phpdocumentor-summary">Tests getting the minimum QR version for the given data</p>
  743. <code class="phpdocumentor-code phpdocumentor-signature ">
  744. <span class="phpdocumentor-signature__visibility">public</span>
  745. <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>
  746. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  747. <dl class="phpdocumentor-argument-list">
  748. <dt class="phpdocumentor-argument-list__entry">
  749. <span class="phpdocumentor-signature__argument__name">$version</span>
  750. : <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>
  751. </dt>
  752. <dd class="phpdocumentor-argument-list__definition">
  753. <section class="phpdocumentor-description"></section>
  754. </dd>
  755. <dt class="phpdocumentor-argument-list__entry">
  756. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  757. : <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>
  758. </dt>
  759. <dd class="phpdocumentor-argument-list__definition">
  760. <section class="phpdocumentor-description"></section>
  761. </dd>
  762. <dt class="phpdocumentor-argument-list__entry">
  763. <span class="phpdocumentor-signature__argument__name">$str</span>
  764. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  765. </dt>
  766. <dd class="phpdocumentor-argument-list__definition">
  767. <section class="phpdocumentor-description"></section>
  768. </dd>
  769. </dl>
  770. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  771. Tags
  772. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  773. </h5>
  774. <dl class="phpdocumentor-tag-list">
  775. <dt class="phpdocumentor-tag-list__entry">
  776. <span class="phpdocumentor-tag__name">dataProvider</span>
  777. </dt>
  778. <dd class="phpdocumentor-tag-list__definition">
  779. <section class="phpdocumentor-description"><p>maxLengthProvider</p>
  780. </section>
  781. </dd>
  782. </dl>
  783. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  784. <span class="phpdocumentor-signature__response_type">void</span>
  785. &mdash;
  786. </article>
  787. <article
  788. class="phpdocumentor-element
  789. -method
  790. -public
  791. "
  792. >
  793. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersionException">
  794. testGetMinimumVersionException()
  795. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException" class="headerlink"><i class="fas fa-link"></i></a>
  796. </h4>
  797. <aside class="phpdocumentor-element-found-in">
  798. <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>
  799. :
  800. <span class="phpdocumentor-element-found-in__line">229</span>
  801. </aside>
  802. <p class="phpdocumentor-summary">Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</p>
  803. <code class="phpdocumentor-code phpdocumentor-signature ">
  804. <span class="phpdocumentor-signature__visibility">public</span>
  805. <span class="phpdocumentor-signature__name">testGetMinimumVersionException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  806. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  807. <span class="phpdocumentor-signature__response_type">void</span>
  808. &mdash;
  809. </article>
  810. <article
  811. class="phpdocumentor-element
  812. -method
  813. -public
  814. "
  815. >
  816. <h4 class="phpdocumentor-element__name" id="method_testInitMatrix">
  817. testInitMatrix()
  818. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  819. </h4>
  820. <aside class="phpdocumentor-element-found-in">
  821. <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>
  822. :
  823. <span class="phpdocumentor-element-found-in__line">70</span>
  824. </aside>
  825. <p class="phpdocumentor-summary">Tests initializing the data matrix</p>
  826. <code class="phpdocumentor-code phpdocumentor-signature ">
  827. <span class="phpdocumentor-signature__visibility">public</span>
  828. <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>
  829. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  830. <dl class="phpdocumentor-argument-list">
  831. <dt class="phpdocumentor-argument-list__entry">
  832. <span class="phpdocumentor-signature__argument__name">$pattern</span>
  833. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  834. </dt>
  835. <dd class="phpdocumentor-argument-list__definition">
  836. <section class="phpdocumentor-description"></section>
  837. </dd>
  838. </dl>
  839. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  840. Tags
  841. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  842. </h5>
  843. <dl class="phpdocumentor-tag-list">
  844. <dt class="phpdocumentor-tag-list__entry">
  845. <span class="phpdocumentor-tag__name">dataProvider</span>
  846. </dt>
  847. <dd class="phpdocumentor-tag-list__definition">
  848. <section class="phpdocumentor-description"><p>maskPatternProvider</p>
  849. </section>
  850. </dd>
  851. </dl>
  852. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  853. <span class="phpdocumentor-signature__response_type">void</span>
  854. &mdash;
  855. </article>
  856. <article
  857. class="phpdocumentor-element
  858. -method
  859. -public
  860. "
  861. >
  862. <h4 class="phpdocumentor-element__name" id="method_testInstance">
  863. testInstance()
  864. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInstance" class="headerlink"><i class="fas fa-link"></i></a>
  865. </h4>
  866. <aside class="phpdocumentor-element-found-in">
  867. <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>
  868. :
  869. <span class="phpdocumentor-element-found-in__line">47</span>
  870. </aside>
  871. <p class="phpdocumentor-summary">Verifies the QRData instance</p>
  872. <code class="phpdocumentor-code phpdocumentor-signature ">
  873. <span class="phpdocumentor-signature__visibility">public</span>
  874. <span class="phpdocumentor-signature__name">testInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  875. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  876. <span class="phpdocumentor-signature__response_type">void</span>
  877. &mdash;
  878. </article>
  879. <article
  880. class="phpdocumentor-element
  881. -method
  882. -public
  883. "
  884. >
  885. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataException">
  886. testInvalidDataException()
  887. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException" class="headerlink"><i class="fas fa-link"></i></a>
  888. </h4>
  889. <aside class="phpdocumentor-element-found-in">
  890. <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>
  891. :
  892. <span class="phpdocumentor-element-found-in__line">239</span>
  893. </aside>
  894. <p class="phpdocumentor-summary">Tests if an exception is thrown when an invalid character is encountered</p>
  895. <code class="phpdocumentor-code phpdocumentor-signature ">
  896. <span class="phpdocumentor-signature__visibility">public</span>
  897. <span class="phpdocumentor-signature__name">testInvalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  898. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  899. <span class="phpdocumentor-signature__response_type">void</span>
  900. &mdash;
  901. </article>
  902. <article
  903. class="phpdocumentor-element
  904. -method
  905. -public
  906. "
  907. >
  908. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataOnEmptyException">
  909. testInvalidDataOnEmptyException()
  910. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  911. </h4>
  912. <aside class="phpdocumentor-element-found-in">
  913. <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>
  914. :
  915. <span class="phpdocumentor-element-found-in__line">250</span>
  916. </aside>
  917. <p class="phpdocumentor-summary">Tests if an exception is thrown if the given string is empty</p>
  918. <code class="phpdocumentor-code phpdocumentor-signature ">
  919. <span class="phpdocumentor-signature__visibility">public</span>
  920. <span class="phpdocumentor-signature__name">testInvalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  921. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  922. <span class="phpdocumentor-signature__response_type">void</span>
  923. &mdash;
  924. </article>
  925. <article
  926. class="phpdocumentor-element
  927. -method
  928. -public
  929. "
  930. >
  931. <h4 class="phpdocumentor-element__name" id="method_testMaxLength">
  932. testMaxLength()
  933. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength" class="headerlink"><i class="fas fa-link"></i></a>
  934. </h4>
  935. <aside class="phpdocumentor-element-found-in">
  936. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DataInterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DataInterfaceTestAbstract.php">DataInterfaceTestAbstract.php</abbr></a></abbr>
  937. :
  938. <span class="phpdocumentor-element-found-in__line">174</span>
  939. </aside>
  940. <code class="phpdocumentor-code phpdocumentor-signature ">
  941. <span class="phpdocumentor-signature__visibility">public</span>
  942. <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>
  943. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  944. <dl class="phpdocumentor-argument-list">
  945. <dt class="phpdocumentor-argument-list__entry">
  946. <span class="phpdocumentor-signature__argument__name">$version</span>
  947. : <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>
  948. </dt>
  949. <dd class="phpdocumentor-argument-list__definition">
  950. <section class="phpdocumentor-description"></section>
  951. </dd>
  952. <dt class="phpdocumentor-argument-list__entry">
  953. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  954. : <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>
  955. </dt>
  956. <dd class="phpdocumentor-argument-list__definition">
  957. <section class="phpdocumentor-description"></section>
  958. </dd>
  959. <dt class="phpdocumentor-argument-list__entry">
  960. <span class="phpdocumentor-signature__argument__name">$str</span>
  961. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  962. </dt>
  963. <dd class="phpdocumentor-argument-list__definition">
  964. <section class="phpdocumentor-description"></section>
  965. </dd>
  966. </dl>
  967. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  968. Tags
  969. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  970. </h5>
  971. <dl class="phpdocumentor-tag-list">
  972. <dt class="phpdocumentor-tag-list__entry">
  973. <span class="phpdocumentor-tag__name">dataProvider</span>
  974. </dt>
  975. <dd class="phpdocumentor-tag-list__definition">
  976. <section class="phpdocumentor-description"><p>maxLengthProvider</p>
  977. </section>
  978. </dd>
  979. </dl>
  980. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  981. <span class="phpdocumentor-signature__response_type">void</span>
  982. &mdash;
  983. </article>
  984. <article
  985. class="phpdocumentor-element
  986. -method
  987. -public
  988. "
  989. >
  990. <h4 class="phpdocumentor-element__name" id="method_testMaxLengthOverflowException">
  991. testMaxLengthOverflowException()
  992. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException" class="headerlink"><i class="fas fa-link"></i></a>
  993. </h4>
  994. <aside class="phpdocumentor-element-found-in">
  995. <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>
  996. :
  997. <span class="phpdocumentor-element-found-in__line">214</span>
  998. </aside>
  999. <p class="phpdocumentor-summary">Tests if an exception is thrown on data overflow</p>
  1000. <code class="phpdocumentor-code phpdocumentor-signature ">
  1001. <span class="phpdocumentor-signature__visibility">public</span>
  1002. <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>
  1003. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1004. <dl class="phpdocumentor-argument-list">
  1005. <dt class="phpdocumentor-argument-list__entry">
  1006. <span class="phpdocumentor-signature__argument__name">$version</span>
  1007. : <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>
  1008. </dt>
  1009. <dd class="phpdocumentor-argument-list__definition">
  1010. <section class="phpdocumentor-description"></section>
  1011. </dd>
  1012. <dt class="phpdocumentor-argument-list__entry">
  1013. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  1014. : <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>
  1015. </dt>
  1016. <dd class="phpdocumentor-argument-list__definition">
  1017. <section class="phpdocumentor-description"></section>
  1018. </dd>
  1019. <dt class="phpdocumentor-argument-list__entry">
  1020. <span class="phpdocumentor-signature__argument__name">$str</span>
  1021. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1022. </dt>
  1023. <dd class="phpdocumentor-argument-list__definition">
  1024. <section class="phpdocumentor-description"></section>
  1025. </dd>
  1026. <dt class="phpdocumentor-argument-list__entry">
  1027. <span class="phpdocumentor-signature__argument__name">$str1</span>
  1028. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1029. </dt>
  1030. <dd class="phpdocumentor-argument-list__definition">
  1031. <section class="phpdocumentor-description"></section>
  1032. </dd>
  1033. </dl>
  1034. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1035. Tags
  1036. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1037. </h5>
  1038. <dl class="phpdocumentor-tag-list">
  1039. <dt class="phpdocumentor-tag-list__entry">
  1040. <span class="phpdocumentor-tag__name">dataProvider</span>
  1041. </dt>
  1042. <dd class="phpdocumentor-tag-list__definition">
  1043. <section class="phpdocumentor-description"><p>maxLengthProvider</p>
  1044. </section>
  1045. </dd>
  1046. </dl>
  1047. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1048. <span class="phpdocumentor-signature__response_type">void</span>
  1049. &mdash;
  1050. </article>
  1051. <article
  1052. class="phpdocumentor-element
  1053. -method
  1054. -public
  1055. "
  1056. >
  1057. <h4 class="phpdocumentor-element__name" id="method_testValidateString">
  1058. testValidateString()
  1059. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString" class="headerlink"><i class="fas fa-link"></i></a>
  1060. </h4>
  1061. <aside class="phpdocumentor-element-found-in">
  1062. <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>
  1063. :
  1064. <span class="phpdocumentor-element-found-in__line">88</span>
  1065. </aside>
  1066. <p class="phpdocumentor-summary">Tests if a string is properly validated for the respective data mode</p>
  1067. <code class="phpdocumentor-code phpdocumentor-signature ">
  1068. <span class="phpdocumentor-signature__visibility">public</span>
  1069. <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>
  1070. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1071. <dl class="phpdocumentor-argument-list">
  1072. <dt class="phpdocumentor-argument-list__entry">
  1073. <span class="phpdocumentor-signature__argument__name">$string</span>
  1074. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1075. </dt>
  1076. <dd class="phpdocumentor-argument-list__definition">
  1077. <section class="phpdocumentor-description"></section>
  1078. </dd>
  1079. <dt class="phpdocumentor-argument-list__entry">
  1080. <span class="phpdocumentor-signature__argument__name">$expected</span>
  1081. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1082. </dt>
  1083. <dd class="phpdocumentor-argument-list__definition">
  1084. <section class="phpdocumentor-description"></section>
  1085. </dd>
  1086. </dl>
  1087. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1088. Tags
  1089. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1090. </h5>
  1091. <dl class="phpdocumentor-tag-list">
  1092. <dt class="phpdocumentor-tag-list__entry">
  1093. <span class="phpdocumentor-tag__name">dataProvider</span>
  1094. </dt>
  1095. <dd class="phpdocumentor-tag-list__definition">
  1096. <section class="phpdocumentor-description"><p>stringValidateProvider</p>
  1097. </section>
  1098. </dd>
  1099. </dl>
  1100. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1101. <span class="phpdocumentor-signature__response_type">void</span>
  1102. &mdash;
  1103. </article>
  1104. <article
  1105. class="phpdocumentor-element
  1106. -method
  1107. -public
  1108. -static "
  1109. >
  1110. <h4 class="phpdocumentor-element__name" id="method_versionBreakpointProvider">
  1111. versionBreakpointProvider()
  1112. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider" class="headerlink"><i class="fas fa-link"></i></a>
  1113. </h4>
  1114. <aside class="phpdocumentor-element-found-in">
  1115. <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>
  1116. :
  1117. <span class="phpdocumentor-element-found-in__line">106</span>
  1118. </aside>
  1119. <p class="phpdocumentor-summary">returns versions within the version breakpoints 1-9, 10-26 and 27-40</p>
  1120. <code class="phpdocumentor-code phpdocumentor-signature ">
  1121. <span class="phpdocumentor-signature__visibility">public</span>
  1122. <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>
  1123. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1124. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  1125. &mdash;
  1126. </article>
  1127. <article
  1128. class="phpdocumentor-element
  1129. -method
  1130. -protected
  1131. "
  1132. >
  1133. <h4 class="phpdocumentor-element__name" id="method_setUp">
  1134. setUp()
  1135. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  1136. </h4>
  1137. <aside class="phpdocumentor-element-found-in">
  1138. <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>
  1139. :
  1140. <span class="phpdocumentor-element-found-in__line">40</span>
  1141. </aside>
  1142. <code class="phpdocumentor-code phpdocumentor-signature ">
  1143. <span class="phpdocumentor-signature__visibility">protected</span>
  1144. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1145. <section class="phpdocumentor-description"></section>
  1146. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1147. <span class="phpdocumentor-signature__response_type">void</span>
  1148. &mdash;
  1149. </article>
  1150. </section>
  1151. <script type="text/javascript">
  1152. function loadExternalCodeSnippets(line) {
  1153. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1154. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  1155. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  1156. var language = 'php';
  1157. var code = document.createElement('code');
  1158. code.className = 'language-' + language;
  1159. pre.textContent = '';
  1160. pre.setAttribute('data-line', line)
  1161. code.textContent = 'Loading…';
  1162. pre.appendChild(code);
  1163. var xhr = new XMLHttpRequest();
  1164. xhr.open('GET', src, true);
  1165. xhr.onreadystatechange = function () {
  1166. if (xhr.readyState == 4) {
  1167. if (xhr.status < 400 && xhr.responseText) {
  1168. code.textContent = xhr.responseText;
  1169. Prism.highlightElement(code);
  1170. }
  1171. else if (xhr.status >= 400) {
  1172. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1173. }
  1174. else {
  1175. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  1176. }
  1177. }
  1178. };
  1179. xhr.send(null);
  1180. });
  1181. }
  1182. var modals = document.querySelectorAll("[data-modal]");
  1183. modals.forEach(function (trigger) {
  1184. trigger.addEventListener("click", function (event) {
  1185. //event.preventDefault();
  1186. const modal = document.getElementById(trigger.dataset.modal);
  1187. modal.classList.add("phpdocumentor-modal__open");
  1188. loadExternalCodeSnippets(trigger.dataset.line)
  1189. const exits = modal.querySelectorAll("[data-exit-button]");
  1190. exits.forEach(function (exit) {
  1191. exit.addEventListener("click", function (event) {
  1192. event.preventDefault();
  1193. modal.classList.remove("phpdocumentor-modal__open");
  1194. });
  1195. });
  1196. });
  1197. });
  1198. </script>
  1199. </article>
  1200. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1201. <section class="phpdocumentor-search-results__dialog">
  1202. <header class="phpdocumentor-search-results__header">
  1203. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1204. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1205. </header>
  1206. <section class="phpdocumentor-search-results__body">
  1207. <ul class="phpdocumentor-search-results__entries"></ul>
  1208. </section>
  1209. </section>
  1210. </section>
  1211. </div>
  1212. </div>
  1213. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1214. </main>
  1215. <script>
  1216. cssVars({});
  1217. </script>
  1218. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1219. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1220. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1221. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1222. </body>
  1223. </html>