chillerlan-QRCodeTest-Data-QRMatrixTest.html 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468
  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. QRMatrixTest
  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/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">22</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">Tests the QRMatix class</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 -constant -protected">
  111. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#constant_version">version</a>
  112. <span>
  113. &nbsp;= 40 </span>
  114. </dt>
  115. <dd></dd>
  116. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  117. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#property_matrix">$matrix</a>
  118. <span>
  119. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  120. </dt>
  121. <dd></dd>
  122. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  123. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testECC">testECC()</a>
  124. <span>
  125. &nbsp;: void </span>
  126. </dt>
  127. <dd>Tests if eccLevel() returns the current (given) ECC level</dd>
  128. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  129. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testFlip">testFlip()</a>
  130. <span>
  131. &nbsp;: void </span>
  132. </dt>
  133. <dd>Tests flipping the value of a module</dd>
  134. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  135. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetSetCheck">testGetSetCheck()</a>
  136. <span>
  137. &nbsp;: void </span>
  138. </dt>
  139. <dd>Tests the set(), get() and check() methods</dd>
  140. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  141. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testInstance">testInstance()</a>
  142. <span>
  143. &nbsp;: void </span>
  144. </dt>
  145. <dd>Validates the QRMatrix instance</dd>
  146. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  147. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testMaskPattern">testMaskPattern()</a>
  148. <span>
  149. &nbsp;: void </span>
  150. </dt>
  151. <dd>Tests if maskPattern() returns the current (or default) mask pattern</dd>
  152. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  153. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetAlignmentPattern">testSetAlignmentPattern()</a>
  154. <span>
  155. &nbsp;: void </span>
  156. </dt>
  157. <dd>Tests the alignment patterns and verifies their positions - version 1 (no pattern) skipped</dd>
  158. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  159. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetDarkModule">testSetDarkModule()</a>
  160. <span>
  161. &nbsp;: void </span>
  162. </dt>
  163. <dd>Tests setting the dark module and verifies its position</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  165. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFinderPattern">testSetFinderPattern()</a>
  166. <span>
  167. &nbsp;: void </span>
  168. </dt>
  169. <dd>Tests setting the finder patterns and verifies their positions</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  171. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFormatInfo">testSetFormatInfo()</a>
  172. <span>
  173. &nbsp;: void </span>
  174. </dt>
  175. <dd>Tests the format patterns and verifies their positions</dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  177. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceInvalidEccException">testSetLogoSpaceInvalidEccException()</a>
  178. <span>
  179. &nbsp;: void </span>
  180. </dt>
  181. <dd>Tests whether an exception is thrown when an ECC level other than &quot;H&quot; is set when attempting to add logo space</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  183. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceMaxSizeException">testSetLogoSpaceMaxSizeException()</a>
  184. <span>
  185. &nbsp;: void </span>
  186. </dt>
  187. <dd>Tests whether an exception is thrown when the logo space size exceeds the maximum ECC capacity</dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  189. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOrientation">testSetLogoSpaceOrientation()</a>
  190. <span>
  191. &nbsp;: void </span>
  192. </dt>
  193. <dd>Tests the auto orientation of the logo space</dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  195. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpacePosition">testSetLogoSpacePosition()</a>
  196. <span>
  197. &nbsp;: void </span>
  198. </dt>
  199. <dd>Tests the manual positioning of the logo space</dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  201. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZone">testSetQuietZone()</a>
  202. <span>
  203. &nbsp;: void </span>
  204. </dt>
  205. <dd>Tests the quiet zone pattern and verifies its position</dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  207. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZoneException">testSetQuietZoneException()</a>
  208. <span>
  209. &nbsp;: void </span>
  210. </dt>
  211. <dd>Tests if an exception is thrown in an attempt to create the quiet zone before data was written</dd>
  212. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  213. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetSeparators">testSetSeparators()</a>
  214. <span>
  215. &nbsp;: void </span>
  216. </dt>
  217. <dd>Tests the separator patterns and verifies their positions</dd>
  218. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  219. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetTimingPattern">testSetTimingPattern()</a>
  220. <span>
  221. &nbsp;: void </span>
  222. </dt>
  223. <dd>Tests the timing patterns and verifies their positions</dd>
  224. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  225. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetVersionNumber">testSetVersionNumber()</a>
  226. <span>
  227. &nbsp;: void </span>
  228. </dt>
  229. <dd>Tests the version patterns and verifies their positions - version &lt; 7 skipped</dd>
  230. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  231. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSize">testSize()</a>
  232. <span>
  233. &nbsp;: void </span>
  234. </dt>
  235. <dd>Tests if size() returns the actual matrix size/count</dd>
  236. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  237. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testVersion">testVersion()</a>
  238. <span>
  239. &nbsp;: void </span>
  240. </dt>
  241. <dd>Tests if version() returns the current (given) version</dd>
  242. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  243. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_versionProvider">versionProvider()</a>
  244. <span>
  245. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  246. </dt>
  247. <dd>Version data provider for several pattern tests</dd>
  248. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  249. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_getMatrix">getMatrix()</a>
  250. <span>
  251. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  252. </dt>
  253. <dd>shortcut</dd>
  254. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  255. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_setUp">setUp()</a>
  256. <span>
  257. &nbsp;: void </span>
  258. </dt>
  259. <dd>invokes a QRMatrix object</dd>
  260. </dl>
  261. <section class="phpdocumentor-constants">
  262. <h3 class="phpdocumentor-elements__header" id="constants">
  263. Constants
  264. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  265. </h3>
  266. <article class="phpdocumentor-element -constant -protected ">
  267. <h4 class="phpdocumentor-element__name" id="constant_version">
  268. version
  269. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#constant_version" class="headerlink"><i class="fas fa-link"></i></a>
  270. </h4>
  271. <aside class="phpdocumentor-element-found-in">
  272. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  273. :
  274. <span class="phpdocumentor-element-found-in__line">24</span>
  275. </aside>
  276. <code class="phpdocumentor-signature phpdocumentor-code ">
  277. <span class="phpdocumentor-signature__visibility">protected</span>
  278. <span class="phpdocumentor-signature__type">mixed</span>
  279. <span class="phpdocumentor-signature__name">version</span>
  280. = <span class="phpdocumentor-signature__default-value">40</span>
  281. </code>
  282. <section class="phpdocumentor-description"></section>
  283. <section class="phpdocumentor-description"></section>
  284. </article>
  285. </section>
  286. <section class="phpdocumentor-properties">
  287. <h3 class="phpdocumentor-elements__header" id="properties">
  288. Properties
  289. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  290. </h3>
  291. <article
  292. class="
  293. phpdocumentor-element
  294. -property
  295. -protected
  296. "
  297. >
  298. <h4 class="phpdocumentor-element__name" id="property_matrix">
  299. $matrix
  300. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  301. <span class="phpdocumentor-element__modifiers">
  302. </span>
  303. </h4>
  304. <aside class="phpdocumentor-element-found-in">
  305. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  306. :
  307. <span class="phpdocumentor-element-found-in__line">25</span>
  308. </aside>
  309. <code class="phpdocumentor-code phpdocumentor-signature ">
  310. <span class="phpdocumentor-signature__visibility">protected</span>
  311. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  312. <span class="phpdocumentor-signature__name">$matrix</span>
  313. </code>
  314. <section class="phpdocumentor-description"></section>
  315. <section class="phpdocumentor-description"></section>
  316. </article>
  317. </section>
  318. <section class="phpdocumentor-methods">
  319. <h3 class="phpdocumentor-elements__header" id="methods">
  320. Methods
  321. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  322. </h3>
  323. <article
  324. class="phpdocumentor-element
  325. -method
  326. -public
  327. "
  328. >
  329. <h4 class="phpdocumentor-element__name" id="method_testECC">
  330. testECC()
  331. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testECC" class="headerlink"><i class="fas fa-link"></i></a>
  332. </h4>
  333. <aside class="phpdocumentor-element-found-in">
  334. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  335. :
  336. <span class="phpdocumentor-element-found-in__line">65</span>
  337. </aside>
  338. <p class="phpdocumentor-summary">Tests if eccLevel() returns the current (given) ECC level</p>
  339. <code class="phpdocumentor-code phpdocumentor-signature ">
  340. <span class="phpdocumentor-signature__visibility">public</span>
  341. <span class="phpdocumentor-signature__name">testECC</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  342. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  343. <span class="phpdocumentor-signature__response_type">void</span>
  344. &mdash;
  345. </article>
  346. <article
  347. class="phpdocumentor-element
  348. -method
  349. -public
  350. "
  351. >
  352. <h4 class="phpdocumentor-element__name" id="method_testFlip">
  353. testFlip()
  354. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testFlip" class="headerlink"><i class="fas fa-link"></i></a>
  355. </h4>
  356. <aside class="phpdocumentor-element-found-in">
  357. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  358. :
  359. <span class="phpdocumentor-element-found-in__line">353</span>
  360. </aside>
  361. <p class="phpdocumentor-summary">Tests flipping the value of a module</p>
  362. <code class="phpdocumentor-code phpdocumentor-signature ">
  363. <span class="phpdocumentor-signature__visibility">public</span>
  364. <span class="phpdocumentor-signature__name">testFlip</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  365. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  366. <span class="phpdocumentor-signature__response_type">void</span>
  367. &mdash;
  368. </article>
  369. <article
  370. class="phpdocumentor-element
  371. -method
  372. -public
  373. "
  374. >
  375. <h4 class="phpdocumentor-element__name" id="method_testGetSetCheck">
  376. testGetSetCheck()
  377. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetSetCheck" class="headerlink"><i class="fas fa-link"></i></a>
  378. </h4>
  379. <aside class="phpdocumentor-element-found-in">
  380. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  381. :
  382. <span class="phpdocumentor-element-found-in__line">84</span>
  383. </aside>
  384. <p class="phpdocumentor-summary">Tests the set(), get() and check() methods</p>
  385. <code class="phpdocumentor-code phpdocumentor-signature ">
  386. <span class="phpdocumentor-signature__visibility">public</span>
  387. <span class="phpdocumentor-signature__name">testGetSetCheck</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  388. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  389. <span class="phpdocumentor-signature__response_type">void</span>
  390. &mdash;
  391. </article>
  392. <article
  393. class="phpdocumentor-element
  394. -method
  395. -public
  396. "
  397. >
  398. <h4 class="phpdocumentor-element__name" id="method_testInstance">
  399. testInstance()
  400. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testInstance" class="headerlink"><i class="fas fa-link"></i></a>
  401. </h4>
  402. <aside class="phpdocumentor-element-found-in">
  403. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  404. :
  405. <span class="phpdocumentor-element-found-in__line">44</span>
  406. </aside>
  407. <p class="phpdocumentor-summary">Validates the QRMatrix instance</p>
  408. <code class="phpdocumentor-code phpdocumentor-signature ">
  409. <span class="phpdocumentor-signature__visibility">public</span>
  410. <span class="phpdocumentor-signature__name">testInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  411. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  412. <span class="phpdocumentor-signature__response_type">void</span>
  413. &mdash;
  414. </article>
  415. <article
  416. class="phpdocumentor-element
  417. -method
  418. -public
  419. "
  420. >
  421. <h4 class="phpdocumentor-element__name" id="method_testMaskPattern">
  422. testMaskPattern()
  423. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testMaskPattern" class="headerlink"><i class="fas fa-link"></i></a>
  424. </h4>
  425. <aside class="phpdocumentor-element-found-in">
  426. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  427. :
  428. <span class="phpdocumentor-element-found-in__line">72</span>
  429. </aside>
  430. <p class="phpdocumentor-summary">Tests if maskPattern() returns the current (or default) mask pattern</p>
  431. <code class="phpdocumentor-code phpdocumentor-signature ">
  432. <span class="phpdocumentor-signature__visibility">public</span>
  433. <span class="phpdocumentor-signature__name">testMaskPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  434. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  435. <span class="phpdocumentor-signature__response_type">void</span>
  436. &mdash;
  437. </article>
  438. <article
  439. class="phpdocumentor-element
  440. -method
  441. -public
  442. "
  443. >
  444. <h4 class="phpdocumentor-element__name" id="method_testSetAlignmentPattern">
  445. testSetAlignmentPattern()
  446. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetAlignmentPattern" 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/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  450. :
  451. <span class="phpdocumentor-element-found-in__line">146</span>
  452. </aside>
  453. <p class="phpdocumentor-summary">Tests the alignment patterns and verifies their positions - version 1 (no pattern) skipped</p>
  454. <code class="phpdocumentor-code phpdocumentor-signature ">
  455. <span class="phpdocumentor-signature__visibility">public</span>
  456. <span class="phpdocumentor-signature__name">testSetAlignmentPattern</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>
  457. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  458. <dl class="phpdocumentor-argument-list">
  459. <dt class="phpdocumentor-argument-list__entry">
  460. <span class="phpdocumentor-signature__argument__name">$version</span>
  461. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  462. </dt>
  463. <dd class="phpdocumentor-argument-list__definition">
  464. <section class="phpdocumentor-description"></section>
  465. </dd>
  466. </dl>
  467. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  468. Tags
  469. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  470. </h5>
  471. <dl class="phpdocumentor-tag-list">
  472. <dt class="phpdocumentor-tag-list__entry">
  473. <span class="phpdocumentor-tag__name">dataProvider</span>
  474. </dt>
  475. <dd class="phpdocumentor-tag-list__definition">
  476. <section class="phpdocumentor-description"><p>versionProvider</p>
  477. </section>
  478. </dd>
  479. </dl>
  480. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  481. <span class="phpdocumentor-signature__response_type">void</span>
  482. &mdash;
  483. </article>
  484. <article
  485. class="phpdocumentor-element
  486. -method
  487. -public
  488. "
  489. >
  490. <h4 class="phpdocumentor-element__name" id="method_testSetDarkModule">
  491. testSetDarkModule()
  492. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetDarkModule" class="headerlink"><i class="fas fa-link"></i></a>
  493. </h4>
  494. <aside class="phpdocumentor-element-found-in">
  495. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  496. :
  497. <span class="phpdocumentor-element-found-in__line">108</span>
  498. </aside>
  499. <p class="phpdocumentor-summary">Tests setting the dark module and verifies its position</p>
  500. <code class="phpdocumentor-code phpdocumentor-signature ">
  501. <span class="phpdocumentor-signature__visibility">public</span>
  502. <span class="phpdocumentor-signature__name">testSetDarkModule</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>
  503. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  504. <dl class="phpdocumentor-argument-list">
  505. <dt class="phpdocumentor-argument-list__entry">
  506. <span class="phpdocumentor-signature__argument__name">$version</span>
  507. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  508. </dt>
  509. <dd class="phpdocumentor-argument-list__definition">
  510. <section class="phpdocumentor-description"></section>
  511. </dd>
  512. </dl>
  513. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  514. Tags
  515. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  516. </h5>
  517. <dl class="phpdocumentor-tag-list">
  518. <dt class="phpdocumentor-tag-list__entry">
  519. <span class="phpdocumentor-tag__name">dataProvider</span>
  520. </dt>
  521. <dd class="phpdocumentor-tag-list__definition">
  522. <section class="phpdocumentor-description"><p>versionProvider</p>
  523. </section>
  524. </dd>
  525. </dl>
  526. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  527. <span class="phpdocumentor-signature__response_type">void</span>
  528. &mdash;
  529. </article>
  530. <article
  531. class="phpdocumentor-element
  532. -method
  533. -public
  534. "
  535. >
  536. <h4 class="phpdocumentor-element__name" id="method_testSetFinderPattern">
  537. testSetFinderPattern()
  538. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFinderPattern" class="headerlink"><i class="fas fa-link"></i></a>
  539. </h4>
  540. <aside class="phpdocumentor-element-found-in">
  541. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  542. :
  543. <span class="phpdocumentor-element-found-in__line">119</span>
  544. </aside>
  545. <p class="phpdocumentor-summary">Tests setting the finder patterns and verifies their positions</p>
  546. <code class="phpdocumentor-code phpdocumentor-signature ">
  547. <span class="phpdocumentor-signature__visibility">public</span>
  548. <span class="phpdocumentor-signature__name">testSetFinderPattern</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>
  549. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  550. <dl class="phpdocumentor-argument-list">
  551. <dt class="phpdocumentor-argument-list__entry">
  552. <span class="phpdocumentor-signature__argument__name">$version</span>
  553. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  554. </dt>
  555. <dd class="phpdocumentor-argument-list__definition">
  556. <section class="phpdocumentor-description"></section>
  557. </dd>
  558. </dl>
  559. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  560. Tags
  561. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  562. </h5>
  563. <dl class="phpdocumentor-tag-list">
  564. <dt class="phpdocumentor-tag-list__entry">
  565. <span class="phpdocumentor-tag__name">dataProvider</span>
  566. </dt>
  567. <dd class="phpdocumentor-tag-list__definition">
  568. <section class="phpdocumentor-description"><p>versionProvider</p>
  569. </section>
  570. </dd>
  571. </dl>
  572. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  573. <span class="phpdocumentor-signature__response_type">void</span>
  574. &mdash;
  575. </article>
  576. <article
  577. class="phpdocumentor-element
  578. -method
  579. -public
  580. "
  581. >
  582. <h4 class="phpdocumentor-element__name" id="method_testSetFormatInfo">
  583. testSetFormatInfo()
  584. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFormatInfo" class="headerlink"><i class="fas fa-link"></i></a>
  585. </h4>
  586. <aside class="phpdocumentor-element-found-in">
  587. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  588. :
  589. <span class="phpdocumentor-element-found-in__line">227</span>
  590. </aside>
  591. <p class="phpdocumentor-summary">Tests the format patterns and verifies their positions</p>
  592. <code class="phpdocumentor-code phpdocumentor-signature ">
  593. <span class="phpdocumentor-signature__visibility">public</span>
  594. <span class="phpdocumentor-signature__name">testSetFormatInfo</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>
  595. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  596. <dl class="phpdocumentor-argument-list">
  597. <dt class="phpdocumentor-argument-list__entry">
  598. <span class="phpdocumentor-signature__argument__name">$version</span>
  599. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  600. </dt>
  601. <dd class="phpdocumentor-argument-list__definition">
  602. <section class="phpdocumentor-description"></section>
  603. </dd>
  604. </dl>
  605. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  606. Tags
  607. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  608. </h5>
  609. <dl class="phpdocumentor-tag-list">
  610. <dt class="phpdocumentor-tag-list__entry">
  611. <span class="phpdocumentor-tag__name">dataProvider</span>
  612. </dt>
  613. <dd class="phpdocumentor-tag-list__definition">
  614. <section class="phpdocumentor-description"><p>versionProvider</p>
  615. </section>
  616. </dd>
  617. </dl>
  618. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  619. <span class="phpdocumentor-signature__response_type">void</span>
  620. &mdash;
  621. </article>
  622. <article
  623. class="phpdocumentor-element
  624. -method
  625. -public
  626. "
  627. >
  628. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpaceInvalidEccException">
  629. testSetLogoSpaceInvalidEccException()
  630. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceInvalidEccException" class="headerlink"><i class="fas fa-link"></i></a>
  631. </h4>
  632. <aside class="phpdocumentor-element-found-in">
  633. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  634. :
  635. <span class="phpdocumentor-element-found-in__line">329</span>
  636. </aside>
  637. <p class="phpdocumentor-summary">Tests whether an exception is thrown when an ECC level other than &quot;H&quot; is set when attempting to add logo space</p>
  638. <code class="phpdocumentor-code phpdocumentor-signature ">
  639. <span class="phpdocumentor-signature__visibility">public</span>
  640. <span class="phpdocumentor-signature__name">testSetLogoSpaceInvalidEccException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  641. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  642. <span class="phpdocumentor-signature__response_type">void</span>
  643. &mdash;
  644. </article>
  645. <article
  646. class="phpdocumentor-element
  647. -method
  648. -public
  649. "
  650. >
  651. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpaceMaxSizeException">
  652. testSetLogoSpaceMaxSizeException()
  653. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceMaxSizeException" class="headerlink"><i class="fas fa-link"></i></a>
  654. </h4>
  655. <aside class="phpdocumentor-element-found-in">
  656. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  657. :
  658. <span class="phpdocumentor-element-found-in__line">339</span>
  659. </aside>
  660. <p class="phpdocumentor-summary">Tests whether an exception is thrown when the logo space size exceeds the maximum ECC capacity</p>
  661. <code class="phpdocumentor-code phpdocumentor-signature ">
  662. <span class="phpdocumentor-signature__visibility">public</span>
  663. <span class="phpdocumentor-signature__name">testSetLogoSpaceMaxSizeException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  664. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  665. <span class="phpdocumentor-signature__response_type">void</span>
  666. &mdash;
  667. </article>
  668. <article
  669. class="phpdocumentor-element
  670. -method
  671. -public
  672. "
  673. >
  674. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpaceOrientation">
  675. testSetLogoSpaceOrientation()
  676. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOrientation" class="headerlink"><i class="fas fa-link"></i></a>
  677. </h4>
  678. <aside class="phpdocumentor-element-found-in">
  679. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  680. :
  681. <span class="phpdocumentor-element-found-in__line">276</span>
  682. </aside>
  683. <p class="phpdocumentor-summary">Tests the auto orientation of the logo space</p>
  684. <code class="phpdocumentor-code phpdocumentor-signature ">
  685. <span class="phpdocumentor-signature__visibility">public</span>
  686. <span class="phpdocumentor-signature__name">testSetLogoSpaceOrientation</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  687. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  688. <span class="phpdocumentor-signature__response_type">void</span>
  689. &mdash;
  690. </article>
  691. <article
  692. class="phpdocumentor-element
  693. -method
  694. -public
  695. "
  696. >
  697. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpacePosition">
  698. testSetLogoSpacePosition()
  699. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpacePosition" class="headerlink"><i class="fas fa-link"></i></a>
  700. </h4>
  701. <aside class="phpdocumentor-element-found-in">
  702. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  703. :
  704. <span class="phpdocumentor-element-found-in__line">298</span>
  705. </aside>
  706. <p class="phpdocumentor-summary">Tests the manual positioning of the logo space</p>
  707. <code class="phpdocumentor-code phpdocumentor-signature ">
  708. <span class="phpdocumentor-signature__visibility">public</span>
  709. <span class="phpdocumentor-signature__name">testSetLogoSpacePosition</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  710. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  711. <span class="phpdocumentor-signature__response_type">void</span>
  712. &mdash;
  713. </article>
  714. <article
  715. class="phpdocumentor-element
  716. -method
  717. -public
  718. "
  719. >
  720. <h4 class="phpdocumentor-element__name" id="method_testSetQuietZone">
  721. testSetQuietZone()
  722. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZone" class="headerlink"><i class="fas fa-link"></i></a>
  723. </h4>
  724. <aside class="phpdocumentor-element-found-in">
  725. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  726. :
  727. <span class="phpdocumentor-element-found-in__line">241</span>
  728. </aside>
  729. <p class="phpdocumentor-summary">Tests the quiet zone pattern and verifies its position</p>
  730. <code class="phpdocumentor-code phpdocumentor-signature ">
  731. <span class="phpdocumentor-signature__visibility">public</span>
  732. <span class="phpdocumentor-signature__name">testSetQuietZone</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>
  733. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  734. <dl class="phpdocumentor-argument-list">
  735. <dt class="phpdocumentor-argument-list__entry">
  736. <span class="phpdocumentor-signature__argument__name">$version</span>
  737. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  738. </dt>
  739. <dd class="phpdocumentor-argument-list__definition">
  740. <section class="phpdocumentor-description"></section>
  741. </dd>
  742. </dl>
  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">dataProvider</span>
  750. </dt>
  751. <dd class="phpdocumentor-tag-list__definition">
  752. <section class="phpdocumentor-description"><p>versionProvider</p>
  753. </section>
  754. </dd>
  755. </dl>
  756. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  757. <span class="phpdocumentor-signature__response_type">void</span>
  758. &mdash;
  759. </article>
  760. <article
  761. class="phpdocumentor-element
  762. -method
  763. -public
  764. "
  765. >
  766. <h4 class="phpdocumentor-element__name" id="method_testSetQuietZoneException">
  767. testSetQuietZoneException()
  768. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZoneException" class="headerlink"><i class="fas fa-link"></i></a>
  769. </h4>
  770. <aside class="phpdocumentor-element-found-in">
  771. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  772. :
  773. <span class="phpdocumentor-element-found-in__line">266</span>
  774. </aside>
  775. <p class="phpdocumentor-summary">Tests if an exception is thrown in an attempt to create the quiet zone before data was written</p>
  776. <code class="phpdocumentor-code phpdocumentor-signature ">
  777. <span class="phpdocumentor-signature__visibility">public</span>
  778. <span class="phpdocumentor-signature__name">testSetQuietZoneException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  779. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  780. <span class="phpdocumentor-signature__response_type">void</span>
  781. &mdash;
  782. </article>
  783. <article
  784. class="phpdocumentor-element
  785. -method
  786. -public
  787. "
  788. >
  789. <h4 class="phpdocumentor-element__name" id="method_testSetSeparators">
  790. testSetSeparators()
  791. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetSeparators" class="headerlink"><i class="fas fa-link"></i></a>
  792. </h4>
  793. <aside class="phpdocumentor-element-found-in">
  794. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  795. :
  796. <span class="phpdocumentor-element-found-in__line">132</span>
  797. </aside>
  798. <p class="phpdocumentor-summary">Tests the separator patterns and verifies their positions</p>
  799. <code class="phpdocumentor-code phpdocumentor-signature ">
  800. <span class="phpdocumentor-signature__visibility">public</span>
  801. <span class="phpdocumentor-signature__name">testSetSeparators</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>
  802. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  803. <dl class="phpdocumentor-argument-list">
  804. <dt class="phpdocumentor-argument-list__entry">
  805. <span class="phpdocumentor-signature__argument__name">$version</span>
  806. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  807. </dt>
  808. <dd class="phpdocumentor-argument-list__definition">
  809. <section class="phpdocumentor-description"></section>
  810. </dd>
  811. </dl>
  812. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  813. Tags
  814. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  815. </h5>
  816. <dl class="phpdocumentor-tag-list">
  817. <dt class="phpdocumentor-tag-list__entry">
  818. <span class="phpdocumentor-tag__name">dataProvider</span>
  819. </dt>
  820. <dd class="phpdocumentor-tag-list__definition">
  821. <section class="phpdocumentor-description"><p>versionProvider</p>
  822. </section>
  823. </dd>
  824. </dl>
  825. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  826. <span class="phpdocumentor-signature__response_type">void</span>
  827. &mdash;
  828. </article>
  829. <article
  830. class="phpdocumentor-element
  831. -method
  832. -public
  833. "
  834. >
  835. <h4 class="phpdocumentor-element__name" id="method_testSetTimingPattern">
  836. testSetTimingPattern()
  837. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetTimingPattern" class="headerlink"><i class="fas fa-link"></i></a>
  838. </h4>
  839. <aside class="phpdocumentor-element-found-in">
  840. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  841. :
  842. <span class="phpdocumentor-element-found-in__line">179</span>
  843. </aside>
  844. <p class="phpdocumentor-summary">Tests the timing patterns and verifies their positions</p>
  845. <code class="phpdocumentor-code phpdocumentor-signature ">
  846. <span class="phpdocumentor-signature__visibility">public</span>
  847. <span class="phpdocumentor-signature__name">testSetTimingPattern</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>
  848. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  849. <dl class="phpdocumentor-argument-list">
  850. <dt class="phpdocumentor-argument-list__entry">
  851. <span class="phpdocumentor-signature__argument__name">$version</span>
  852. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  853. </dt>
  854. <dd class="phpdocumentor-argument-list__definition">
  855. <section class="phpdocumentor-description"></section>
  856. </dd>
  857. </dl>
  858. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  859. Tags
  860. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  861. </h5>
  862. <dl class="phpdocumentor-tag-list">
  863. <dt class="phpdocumentor-tag-list__entry">
  864. <span class="phpdocumentor-tag__name">dataProvider</span>
  865. </dt>
  866. <dd class="phpdocumentor-tag-list__definition">
  867. <section class="phpdocumentor-description"><p>versionProvider</p>
  868. </section>
  869. </dd>
  870. </dl>
  871. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  872. <span class="phpdocumentor-signature__response_type">void</span>
  873. &mdash;
  874. </article>
  875. <article
  876. class="phpdocumentor-element
  877. -method
  878. -public
  879. "
  880. >
  881. <h4 class="phpdocumentor-element__name" id="method_testSetVersionNumber">
  882. testSetVersionNumber()
  883. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetVersionNumber" class="headerlink"><i class="fas fa-link"></i></a>
  884. </h4>
  885. <aside class="phpdocumentor-element-found-in">
  886. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  887. :
  888. <span class="phpdocumentor-element-found-in__line">208</span>
  889. </aside>
  890. <p class="phpdocumentor-summary">Tests the version patterns and verifies their positions - version &lt; 7 skipped</p>
  891. <code class="phpdocumentor-code phpdocumentor-signature ">
  892. <span class="phpdocumentor-signature__visibility">public</span>
  893. <span class="phpdocumentor-signature__name">testSetVersionNumber</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>
  894. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  895. <dl class="phpdocumentor-argument-list">
  896. <dt class="phpdocumentor-argument-list__entry">
  897. <span class="phpdocumentor-signature__argument__name">$version</span>
  898. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  899. </dt>
  900. <dd class="phpdocumentor-argument-list__definition">
  901. <section class="phpdocumentor-description"></section>
  902. </dd>
  903. </dl>
  904. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  905. Tags
  906. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  907. </h5>
  908. <dl class="phpdocumentor-tag-list">
  909. <dt class="phpdocumentor-tag-list__entry">
  910. <span class="phpdocumentor-tag__name">dataProvider</span>
  911. </dt>
  912. <dd class="phpdocumentor-tag-list__definition">
  913. <section class="phpdocumentor-description"><p>versionProvider</p>
  914. </section>
  915. </dd>
  916. </dl>
  917. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  918. <span class="phpdocumentor-signature__response_type">void</span>
  919. &mdash;
  920. </article>
  921. <article
  922. class="phpdocumentor-element
  923. -method
  924. -public
  925. "
  926. >
  927. <h4 class="phpdocumentor-element__name" id="method_testSize">
  928. testSize()
  929. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSize" class="headerlink"><i class="fas fa-link"></i></a>
  930. </h4>
  931. <aside class="phpdocumentor-element-found-in">
  932. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  933. :
  934. <span class="phpdocumentor-element-found-in__line">51</span>
  935. </aside>
  936. <p class="phpdocumentor-summary">Tests if size() returns the actual matrix size/count</p>
  937. <code class="phpdocumentor-code phpdocumentor-signature ">
  938. <span class="phpdocumentor-signature__visibility">public</span>
  939. <span class="phpdocumentor-signature__name">testSize</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  940. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  941. <span class="phpdocumentor-signature__response_type">void</span>
  942. &mdash;
  943. </article>
  944. <article
  945. class="phpdocumentor-element
  946. -method
  947. -public
  948. "
  949. >
  950. <h4 class="phpdocumentor-element__name" id="method_testVersion">
  951. testVersion()
  952. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testVersion" class="headerlink"><i class="fas fa-link"></i></a>
  953. </h4>
  954. <aside class="phpdocumentor-element-found-in">
  955. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  956. :
  957. <span class="phpdocumentor-element-found-in__line">58</span>
  958. </aside>
  959. <p class="phpdocumentor-summary">Tests if version() returns the current (given) version</p>
  960. <code class="phpdocumentor-code phpdocumentor-signature ">
  961. <span class="phpdocumentor-signature__visibility">public</span>
  962. <span class="phpdocumentor-signature__name">testVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  963. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  964. <span class="phpdocumentor-signature__response_type">void</span>
  965. &mdash;
  966. </article>
  967. <article
  968. class="phpdocumentor-element
  969. -method
  970. -public
  971. "
  972. >
  973. <h4 class="phpdocumentor-element__name" id="method_versionProvider">
  974. versionProvider()
  975. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_versionProvider" class="headerlink"><i class="fas fa-link"></i></a>
  976. </h4>
  977. <aside class="phpdocumentor-element-found-in">
  978. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  979. :
  980. <span class="phpdocumentor-element-found-in__line">97</span>
  981. </aside>
  982. <p class="phpdocumentor-summary">Version data provider for several pattern tests</p>
  983. <code class="phpdocumentor-code phpdocumentor-signature ">
  984. <span class="phpdocumentor-signature__visibility">public</span>
  985. <span class="phpdocumentor-signature__name">versionProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span></code>
  986. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  987. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  988. &mdash;
  989. </article>
  990. <article
  991. class="phpdocumentor-element
  992. -method
  993. -protected
  994. "
  995. >
  996. <h4 class="phpdocumentor-element__name" id="method_getMatrix">
  997. getMatrix()
  998. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_getMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  999. </h4>
  1000. <aside class="phpdocumentor-element-found-in">
  1001. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  1002. :
  1003. <span class="phpdocumentor-element-found-in__line">37</span>
  1004. </aside>
  1005. <p class="phpdocumentor-summary">shortcut</p>
  1006. <code class="phpdocumentor-code phpdocumentor-signature ">
  1007. <span class="phpdocumentor-signature__visibility">protected</span>
  1008. <span class="phpdocumentor-signature__name">getMatrix</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"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span></code>
  1009. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1010. <dl class="phpdocumentor-argument-list">
  1011. <dt class="phpdocumentor-argument-list__entry">
  1012. <span class="phpdocumentor-signature__argument__name">$version</span>
  1013. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1014. </dt>
  1015. <dd class="phpdocumentor-argument-list__definition">
  1016. <section class="phpdocumentor-description"></section>
  1017. </dd>
  1018. </dl>
  1019. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1020. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1021. &mdash;
  1022. </article>
  1023. <article
  1024. class="phpdocumentor-element
  1025. -method
  1026. -protected
  1027. "
  1028. >
  1029. <h4 class="phpdocumentor-element__name" id="method_setUp">
  1030. setUp()
  1031. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  1032. </h4>
  1033. <aside class="phpdocumentor-element-found-in">
  1034. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  1035. :
  1036. <span class="phpdocumentor-element-found-in__line">30</span>
  1037. </aside>
  1038. <p class="phpdocumentor-summary">invokes a QRMatrix object</p>
  1039. <code class="phpdocumentor-code phpdocumentor-signature ">
  1040. <span class="phpdocumentor-signature__visibility">protected</span>
  1041. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1042. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1043. <span class="phpdocumentor-signature__response_type">void</span>
  1044. &mdash;
  1045. </article>
  1046. </section>
  1047. <script type="text/javascript">
  1048. function loadExternalCodeSnippets(line) {
  1049. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1050. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  1051. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  1052. var language = 'php';
  1053. var code = document.createElement('code');
  1054. code.className = 'language-' + language;
  1055. pre.textContent = '';
  1056. pre.setAttribute('data-line', line)
  1057. code.textContent = 'Loading…';
  1058. pre.appendChild(code);
  1059. var xhr = new XMLHttpRequest();
  1060. xhr.open('GET', src, true);
  1061. xhr.onreadystatechange = function () {
  1062. if (xhr.readyState == 4) {
  1063. if (xhr.status < 400 && xhr.responseText) {
  1064. code.textContent = xhr.responseText;
  1065. Prism.highlightElement(code);
  1066. }
  1067. else if (xhr.status >= 400) {
  1068. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1069. }
  1070. else {
  1071. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  1072. }
  1073. }
  1074. };
  1075. xhr.send(null);
  1076. });
  1077. }
  1078. var modals = document.querySelectorAll("[data-modal]");
  1079. modals.forEach(function (trigger) {
  1080. trigger.addEventListener("click", function (event) {
  1081. //event.preventDefault();
  1082. const modal = document.getElementById(trigger.dataset.modal);
  1083. modal.classList.add("phpdocumentor-modal__open");
  1084. loadExternalCodeSnippets(trigger.dataset.line)
  1085. const exits = modal.querySelectorAll("[data-exit-button]");
  1086. exits.forEach(function (exit) {
  1087. exit.addEventListener("click", function (event) {
  1088. event.preventDefault();
  1089. modal.classList.remove("phpdocumentor-modal__open");
  1090. });
  1091. });
  1092. });
  1093. });
  1094. </script>
  1095. </article>
  1096. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1097. <section class="phpdocumentor-search-results__dialog">
  1098. <header class="phpdocumentor-search-results__header">
  1099. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1100. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1101. </header>
  1102. <section class="phpdocumentor-search-results__body">
  1103. <ul class="phpdocumentor-search-results__entries"></ul>
  1104. </section>
  1105. </section>
  1106. </section>
  1107. </div>
  1108. </div>
  1109. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1110. </main>
  1111. <script>
  1112. cssVars({});
  1113. </script>
  1114. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1115. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1116. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1117. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1118. </body>
  1119. </html>