chillerlan-QRCodeTest-Data-AlphaNumTest.html 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927
  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. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace">
  56. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  57. </h4>
  58. <ul class="phpdocumentor-list">
  59. <li>
  60. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  61. </li>
  62. <li>
  63. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  64. </li>
  65. </ul>
  66. </section>
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="packages/Application.html" class="">Application</a>
  71. </h4>
  72. </section>
  73. <section class="phpdocumentor-sidebar__category">
  74. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  75. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  76. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  78. </section>
  79. <section class="phpdocumentor-sidebar__category">
  80. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  81. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  82. </section>
  83. </aside>
  84. <div class="phpdocumentor-column -eight phpdocumentor-content">
  85. <ul class="phpdocumentor-breadcrumbs">
  86. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  87. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  88. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  89. </ul>
  90. <article class="phpdocumentor-element -class">
  91. <h2 class="phpdocumentor-content__title">
  92. AlphaNumTest
  93. <span class="phpdocumentor-element__extends">
  94. extends <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Data\DatainterfaceTestAbstract">DatainterfaceTestAbstract</abbr></a>
  95. </span>
  96. <div class="phpdocumentor-element__package">
  97. in package
  98. <ul class="phpdocumentor-breadcrumbs">
  99. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  100. </ul>
  101. </div>
  102. </h2>
  103. <aside class="phpdocumentor-element-found-in">
  104. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/AlphaNumTest.php"><a href="files/tests-data-alphanumtest.html"><abbr title="tests/Data/AlphaNumTest.php">AlphaNumTest.php</abbr></a></abbr>
  105. :
  106. <span class="phpdocumentor-element-found-in__line">18</span>
  107. </aside>
  108. <p class="phpdocumentor-summary">Tests the AlphaNum class</p>
  109. <h3 id="toc">
  110. Table of Contents
  111. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  112. </h3>
  113. <dl class="phpdocumentor-table-of-contents">
  114. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  115. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#property_FQN">$FQN</a>
  116. <span>
  117. &nbsp;: string </span>
  118. </dt>
  119. <dd></dd>
  120. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  121. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#property_QRData">$QRData</a>
  122. <span>
  123. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a> </span>
  124. </dt>
  125. <dd></dd>
  126. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  127. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#property_reflection">$reflection</a>
  128. <span>
  129. &nbsp;: <abbr title="\ReflectionClass">ReflectionClass</abbr> </span>
  130. </dt>
  131. <dd></dd>
  132. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  133. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#property_testdata">$testdata</a>
  134. <span>
  135. &nbsp;: string </span>
  136. </dt>
  137. <dd></dd>
  138. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  139. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a>
  140. <span>
  141. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  142. </dt>
  143. <dd></dd>
  144. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  145. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#method_stringValidateProvider">stringValidateProvider()</a>
  146. <span>
  147. &nbsp;: array&lt;string|int, mixed&gt; </span>
  148. </dt>
  149. <dd>isAlphaNum() should pass on the 45 defined characters and fail on anything else (e.g. lowercase)</dd>
  150. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  151. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testCodeLengthOverflowException">testCodeLengthOverflowException()</a>
  152. <span>
  153. &nbsp;: void </span>
  154. </dt>
  155. <dd>Tests if an exception is thrown on data overflow</dd>
  156. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  157. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a>
  158. <span>
  159. &nbsp;: void </span>
  160. </dt>
  161. <dd>Tests getting the minimum QR version for the given data</dd>
  162. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  163. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a>
  164. <span>
  165. &nbsp;: void </span>
  166. </dt>
  167. <dd>Tests if an exception is thrown when the data exceeds the maximum version while auto detecting</dd>
  168. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  169. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a>
  170. <span>
  171. &nbsp;: void </span>
  172. </dt>
  173. <dd>Tests initializing the data matrix</dd>
  174. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  175. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInstance">testInstance()</a>
  176. <span>
  177. &nbsp;: void </span>
  178. </dt>
  179. <dd>Verifies the data interface instance</dd>
  180. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  181. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInvalidDataException">testInvalidDataException()</a>
  182. <span>
  183. &nbsp;: void </span>
  184. </dt>
  185. <dd>Tests if an exception is thrown when an invalid character is encountered</dd>
  186. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  187. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a>
  188. <span>
  189. &nbsp;: void </span>
  190. </dt>
  191. <dd>Tests if an exception is thrown if the given string is empty</dd>
  192. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  193. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testValidateString">testValidateString()</a>
  194. <span>
  195. &nbsp;: void </span>
  196. </dt>
  197. <dd></dd>
  198. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  199. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_setUp">setUp()</a>
  200. <span>
  201. &nbsp;: void </span>
  202. </dt>
  203. <dd></dd>
  204. </dl>
  205. <section class="phpdocumentor-properties">
  206. <h3 class="phpdocumentor-elements__header" id="properties">
  207. Properties
  208. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  209. </h3>
  210. <article
  211. class="
  212. phpdocumentor-element
  213. -property
  214. -protected
  215. "
  216. >
  217. <h4 class="phpdocumentor-element__name" id="property_FQN">
  218. $FQN
  219. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#property_FQN" class="headerlink"><i class="fas fa-link"></i></a>
  220. <span class="phpdocumentor-element__modifiers">
  221. </span>
  222. </h4>
  223. <aside class="phpdocumentor-element-found-in">
  224. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/AlphaNumTest.php"><a href="files/tests-data-alphanumtest.html"><abbr title="tests/Data/AlphaNumTest.php">AlphaNumTest.php</abbr></a></abbr>
  225. :
  226. <span class="phpdocumentor-element-found-in__line">20</span>
  227. </aside>
  228. <code class="phpdocumentor-code phpdocumentor-signature ">
  229. <span class="phpdocumentor-signature__visibility">protected</span>
  230. <span class="phpdocumentor-signature__type">string</span>
  231. <span class="phpdocumentor-signature__name">$FQN</span>
  232. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Data\AlphaNum::class</span></code>
  233. <section class="phpdocumentor-description"></section>
  234. <section class="phpdocumentor-description"></section>
  235. </article>
  236. <article
  237. class="
  238. phpdocumentor-element
  239. -property
  240. -protected
  241. "
  242. >
  243. <h4 class="phpdocumentor-element__name" id="property_QRData">
  244. $QRData
  245. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#property_QRData" class="headerlink"><i class="fas fa-link"></i></a>
  246. <span class="phpdocumentor-element__modifiers">
  247. </span>
  248. </h4>
  249. <aside class="phpdocumentor-element-found-in">
  250. <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>
  251. :
  252. <span class="phpdocumentor-element-found-in__line">28</span>
  253. </aside>
  254. <code class="phpdocumentor-code phpdocumentor-signature ">
  255. <span class="phpdocumentor-signature__visibility">protected</span>
  256. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a></span>
  257. <span class="phpdocumentor-signature__name">$QRData</span>
  258. </code>
  259. <section class="phpdocumentor-description"></section>
  260. <section class="phpdocumentor-description"></section>
  261. </article>
  262. <article
  263. class="
  264. phpdocumentor-element
  265. -property
  266. -protected
  267. "
  268. >
  269. <h4 class="phpdocumentor-element__name" id="property_reflection">
  270. $reflection
  271. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#property_reflection" class="headerlink"><i class="fas fa-link"></i></a>
  272. <span class="phpdocumentor-element__modifiers">
  273. </span>
  274. </h4>
  275. <aside class="phpdocumentor-element-found-in">
  276. <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>
  277. :
  278. <span class="phpdocumentor-element-found-in__line">27</span>
  279. </aside>
  280. <code class="phpdocumentor-code phpdocumentor-signature ">
  281. <span class="phpdocumentor-signature__visibility">protected</span>
  282. <span class="phpdocumentor-signature__type"><abbr title="\ReflectionClass">ReflectionClass</abbr></span>
  283. <span class="phpdocumentor-signature__name">$reflection</span>
  284. </code>
  285. <section class="phpdocumentor-description"></section>
  286. <section class="phpdocumentor-description"></section>
  287. </article>
  288. <article
  289. class="
  290. phpdocumentor-element
  291. -property
  292. -protected
  293. "
  294. >
  295. <h4 class="phpdocumentor-element__name" id="property_testdata">
  296. $testdata
  297. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#property_testdata" class="headerlink"><i class="fas fa-link"></i></a>
  298. <span class="phpdocumentor-element__modifiers">
  299. </span>
  300. </h4>
  301. <aside class="phpdocumentor-element-found-in">
  302. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/AlphaNumTest.php"><a href="files/tests-data-alphanumtest.html"><abbr title="tests/Data/AlphaNumTest.php">AlphaNumTest.php</abbr></a></abbr>
  303. :
  304. <span class="phpdocumentor-element-found-in__line">21</span>
  305. </aside>
  306. <code class="phpdocumentor-code phpdocumentor-signature ">
  307. <span class="phpdocumentor-signature__visibility">protected</span>
  308. <span class="phpdocumentor-signature__type">string</span>
  309. <span class="phpdocumentor-signature__name">$testdata</span>
  310. = <span class="phpdocumentor-signature__default-value">&#039;0 $%*+-./:&#039;</span></code>
  311. <section class="phpdocumentor-description"></section>
  312. <section class="phpdocumentor-description"></section>
  313. </article>
  314. </section>
  315. <section class="phpdocumentor-methods">
  316. <h3 class="phpdocumentor-elements__header" id="methods">
  317. Methods
  318. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  319. </h3>
  320. <article
  321. class="phpdocumentor-element
  322. -method
  323. -public
  324. "
  325. >
  326. <h4 class="phpdocumentor-element__name" id="method_maskPatternProvider">
  327. maskPatternProvider()
  328. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_maskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  329. </h4>
  330. <aside class="phpdocumentor-element-found-in">
  331. <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>
  332. :
  333. <span class="phpdocumentor-element-found-in__line">48</span>
  334. </aside>
  335. <code class="phpdocumentor-code phpdocumentor-signature ">
  336. <span class="phpdocumentor-signature__visibility">public</span>
  337. <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>
  338. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  339. Tags
  340. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  341. </h5>
  342. <dl class="phpdocumentor-tag-list">
  343. <dt class="phpdocumentor-tag-list__entry">
  344. <span class="phpdocumentor-tag__name">see</span>
  345. </dt>
  346. <dd class="phpdocumentor-tag-list__definition">
  347. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCodeTest\Data\testInitMatrix()">testInitMatrix()</abbr></span>
  348. </dd>
  349. </dl>
  350. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  351. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  352. &mdash;
  353. </article>
  354. <article
  355. class="phpdocumentor-element
  356. -method
  357. -public
  358. "
  359. >
  360. <h4 class="phpdocumentor-element__name" id="method_stringValidateProvider">
  361. stringValidateProvider()
  362. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#method_stringValidateProvider" class="headerlink"><i class="fas fa-link"></i></a>
  363. </h4>
  364. <aside class="phpdocumentor-element-found-in">
  365. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/AlphaNumTest.php"><a href="files/tests-data-alphanumtest.html"><abbr title="tests/Data/AlphaNumTest.php">AlphaNumTest.php</abbr></a></abbr>
  366. :
  367. <span class="phpdocumentor-element-found-in__line">26</span>
  368. </aside>
  369. <p class="phpdocumentor-summary">isAlphaNum() should pass on the 45 defined characters and fail on anything else (e.g. lowercase)</p>
  370. <code class="phpdocumentor-code phpdocumentor-signature ">
  371. <span class="phpdocumentor-signature__visibility">public</span>
  372. <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>
  373. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  374. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  375. &mdash;
  376. </article>
  377. <article
  378. class="phpdocumentor-element
  379. -method
  380. -public
  381. "
  382. >
  383. <h4 class="phpdocumentor-element__name" id="method_testCodeLengthOverflowException">
  384. testCodeLengthOverflowException()
  385. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testCodeLengthOverflowException" class="headerlink"><i class="fas fa-link"></i></a>
  386. </h4>
  387. <aside class="phpdocumentor-element-found-in">
  388. <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>
  389. :
  390. <span class="phpdocumentor-element-found-in__line">104</span>
  391. </aside>
  392. <p class="phpdocumentor-summary">Tests if an exception is thrown on data overflow</p>
  393. <code class="phpdocumentor-code phpdocumentor-signature ">
  394. <span class="phpdocumentor-signature__visibility">public</span>
  395. <span class="phpdocumentor-signature__name">testCodeLengthOverflowException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  396. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  397. <span class="phpdocumentor-signature__response_type">void</span>
  398. &mdash;
  399. </article>
  400. <article
  401. class="phpdocumentor-element
  402. -method
  403. -public
  404. "
  405. >
  406. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersion">
  407. testGetMinimumVersion()
  408. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testGetMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  409. </h4>
  410. <aside class="phpdocumentor-element-found-in">
  411. <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>
  412. :
  413. <span class="phpdocumentor-element-found-in__line">69</span>
  414. </aside>
  415. <p class="phpdocumentor-summary">Tests getting the minimum QR version for the given data</p>
  416. <code class="phpdocumentor-code phpdocumentor-signature ">
  417. <span class="phpdocumentor-signature__visibility">public</span>
  418. <span class="phpdocumentor-signature__name">testGetMinimumVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  419. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  420. <span class="phpdocumentor-signature__response_type">void</span>
  421. &mdash;
  422. </article>
  423. <article
  424. class="phpdocumentor-element
  425. -method
  426. -public
  427. "
  428. >
  429. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersionException">
  430. testGetMinimumVersionException()
  431. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testGetMinimumVersionException" class="headerlink"><i class="fas fa-link"></i></a>
  432. </h4>
  433. <aside class="phpdocumentor-element-found-in">
  434. <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>
  435. :
  436. <span class="phpdocumentor-element-found-in__line">91</span>
  437. </aside>
  438. <p class="phpdocumentor-summary">Tests if an exception is thrown when the data exceeds the maximum version while auto detecting</p>
  439. <code class="phpdocumentor-code phpdocumentor-signature ">
  440. <span class="phpdocumentor-signature__visibility">public</span>
  441. <span class="phpdocumentor-signature__name">testGetMinimumVersionException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  442. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  443. <span class="phpdocumentor-signature__response_type">void</span>
  444. &mdash;
  445. </article>
  446. <article
  447. class="phpdocumentor-element
  448. -method
  449. -public
  450. "
  451. >
  452. <h4 class="phpdocumentor-element__name" id="method_testInitMatrix">
  453. testInitMatrix()
  454. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInitMatrix" 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">57</span>
  460. </aside>
  461. <p class="phpdocumentor-summary">Tests initializing the data matrix</p>
  462. <code class="phpdocumentor-code phpdocumentor-signature ">
  463. <span class="phpdocumentor-signature__visibility">public</span>
  464. <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">$maskPattern</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  465. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  466. <dl class="phpdocumentor-argument-list">
  467. <dt class="phpdocumentor-argument-list__entry">
  468. <span class="phpdocumentor-signature__argument__name">$maskPattern</span>
  469. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  470. </dt>
  471. <dd class="phpdocumentor-argument-list__definition">
  472. <section class="phpdocumentor-description"></section>
  473. </dd>
  474. </dl>
  475. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  476. Tags
  477. <a href="#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">dataProvider</span>
  482. </dt>
  483. <dd class="phpdocumentor-tag-list__definition">
  484. <section class="phpdocumentor-description"><p>maskPatternProvider</p>
  485. </section>
  486. </dd>
  487. </dl>
  488. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  489. <span class="phpdocumentor-signature__response_type">void</span>
  490. &mdash;
  491. </article>
  492. <article
  493. class="phpdocumentor-element
  494. -method
  495. -public
  496. "
  497. >
  498. <h4 class="phpdocumentor-element__name" id="method_testInstance">
  499. testInstance()
  500. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInstance" 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">40</span>
  506. </aside>
  507. <p class="phpdocumentor-summary">Verifies the data interface instance</p>
  508. <code class="phpdocumentor-code phpdocumentor-signature ">
  509. <span class="phpdocumentor-signature__visibility">public</span>
  510. <span class="phpdocumentor-signature__name">testInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  511. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  512. <span class="phpdocumentor-signature__response_type">void</span>
  513. &mdash;
  514. </article>
  515. <article
  516. class="phpdocumentor-element
  517. -method
  518. -public
  519. "
  520. >
  521. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataException">
  522. testInvalidDataException()
  523. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInvalidDataException" class="headerlink"><i class="fas fa-link"></i></a>
  524. </h4>
  525. <aside class="phpdocumentor-element-found-in">
  526. <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>
  527. :
  528. <span class="phpdocumentor-element-found-in__line">114</span>
  529. </aside>
  530. <p class="phpdocumentor-summary">Tests if an exception is thrown when an invalid character is encountered</p>
  531. <code class="phpdocumentor-code phpdocumentor-signature ">
  532. <span class="phpdocumentor-signature__visibility">public</span>
  533. <span class="phpdocumentor-signature__name">testInvalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  534. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  535. <span class="phpdocumentor-signature__response_type">void</span>
  536. &mdash;
  537. </article>
  538. <article
  539. class="phpdocumentor-element
  540. -method
  541. -public
  542. "
  543. >
  544. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataOnEmptyException">
  545. testInvalidDataOnEmptyException()
  546. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInvalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  547. </h4>
  548. <aside class="phpdocumentor-element-found-in">
  549. <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>
  550. :
  551. <span class="phpdocumentor-element-found-in__line">124</span>
  552. </aside>
  553. <p class="phpdocumentor-summary">Tests if an exception is thrown if the given string is empty</p>
  554. <code class="phpdocumentor-code phpdocumentor-signature ">
  555. <span class="phpdocumentor-signature__visibility">public</span>
  556. <span class="phpdocumentor-signature__name">testInvalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  557. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  558. <span class="phpdocumentor-signature__response_type">void</span>
  559. &mdash;
  560. </article>
  561. <article
  562. class="phpdocumentor-element
  563. -method
  564. -public
  565. "
  566. >
  567. <h4 class="phpdocumentor-element__name" id="method_testValidateString">
  568. testValidateString()
  569. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testValidateString" class="headerlink"><i class="fas fa-link"></i></a>
  570. </h4>
  571. <aside class="phpdocumentor-element-found-in">
  572. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/DatainterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DatainterfaceTestAbstract.php">DatainterfaceTestAbstract.php</abbr></a></abbr>
  573. :
  574. <span class="phpdocumentor-element-found-in__line">83</span>
  575. </aside>
  576. <code class="phpdocumentor-code phpdocumentor-signature ">
  577. <span class="phpdocumentor-signature__visibility">public</span>
  578. <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>
  579. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  580. <dl class="phpdocumentor-argument-list">
  581. <dt class="phpdocumentor-argument-list__entry">
  582. <span class="phpdocumentor-signature__argument__name">$string</span>
  583. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  584. </dt>
  585. <dd class="phpdocumentor-argument-list__definition">
  586. <section class="phpdocumentor-description"></section>
  587. </dd>
  588. <dt class="phpdocumentor-argument-list__entry">
  589. <span class="phpdocumentor-signature__argument__name">$expected</span>
  590. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  591. </dt>
  592. <dd class="phpdocumentor-argument-list__definition">
  593. <section class="phpdocumentor-description"></section>
  594. </dd>
  595. </dl>
  596. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  597. Tags
  598. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  599. </h5>
  600. <dl class="phpdocumentor-tag-list">
  601. <dt class="phpdocumentor-tag-list__entry">
  602. <span class="phpdocumentor-tag__name">dataProvider</span>
  603. </dt>
  604. <dd class="phpdocumentor-tag-list__definition">
  605. <section class="phpdocumentor-description"><p>stringValidateProvider</p>
  606. </section>
  607. </dd>
  608. </dl>
  609. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  610. <span class="phpdocumentor-signature__response_type">void</span>
  611. &mdash;
  612. </article>
  613. <article
  614. class="phpdocumentor-element
  615. -method
  616. -protected
  617. "
  618. >
  619. <h4 class="phpdocumentor-element__name" id="method_setUp">
  620. setUp()
  621. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  622. </h4>
  623. <aside class="phpdocumentor-element-found-in">
  624. <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>
  625. :
  626. <span class="phpdocumentor-element-found-in__line">32</span>
  627. </aside>
  628. <code class="phpdocumentor-code phpdocumentor-signature ">
  629. <span class="phpdocumentor-signature__visibility">protected</span>
  630. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  631. <section class="phpdocumentor-description"></section>
  632. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  633. <span class="phpdocumentor-signature__response_type">void</span>
  634. &mdash;
  635. </article>
  636. </section>
  637. <script type="text/javascript">
  638. function loadExternalCodeSnippets(line) {
  639. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  640. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  641. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  642. var language = 'php';
  643. var code = document.createElement('code');
  644. code.className = 'language-' + language;
  645. pre.textContent = '';
  646. pre.setAttribute('data-line', line)
  647. code.textContent = 'Loading…';
  648. pre.appendChild(code);
  649. var xhr = new XMLHttpRequest();
  650. xhr.open('GET', src, true);
  651. xhr.onreadystatechange = function () {
  652. if (xhr.readyState == 4) {
  653. if (xhr.status < 400 && xhr.responseText) {
  654. code.textContent = xhr.responseText;
  655. Prism.highlightElement(code);
  656. }
  657. else if (xhr.status >= 400) {
  658. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  659. }
  660. else {
  661. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  662. }
  663. }
  664. };
  665. xhr.send(null);
  666. });
  667. }
  668. var modals = document.querySelectorAll("[data-modal]");
  669. modals.forEach(function (trigger) {
  670. trigger.addEventListener("click", function (event) {
  671. //event.preventDefault();
  672. const modal = document.getElementById(trigger.dataset.modal);
  673. modal.classList.add("phpdocumentor-modal__open");
  674. loadExternalCodeSnippets(trigger.dataset.line)
  675. const exits = modal.querySelectorAll("[data-exit-button]");
  676. exits.forEach(function (exit) {
  677. exit.addEventListener("click", function (event) {
  678. event.preventDefault();
  679. modal.classList.remove("phpdocumentor-modal__open");
  680. });
  681. });
  682. });
  683. });
  684. </script>
  685. </article>
  686. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  687. <section class="phpdocumentor-search-results__dialog">
  688. <header class="phpdocumentor-search-results__header">
  689. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  690. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  691. </header>
  692. <section class="phpdocumentor-search-results__body">
  693. <ul class="phpdocumentor-search-results__entries"></ul>
  694. </section>
  695. </section>
  696. </section>
  697. </div>
  698. </div>
  699. <a href="classes/chillerlan-QRCodeTest-Data-AlphaNumTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  700. </main>
  701. <script>
  702. cssVars({});
  703. </script>
  704. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  705. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  706. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  707. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  708. </body>
  709. </html>