chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html 41 KB

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