chillerlan-QRCodeTest-Data-ECITest.html 69 KB

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