chillerlan-QRCodeTest-Data-QRMatrixTest.html 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885
  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=Open+Sans:wght@100;200;300;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/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. </ul>
  59. </nav>
  60. </header>
  61. <main class="phpdocumentor">
  62. <div class="phpdocumentor-section">
  63. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  64. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  65. Menu
  66. </label>
  67. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  68. <section class="phpdocumentor-sidebar__category">
  69. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  70. <h4 class="phpdocumentor-sidebar__root-namespace">
  71. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  72. </h4>
  73. <ul class="phpdocumentor-list">
  74. <li>
  75. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  76. </li>
  77. <li>
  78. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  79. </li>
  80. </ul>
  81. </section>
  82. <section class="phpdocumentor-sidebar__category">
  83. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  84. <h4 class="phpdocumentor-sidebar__root-namespace">
  85. <a href="packages/Application.html" class="">Application</a>
  86. </h4>
  87. </section>
  88. <section class="phpdocumentor-sidebar__category">
  89. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  92. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  93. </section>
  94. <section class="phpdocumentor-sidebar__category">
  95. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  96. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  97. </section>
  98. </aside>
  99. <div class="phpdocumentor-column -nine phpdocumentor-content">
  100. <section>
  101. <ul class="phpdocumentor-breadcrumbs">
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  103. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  104. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  105. </ul>
  106. <article class="phpdocumentor-element -class">
  107. <h2 class="phpdocumentor-content__title">
  108. QRMatrixTest
  109. <span class="phpdocumentor-element__extends">
  110. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  111. </span>
  112. <div class="phpdocumentor-element__package">
  113. in package
  114. <ul class="phpdocumentor-breadcrumbs">
  115. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  116. </ul>
  117. </div>
  118. </h2>
  119. <div class="phpdocumentor-label-line">
  120. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  121. </div>
  122. <aside class="phpdocumentor-element-found-in">
  123. <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>
  124. :
  125. <span class="phpdocumentor-element-found-in__line">24</span>
  126. </aside>
  127. <p class="phpdocumentor-summary">Tests the QRMatrix class</p>
  128. <h3 id="toc">
  129. Table of Contents
  130. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  131. </h3>
  132. <h4 id="toc-constants">
  133. Constants
  134. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  135. </h4>
  136. <dl class="phpdocumentor-table-of-contents">
  137. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  138. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#constant_version">version</a>
  139. <span>
  140. &nbsp;= 40 </span>
  141. </dt>
  142. </dl>
  143. <h4 id="toc-properties">
  144. Properties
  145. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  146. </h4>
  147. <dl class="phpdocumentor-table-of-contents">
  148. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  149. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#property_matrix">$matrix</a>
  150. <span>
  151. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  152. </dt>
  153. </dl>
  154. <h4 id="toc-methods">
  155. Methods
  156. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  157. </h4>
  158. <dl class="phpdocumentor-table-of-contents">
  159. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  160. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_debugMatrix">debugMatrix()</a>
  161. <span>
  162. &nbsp;: void </span>
  163. </dt>
  164. <dd>Matrix debugging console output</dd>
  165. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  166. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_matrixProvider">matrixProvider()</a>
  167. <span>
  168. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  169. </dt>
  170. <dd>Version data provider for several pattern tests</dd>
  171. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  172. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testCheckNeighbours">testCheckNeighbours()</a>
  173. <span>
  174. &nbsp;: void </span>
  175. </dt>
  176. <dd>Tests checking the adjacent modules</dd>
  177. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  178. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testCheckTypeIn">testCheckTypeIn()</a>
  179. <span>
  180. &nbsp;: void </span>
  181. </dt>
  182. <dd>Tests checking whether the M_TYPE of a module is not one of an array of M_TYPES</dd>
  183. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  184. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testECC">testECC()</a>
  185. <span>
  186. &nbsp;: void </span>
  187. </dt>
  188. <dd>Tests if eccLevel() returns the current (given) ECC level</dd>
  189. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  190. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testFlip">testFlip()</a>
  191. <span>
  192. &nbsp;: void </span>
  193. </dt>
  194. <dd>Tests flipping the value of a module</dd>
  195. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  196. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetSetCheck">testGetSetCheck()</a>
  197. <span>
  198. &nbsp;: void </span>
  199. </dt>
  200. <dd>Tests the set(), get() and check() methods</dd>
  201. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  202. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testInstance">testInstance()</a>
  203. <span>
  204. &nbsp;: void </span>
  205. </dt>
  206. <dd>Validates the QRMatrix instance</dd>
  207. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  208. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testMaskPattern">testMaskPattern()</a>
  209. <span>
  210. &nbsp;: void </span>
  211. </dt>
  212. <dd>Tests if maskPattern() returns the current (or default) mask pattern</dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  214. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testRotate90">testRotate90()</a>
  215. <span>
  216. &nbsp;: void </span>
  217. </dt>
  218. <dd>Tests rotating the matrix by 90 degrees CW</dd>
  219. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  220. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetAlignmentPattern">testSetAlignmentPattern()</a>
  221. <span>
  222. &nbsp;: void </span>
  223. </dt>
  224. <dd>Tests the alignment patterns and verifies their positions - version 1 (no pattern) skipped</dd>
  225. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  226. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetDarkModule">testSetDarkModule()</a>
  227. <span>
  228. &nbsp;: void </span>
  229. </dt>
  230. <dd>Tests setting the dark module and verifies its position</dd>
  231. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  232. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFinderPattern">testSetFinderPattern()</a>
  233. <span>
  234. &nbsp;: void </span>
  235. </dt>
  236. <dd>Tests setting the finder patterns and verifies their positions</dd>
  237. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  238. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFormatInfo">testSetFormatInfo()</a>
  239. <span>
  240. &nbsp;: void </span>
  241. </dt>
  242. <dd>Tests the format patterns and verifies their positions</dd>
  243. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  244. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceExceedsException">testSetLogoSpaceExceedsException()</a>
  245. <span>
  246. &nbsp;: void </span>
  247. </dt>
  248. <dd>Tests whether an exception is thrown when width or height exceed the matrix size</dd>
  249. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  250. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceInvalidEccException">testSetLogoSpaceInvalidEccException()</a>
  251. <span>
  252. &nbsp;: void </span>
  253. </dt>
  254. <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>
  255. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  256. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceMaxSizeException">testSetLogoSpaceMaxSizeException()</a>
  257. <span>
  258. &nbsp;: void </span>
  259. </dt>
  260. <dd>Tests whether an exception is thrown when the logo space size exceeds the maximum ECC capacity</dd>
  261. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  262. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOmitHeight">testSetLogoSpaceOmitHeight()</a>
  263. <span>
  264. &nbsp;: void </span>
  265. </dt>
  266. <dd>Tests if the logo space is drawn square if one of the dimensions is omitted</dd>
  267. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  268. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOrientation">testSetLogoSpaceOrientation()</a>
  269. <span>
  270. &nbsp;: void </span>
  271. </dt>
  272. <dd>Tests the auto orientation of the logo space</dd>
  273. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  274. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpacePosition">testSetLogoSpacePosition()</a>
  275. <span>
  276. &nbsp;: void </span>
  277. </dt>
  278. <dd>Tests the manual positioning of the logo space</dd>
  279. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  280. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZone">testSetQuietZone()</a>
  281. <span>
  282. &nbsp;: void </span>
  283. </dt>
  284. <dd>Tests the quiet zone pattern and verifies its position</dd>
  285. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  286. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZoneException">testSetQuietZoneException()</a>
  287. <span>
  288. &nbsp;: void </span>
  289. </dt>
  290. <dd>Tests if an exception is thrown in an attempt to create the quiet zone before data was written</dd>
  291. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  292. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetSeparators">testSetSeparators()</a>
  293. <span>
  294. &nbsp;: void </span>
  295. </dt>
  296. <dd>Tests the separator patterns and verifies their positions</dd>
  297. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  298. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetTimingPattern">testSetTimingPattern()</a>
  299. <span>
  300. &nbsp;: void </span>
  301. </dt>
  302. <dd>Tests the timing patterns and verifies their positions</dd>
  303. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  304. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetVersionNumber">testSetVersionNumber()</a>
  305. <span>
  306. &nbsp;: void </span>
  307. </dt>
  308. <dd>Tests the version patterns and verifies their positions - version &lt; 7 skipped</dd>
  309. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  310. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSize">testSize()</a>
  311. <span>
  312. &nbsp;: void </span>
  313. </dt>
  314. <dd>Tests if size() returns the actual matrix size/count</dd>
  315. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  316. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testVersion">testVersion()</a>
  317. <span>
  318. &nbsp;: void </span>
  319. </dt>
  320. <dd>Tests if version() returns the current (given) version</dd>
  321. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  322. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_dm">dm()</a>
  323. <span>
  324. &nbsp;: void </span>
  325. </dt>
  326. <dd>debugging shortcut - limit to a single version when using with matrixProvider</dd>
  327. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  328. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_setUp">setUp()</a>
  329. <span>
  330. &nbsp;: void </span>
  331. </dt>
  332. <dd>invokes a QRMatrix object</dd>
  333. </dl>
  334. <section class="phpdocumentor-constants">
  335. <h3 class="phpdocumentor-elements__header" id="constants">
  336. Constants
  337. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  338. </h3>
  339. <article class="phpdocumentor-element -constant -private ">
  340. <h4 class="phpdocumentor-element__name" id="constant_version">
  341. version
  342. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#constant_version" class="headerlink"><i class="fas fa-link"></i></a>
  343. </h4>
  344. <aside class="phpdocumentor-element-found-in">
  345. <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>
  346. :
  347. <span class="phpdocumentor-element-found-in__line">26</span>
  348. </aside>
  349. <code class="phpdocumentor-signature phpdocumentor-code ">
  350. <span class="phpdocumentor-signature__visibility">private</span>
  351. <span class="phpdocumentor-signature__type">mixed</span>
  352. <span class="phpdocumentor-signature__name">version</span>
  353. = <span class="phpdocumentor-signature__default-value">40</span>
  354. </code>
  355. </article>
  356. </section>
  357. <section class="phpdocumentor-properties">
  358. <h3 class="phpdocumentor-elements__header" id="properties">
  359. Properties
  360. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  361. </h3>
  362. <article
  363. class="
  364. phpdocumentor-element
  365. -property
  366. -private
  367. "
  368. >
  369. <h4 class="phpdocumentor-element__name" id="property_matrix">
  370. $matrix
  371. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  372. <span class="phpdocumentor-element__modifiers">
  373. </span>
  374. </h4>
  375. <aside class="phpdocumentor-element-found-in">
  376. <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>
  377. :
  378. <span class="phpdocumentor-element-found-in__line">27</span>
  379. </aside>
  380. <code class="phpdocumentor-code phpdocumentor-signature ">
  381. <span class="phpdocumentor-signature__visibility">private</span>
  382. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  383. <span class="phpdocumentor-signature__name">$matrix</span>
  384. </code>
  385. </article>
  386. </section>
  387. <section class="phpdocumentor-methods">
  388. <h3 class="phpdocumentor-elements__header" id="methods">
  389. Methods
  390. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  391. </h3>
  392. <article
  393. class="phpdocumentor-element
  394. -method
  395. -public
  396. -static "
  397. >
  398. <h4 class="phpdocumentor-element__name" id="method_debugMatrix">
  399. debugMatrix()
  400. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_debugMatrix" 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">42</span>
  406. </aside>
  407. <p class="phpdocumentor-summary">Matrix debugging console output</p>
  408. <code class="phpdocumentor-code phpdocumentor-signature ">
  409. <span class="phpdocumentor-signature__visibility">public</span>
  410. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">debugMatrix</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  411. <div class="phpdocumentor-label-line">
  412. </div>
  413. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  414. <dl class="phpdocumentor-argument-list">
  415. <dt class="phpdocumentor-argument-list__entry">
  416. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  417. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  418. </dt>
  419. <dd class="phpdocumentor-argument-list__definition">
  420. </dd>
  421. </dl>
  422. </article>
  423. <article
  424. class="phpdocumentor-element
  425. -method
  426. -public
  427. -static "
  428. >
  429. <h4 class="phpdocumentor-element__name" id="method_matrixProvider">
  430. matrixProvider()
  431. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_matrixProvider" class="headerlink"><i class="fas fa-link"></i></a>
  432. </h4>
  433. <aside class="phpdocumentor-element-found-in">
  434. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  435. :
  436. <span class="phpdocumentor-element-found-in__line">173</span>
  437. </aside>
  438. <p class="phpdocumentor-summary">Version data provider for several pattern tests</p>
  439. <code class="phpdocumentor-code phpdocumentor-signature ">
  440. <span class="phpdocumentor-signature__visibility">public</span>
  441. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">matrixProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span></code>
  442. <div class="phpdocumentor-label-line">
  443. </div>
  444. <section>
  445. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  446. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  447. </section>
  448. </article>
  449. <article
  450. class="phpdocumentor-element
  451. -method
  452. -public
  453. "
  454. >
  455. <h4 class="phpdocumentor-element__name" id="method_testCheckNeighbours">
  456. testCheckNeighbours()
  457. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testCheckNeighbours" class="headerlink"><i class="fas fa-link"></i></a>
  458. </h4>
  459. <aside class="phpdocumentor-element-found-in">
  460. <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>
  461. :
  462. <span class="phpdocumentor-element-found-in__line">554</span>
  463. </aside>
  464. <p class="phpdocumentor-summary">Tests checking the adjacent modules</p>
  465. <code class="phpdocumentor-code phpdocumentor-signature ">
  466. <span class="phpdocumentor-signature__visibility">public</span>
  467. <span class="phpdocumentor-signature__name">testCheckNeighbours</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  468. <div class="phpdocumentor-label-line">
  469. </div>
  470. </article>
  471. <article
  472. class="phpdocumentor-element
  473. -method
  474. -public
  475. "
  476. >
  477. <h4 class="phpdocumentor-element__name" id="method_testCheckTypeIn">
  478. testCheckTypeIn()
  479. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testCheckTypeIn" class="headerlink"><i class="fas fa-link"></i></a>
  480. </h4>
  481. <aside class="phpdocumentor-element-found-in">
  482. <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>
  483. :
  484. <span class="phpdocumentor-element-found-in__line">544</span>
  485. </aside>
  486. <p class="phpdocumentor-summary">Tests checking whether the M_TYPE of a module is not one of an array of M_TYPES</p>
  487. <code class="phpdocumentor-code phpdocumentor-signature ">
  488. <span class="phpdocumentor-signature__visibility">public</span>
  489. <span class="phpdocumentor-signature__name">testCheckTypeIn</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  490. <div class="phpdocumentor-label-line">
  491. </div>
  492. </article>
  493. <article
  494. class="phpdocumentor-element
  495. -method
  496. -public
  497. "
  498. >
  499. <h4 class="phpdocumentor-element__name" id="method_testECC">
  500. testECC()
  501. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testECC" class="headerlink"><i class="fas fa-link"></i></a>
  502. </h4>
  503. <aside class="phpdocumentor-element-found-in">
  504. <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>
  505. :
  506. <span class="phpdocumentor-element-found-in__line">131</span>
  507. </aside>
  508. <p class="phpdocumentor-summary">Tests if eccLevel() returns the current (given) ECC level</p>
  509. <code class="phpdocumentor-code phpdocumentor-signature ">
  510. <span class="phpdocumentor-signature__visibility">public</span>
  511. <span class="phpdocumentor-signature__name">testECC</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  512. <div class="phpdocumentor-label-line">
  513. </div>
  514. </article>
  515. <article
  516. class="phpdocumentor-element
  517. -method
  518. -public
  519. "
  520. >
  521. <h4 class="phpdocumentor-element__name" id="method_testFlip">
  522. testFlip()
  523. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testFlip" class="headerlink"><i class="fas fa-link"></i></a>
  524. </h4>
  525. <aside class="phpdocumentor-element-found-in">
  526. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRMatrixTest.php"><a href="files/tests-data-qrmatrixtest.html"><abbr title="tests/Data/QRMatrixTest.php">QRMatrixTest.php</abbr></a></abbr>
  527. :
  528. <span class="phpdocumentor-element-found-in__line">524</span>
  529. </aside>
  530. <p class="phpdocumentor-summary">Tests flipping the value of a module</p>
  531. <code class="phpdocumentor-code phpdocumentor-signature ">
  532. <span class="phpdocumentor-signature__visibility">public</span>
  533. <span class="phpdocumentor-signature__name">testFlip</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  534. <div class="phpdocumentor-label-line">
  535. </div>
  536. </article>
  537. <article
  538. class="phpdocumentor-element
  539. -method
  540. -public
  541. "
  542. >
  543. <h4 class="phpdocumentor-element__name" id="method_testGetSetCheck">
  544. testGetSetCheck()
  545. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetSetCheck" class="headerlink"><i class="fas fa-link"></i></a>
  546. </h4>
  547. <aside class="phpdocumentor-element-found-in">
  548. <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>
  549. :
  550. <span class="phpdocumentor-element-found-in__line">149</span>
  551. </aside>
  552. <p class="phpdocumentor-summary">Tests the set(), get() and check() methods</p>
  553. <code class="phpdocumentor-code phpdocumentor-signature ">
  554. <span class="phpdocumentor-signature__visibility">public</span>
  555. <span class="phpdocumentor-signature__name">testGetSetCheck</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  556. <div class="phpdocumentor-label-line">
  557. </div>
  558. </article>
  559. <article
  560. class="phpdocumentor-element
  561. -method
  562. -public
  563. "
  564. >
  565. <h4 class="phpdocumentor-element__name" id="method_testInstance">
  566. testInstance()
  567. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testInstance" class="headerlink"><i class="fas fa-link"></i></a>
  568. </h4>
  569. <aside class="phpdocumentor-element-found-in">
  570. <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>
  571. :
  572. <span class="phpdocumentor-element-found-in__line">110</span>
  573. </aside>
  574. <p class="phpdocumentor-summary">Validates the QRMatrix instance</p>
  575. <code class="phpdocumentor-code phpdocumentor-signature ">
  576. <span class="phpdocumentor-signature__visibility">public</span>
  577. <span class="phpdocumentor-signature__name">testInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  578. <div class="phpdocumentor-label-line">
  579. </div>
  580. </article>
  581. <article
  582. class="phpdocumentor-element
  583. -method
  584. -public
  585. "
  586. >
  587. <h4 class="phpdocumentor-element__name" id="method_testMaskPattern">
  588. testMaskPattern()
  589. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testMaskPattern" class="headerlink"><i class="fas fa-link"></i></a>
  590. </h4>
  591. <aside class="phpdocumentor-element-found-in">
  592. <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>
  593. :
  594. <span class="phpdocumentor-element-found-in__line">138</span>
  595. </aside>
  596. <p class="phpdocumentor-summary">Tests if maskPattern() returns the current (or default) mask pattern</p>
  597. <code class="phpdocumentor-code phpdocumentor-signature ">
  598. <span class="phpdocumentor-signature__visibility">public</span>
  599. <span class="phpdocumentor-signature__name">testMaskPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  600. <div class="phpdocumentor-label-line">
  601. </div>
  602. </article>
  603. <article
  604. class="phpdocumentor-element
  605. -method
  606. -public
  607. "
  608. >
  609. <h4 class="phpdocumentor-element__name" id="method_testRotate90">
  610. testRotate90()
  611. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testRotate90" class="headerlink"><i class="fas fa-link"></i></a>
  612. </h4>
  613. <aside class="phpdocumentor-element-found-in">
  614. <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>
  615. :
  616. <span class="phpdocumentor-element-found-in__line">372</span>
  617. </aside>
  618. <p class="phpdocumentor-summary">Tests rotating the matrix by 90 degrees CW</p>
  619. <code class="phpdocumentor-code phpdocumentor-signature ">
  620. <span class="phpdocumentor-signature__visibility">public</span>
  621. <span class="phpdocumentor-signature__name">testRotate90</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  622. <div class="phpdocumentor-label-line">
  623. </div>
  624. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  625. <dl class="phpdocumentor-argument-list">
  626. <dt class="phpdocumentor-argument-list__entry">
  627. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  628. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  629. </dt>
  630. <dd class="phpdocumentor-argument-list__definition">
  631. </dd>
  632. </dl>
  633. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  634. Tags
  635. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testRotate90#tags" class="headerlink"><i class="fas fa-link"></i></a>
  636. </h5>
  637. <dl class="phpdocumentor-tag-list">
  638. <dt class="phpdocumentor-tag-list__entry">
  639. <span class="phpdocumentor-tag__name">dataProvider</span>
  640. </dt>
  641. <dd class="phpdocumentor-tag-list__definition">
  642. <section class="phpdocumentor-description"><p>matrixProvider</p>
  643. </section>
  644. </dd>
  645. </dl>
  646. </article>
  647. <article
  648. class="phpdocumentor-element
  649. -method
  650. -public
  651. "
  652. >
  653. <h4 class="phpdocumentor-element__name" id="method_testSetAlignmentPattern">
  654. testSetAlignmentPattern()
  655. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetAlignmentPattern" class="headerlink"><i class="fas fa-link"></i></a>
  656. </h4>
  657. <aside class="phpdocumentor-element-found-in">
  658. <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>
  659. :
  660. <span class="phpdocumentor-element-found-in__line">230</span>
  661. </aside>
  662. <p class="phpdocumentor-summary">Tests the alignment patterns and verifies their positions - version 1 (no pattern) skipped</p>
  663. <code class="phpdocumentor-code phpdocumentor-signature ">
  664. <span class="phpdocumentor-signature__visibility">public</span>
  665. <span class="phpdocumentor-signature__name">testSetAlignmentPattern</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  666. <div class="phpdocumentor-label-line">
  667. </div>
  668. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  669. <dl class="phpdocumentor-argument-list">
  670. <dt class="phpdocumentor-argument-list__entry">
  671. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  672. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  673. </dt>
  674. <dd class="phpdocumentor-argument-list__definition">
  675. </dd>
  676. </dl>
  677. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  678. Tags
  679. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetAlignmentPattern#tags" class="headerlink"><i class="fas fa-link"></i></a>
  680. </h5>
  681. <dl class="phpdocumentor-tag-list">
  682. <dt class="phpdocumentor-tag-list__entry">
  683. <span class="phpdocumentor-tag__name">dataProvider</span>
  684. </dt>
  685. <dd class="phpdocumentor-tag-list__definition">
  686. <section class="phpdocumentor-description"><p>matrixProvider</p>
  687. </section>
  688. </dd>
  689. </dl>
  690. </article>
  691. <article
  692. class="phpdocumentor-element
  693. -method
  694. -public
  695. "
  696. >
  697. <h4 class="phpdocumentor-element__name" id="method_testSetDarkModule">
  698. testSetDarkModule()
  699. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetDarkModule" 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">186</span>
  705. </aside>
  706. <p class="phpdocumentor-summary">Tests setting the dark module and verifies its position</p>
  707. <code class="phpdocumentor-code phpdocumentor-signature ">
  708. <span class="phpdocumentor-signature__visibility">public</span>
  709. <span class="phpdocumentor-signature__name">testSetDarkModule</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  710. <div class="phpdocumentor-label-line">
  711. </div>
  712. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  713. <dl class="phpdocumentor-argument-list">
  714. <dt class="phpdocumentor-argument-list__entry">
  715. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  716. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  717. </dt>
  718. <dd class="phpdocumentor-argument-list__definition">
  719. </dd>
  720. </dl>
  721. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  722. Tags
  723. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetDarkModule#tags" class="headerlink"><i class="fas fa-link"></i></a>
  724. </h5>
  725. <dl class="phpdocumentor-tag-list">
  726. <dt class="phpdocumentor-tag-list__entry">
  727. <span class="phpdocumentor-tag__name">dataProvider</span>
  728. </dt>
  729. <dd class="phpdocumentor-tag-list__definition">
  730. <section class="phpdocumentor-description"><p>matrixProvider</p>
  731. </section>
  732. </dd>
  733. </dl>
  734. </article>
  735. <article
  736. class="phpdocumentor-element
  737. -method
  738. -public
  739. "
  740. >
  741. <h4 class="phpdocumentor-element__name" id="method_testSetFinderPattern">
  742. testSetFinderPattern()
  743. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFinderPattern" class="headerlink"><i class="fas fa-link"></i></a>
  744. </h4>
  745. <aside class="phpdocumentor-element-found-in">
  746. <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>
  747. :
  748. <span class="phpdocumentor-element-found-in__line">199</span>
  749. </aside>
  750. <p class="phpdocumentor-summary">Tests setting the finder patterns and verifies their positions</p>
  751. <code class="phpdocumentor-code phpdocumentor-signature ">
  752. <span class="phpdocumentor-signature__visibility">public</span>
  753. <span class="phpdocumentor-signature__name">testSetFinderPattern</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  754. <div class="phpdocumentor-label-line">
  755. </div>
  756. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  757. <dl class="phpdocumentor-argument-list">
  758. <dt class="phpdocumentor-argument-list__entry">
  759. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  760. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  761. </dt>
  762. <dd class="phpdocumentor-argument-list__definition">
  763. </dd>
  764. </dl>
  765. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  766. Tags
  767. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFinderPattern#tags" class="headerlink"><i class="fas fa-link"></i></a>
  768. </h5>
  769. <dl class="phpdocumentor-tag-list">
  770. <dt class="phpdocumentor-tag-list__entry">
  771. <span class="phpdocumentor-tag__name">dataProvider</span>
  772. </dt>
  773. <dd class="phpdocumentor-tag-list__definition">
  774. <section class="phpdocumentor-description"><p>matrixProvider</p>
  775. </section>
  776. </dd>
  777. </dl>
  778. </article>
  779. <article
  780. class="phpdocumentor-element
  781. -method
  782. -public
  783. "
  784. >
  785. <h4 class="phpdocumentor-element__name" id="method_testSetFormatInfo">
  786. testSetFormatInfo()
  787. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFormatInfo" class="headerlink"><i class="fas fa-link"></i></a>
  788. </h4>
  789. <aside class="phpdocumentor-element-found-in">
  790. <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>
  791. :
  792. <span class="phpdocumentor-element-found-in__line">314</span>
  793. </aside>
  794. <p class="phpdocumentor-summary">Tests the format patterns and verifies their positions</p>
  795. <code class="phpdocumentor-code phpdocumentor-signature ">
  796. <span class="phpdocumentor-signature__visibility">public</span>
  797. <span class="phpdocumentor-signature__name">testSetFormatInfo</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  798. <div class="phpdocumentor-label-line">
  799. </div>
  800. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  801. <dl class="phpdocumentor-argument-list">
  802. <dt class="phpdocumentor-argument-list__entry">
  803. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  804. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  805. </dt>
  806. <dd class="phpdocumentor-argument-list__definition">
  807. </dd>
  808. </dl>
  809. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  810. Tags
  811. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFormatInfo#tags" class="headerlink"><i class="fas fa-link"></i></a>
  812. </h5>
  813. <dl class="phpdocumentor-tag-list">
  814. <dt class="phpdocumentor-tag-list__entry">
  815. <span class="phpdocumentor-tag__name">dataProvider</span>
  816. </dt>
  817. <dd class="phpdocumentor-tag-list__definition">
  818. <section class="phpdocumentor-description"><p>matrixProvider</p>
  819. </section>
  820. </dd>
  821. </dl>
  822. </article>
  823. <article
  824. class="phpdocumentor-element
  825. -method
  826. -public
  827. "
  828. >
  829. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpaceExceedsException">
  830. testSetLogoSpaceExceedsException()
  831. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceExceedsException" class="headerlink"><i class="fas fa-link"></i></a>
  832. </h4>
  833. <aside class="phpdocumentor-element-found-in">
  834. <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>
  835. :
  836. <span class="phpdocumentor-element-found-in__line">496</span>
  837. </aside>
  838. <p class="phpdocumentor-summary">Tests whether an exception is thrown when width or height exceed the matrix size</p>
  839. <code class="phpdocumentor-code phpdocumentor-signature ">
  840. <span class="phpdocumentor-signature__visibility">public</span>
  841. <span class="phpdocumentor-signature__name">testSetLogoSpaceExceedsException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  842. <div class="phpdocumentor-label-line">
  843. </div>
  844. </article>
  845. <article
  846. class="phpdocumentor-element
  847. -method
  848. -public
  849. "
  850. >
  851. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpaceInvalidEccException">
  852. testSetLogoSpaceInvalidEccException()
  853. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceInvalidEccException" class="headerlink"><i class="fas fa-link"></i></a>
  854. </h4>
  855. <aside class="phpdocumentor-element-found-in">
  856. <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>
  857. :
  858. <span class="phpdocumentor-element-found-in__line">486</span>
  859. </aside>
  860. <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>
  861. <code class="phpdocumentor-code phpdocumentor-signature ">
  862. <span class="phpdocumentor-signature__visibility">public</span>
  863. <span class="phpdocumentor-signature__name">testSetLogoSpaceInvalidEccException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  864. <div class="phpdocumentor-label-line">
  865. </div>
  866. </article>
  867. <article
  868. class="phpdocumentor-element
  869. -method
  870. -public
  871. "
  872. >
  873. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpaceMaxSizeException">
  874. testSetLogoSpaceMaxSizeException()
  875. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceMaxSizeException" class="headerlink"><i class="fas fa-link"></i></a>
  876. </h4>
  877. <aside class="phpdocumentor-element-found-in">
  878. <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>
  879. :
  880. <span class="phpdocumentor-element-found-in__line">510</span>
  881. </aside>
  882. <p class="phpdocumentor-summary">Tests whether an exception is thrown when the logo space size exceeds the maximum ECC capacity</p>
  883. <code class="phpdocumentor-code phpdocumentor-signature ">
  884. <span class="phpdocumentor-signature__visibility">public</span>
  885. <span class="phpdocumentor-signature__name">testSetLogoSpaceMaxSizeException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  886. <div class="phpdocumentor-label-line">
  887. </div>
  888. </article>
  889. <article
  890. class="phpdocumentor-element
  891. -method
  892. -public
  893. "
  894. >
  895. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpaceOmitHeight">
  896. testSetLogoSpaceOmitHeight()
  897. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOmitHeight" class="headerlink"><i class="fas fa-link"></i></a>
  898. </h4>
  899. <aside class="phpdocumentor-element-found-in">
  900. <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>
  901. :
  902. <span class="phpdocumentor-element-found-in__line">407</span>
  903. </aside>
  904. <p class="phpdocumentor-summary">Tests if the logo space is drawn square if one of the dimensions is omitted</p>
  905. <code class="phpdocumentor-code phpdocumentor-signature ">
  906. <span class="phpdocumentor-signature__visibility">public</span>
  907. <span class="phpdocumentor-signature__name">testSetLogoSpaceOmitHeight</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  908. <div class="phpdocumentor-label-line">
  909. </div>
  910. </article>
  911. <article
  912. class="phpdocumentor-element
  913. -method
  914. -public
  915. "
  916. >
  917. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpaceOrientation">
  918. testSetLogoSpaceOrientation()
  919. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOrientation" class="headerlink"><i class="fas fa-link"></i></a>
  920. </h4>
  921. <aside class="phpdocumentor-element-found-in">
  922. <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>
  923. :
  924. <span class="phpdocumentor-element-found-in__line">429</span>
  925. </aside>
  926. <p class="phpdocumentor-summary">Tests the auto orientation of the logo space</p>
  927. <code class="phpdocumentor-code phpdocumentor-signature ">
  928. <span class="phpdocumentor-signature__visibility">public</span>
  929. <span class="phpdocumentor-signature__name">testSetLogoSpaceOrientation</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  930. <div class="phpdocumentor-label-line">
  931. </div>
  932. </article>
  933. <article
  934. class="phpdocumentor-element
  935. -method
  936. -public
  937. "
  938. >
  939. <h4 class="phpdocumentor-element__name" id="method_testSetLogoSpacePosition">
  940. testSetLogoSpacePosition()
  941. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpacePosition" class="headerlink"><i class="fas fa-link"></i></a>
  942. </h4>
  943. <aside class="phpdocumentor-element-found-in">
  944. <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>
  945. :
  946. <span class="phpdocumentor-element-found-in__line">453</span>
  947. </aside>
  948. <p class="phpdocumentor-summary">Tests the manual positioning of the logo space</p>
  949. <code class="phpdocumentor-code phpdocumentor-signature ">
  950. <span class="phpdocumentor-signature__visibility">public</span>
  951. <span class="phpdocumentor-signature__name">testSetLogoSpacePosition</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  952. <div class="phpdocumentor-label-line">
  953. </div>
  954. </article>
  955. <article
  956. class="phpdocumentor-element
  957. -method
  958. -public
  959. "
  960. >
  961. <h4 class="phpdocumentor-element__name" id="method_testSetQuietZone">
  962. testSetQuietZone()
  963. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZone" class="headerlink"><i class="fas fa-link"></i></a>
  964. </h4>
  965. <aside class="phpdocumentor-element-found-in">
  966. <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>
  967. :
  968. <span class="phpdocumentor-element-found-in__line">330</span>
  969. </aside>
  970. <p class="phpdocumentor-summary">Tests the quiet zone pattern and verifies its position</p>
  971. <code class="phpdocumentor-code phpdocumentor-signature ">
  972. <span class="phpdocumentor-signature__visibility">public</span>
  973. <span class="phpdocumentor-signature__name">testSetQuietZone</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  974. <div class="phpdocumentor-label-line">
  975. </div>
  976. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  977. <dl class="phpdocumentor-argument-list">
  978. <dt class="phpdocumentor-argument-list__entry">
  979. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  980. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  981. </dt>
  982. <dd class="phpdocumentor-argument-list__definition">
  983. </dd>
  984. </dl>
  985. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  986. Tags
  987. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZone#tags" class="headerlink"><i class="fas fa-link"></i></a>
  988. </h5>
  989. <dl class="phpdocumentor-tag-list">
  990. <dt class="phpdocumentor-tag-list__entry">
  991. <span class="phpdocumentor-tag__name">dataProvider</span>
  992. </dt>
  993. <dd class="phpdocumentor-tag-list__definition">
  994. <section class="phpdocumentor-description"><p>matrixProvider</p>
  995. </section>
  996. </dd>
  997. </dl>
  998. </article>
  999. <article
  1000. class="phpdocumentor-element
  1001. -method
  1002. -public
  1003. "
  1004. >
  1005. <h4 class="phpdocumentor-element__name" id="method_testSetQuietZoneException">
  1006. testSetQuietZoneException()
  1007. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZoneException" class="headerlink"><i class="fas fa-link"></i></a>
  1008. </h4>
  1009. <aside class="phpdocumentor-element-found-in">
  1010. <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>
  1011. :
  1012. <span class="phpdocumentor-element-found-in__line">360</span>
  1013. </aside>
  1014. <p class="phpdocumentor-summary">Tests if an exception is thrown in an attempt to create the quiet zone before data was written</p>
  1015. <code class="phpdocumentor-code phpdocumentor-signature ">
  1016. <span class="phpdocumentor-signature__visibility">public</span>
  1017. <span class="phpdocumentor-signature__name">testSetQuietZoneException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1018. <div class="phpdocumentor-label-line">
  1019. </div>
  1020. </article>
  1021. <article
  1022. class="phpdocumentor-element
  1023. -method
  1024. -public
  1025. "
  1026. >
  1027. <h4 class="phpdocumentor-element__name" id="method_testSetSeparators">
  1028. testSetSeparators()
  1029. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetSeparators" class="headerlink"><i class="fas fa-link"></i></a>
  1030. </h4>
  1031. <aside class="phpdocumentor-element-found-in">
  1032. <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>
  1033. :
  1034. <span class="phpdocumentor-element-found-in__line">214</span>
  1035. </aside>
  1036. <p class="phpdocumentor-summary">Tests the separator patterns and verifies their positions</p>
  1037. <code class="phpdocumentor-code phpdocumentor-signature ">
  1038. <span class="phpdocumentor-signature__visibility">public</span>
  1039. <span class="phpdocumentor-signature__name">testSetSeparators</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1040. <div class="phpdocumentor-label-line">
  1041. </div>
  1042. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1043. <dl class="phpdocumentor-argument-list">
  1044. <dt class="phpdocumentor-argument-list__entry">
  1045. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  1046. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1047. </dt>
  1048. <dd class="phpdocumentor-argument-list__definition">
  1049. </dd>
  1050. </dl>
  1051. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1052. Tags
  1053. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetSeparators#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1054. </h5>
  1055. <dl class="phpdocumentor-tag-list">
  1056. <dt class="phpdocumentor-tag-list__entry">
  1057. <span class="phpdocumentor-tag__name">dataProvider</span>
  1058. </dt>
  1059. <dd class="phpdocumentor-tag-list__definition">
  1060. <section class="phpdocumentor-description"><p>matrixProvider</p>
  1061. </section>
  1062. </dd>
  1063. </dl>
  1064. </article>
  1065. <article
  1066. class="phpdocumentor-element
  1067. -method
  1068. -public
  1069. "
  1070. >
  1071. <h4 class="phpdocumentor-element__name" id="method_testSetTimingPattern">
  1072. testSetTimingPattern()
  1073. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetTimingPattern" class="headerlink"><i class="fas fa-link"></i></a>
  1074. </h4>
  1075. <aside class="phpdocumentor-element-found-in">
  1076. <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>
  1077. :
  1078. <span class="phpdocumentor-element-found-in__line">263</span>
  1079. </aside>
  1080. <p class="phpdocumentor-summary">Tests the timing patterns and verifies their positions</p>
  1081. <code class="phpdocumentor-code phpdocumentor-signature ">
  1082. <span class="phpdocumentor-signature__visibility">public</span>
  1083. <span class="phpdocumentor-signature__name">testSetTimingPattern</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1084. <div class="phpdocumentor-label-line">
  1085. </div>
  1086. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1087. <dl class="phpdocumentor-argument-list">
  1088. <dt class="phpdocumentor-argument-list__entry">
  1089. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  1090. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1091. </dt>
  1092. <dd class="phpdocumentor-argument-list__definition">
  1093. </dd>
  1094. </dl>
  1095. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1096. Tags
  1097. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetTimingPattern#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1098. </h5>
  1099. <dl class="phpdocumentor-tag-list">
  1100. <dt class="phpdocumentor-tag-list__entry">
  1101. <span class="phpdocumentor-tag__name">dataProvider</span>
  1102. </dt>
  1103. <dd class="phpdocumentor-tag-list__definition">
  1104. <section class="phpdocumentor-description"><p>matrixProvider</p>
  1105. </section>
  1106. </dd>
  1107. </dl>
  1108. </article>
  1109. <article
  1110. class="phpdocumentor-element
  1111. -method
  1112. -public
  1113. "
  1114. >
  1115. <h4 class="phpdocumentor-element__name" id="method_testSetVersionNumber">
  1116. testSetVersionNumber()
  1117. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetVersionNumber" class="headerlink"><i class="fas fa-link"></i></a>
  1118. </h4>
  1119. <aside class="phpdocumentor-element-found-in">
  1120. <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>
  1121. :
  1122. <span class="phpdocumentor-element-found-in__line">292</span>
  1123. </aside>
  1124. <p class="phpdocumentor-summary">Tests the version patterns and verifies their positions - version &lt; 7 skipped</p>
  1125. <code class="phpdocumentor-code phpdocumentor-signature ">
  1126. <span class="phpdocumentor-signature__visibility">public</span>
  1127. <span class="phpdocumentor-signature__name">testSetVersionNumber</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1128. <div class="phpdocumentor-label-line">
  1129. </div>
  1130. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1131. <dl class="phpdocumentor-argument-list">
  1132. <dt class="phpdocumentor-argument-list__entry">
  1133. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  1134. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1135. </dt>
  1136. <dd class="phpdocumentor-argument-list__definition">
  1137. </dd>
  1138. </dl>
  1139. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1140. Tags
  1141. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetVersionNumber#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1142. </h5>
  1143. <dl class="phpdocumentor-tag-list">
  1144. <dt class="phpdocumentor-tag-list__entry">
  1145. <span class="phpdocumentor-tag__name">dataProvider</span>
  1146. </dt>
  1147. <dd class="phpdocumentor-tag-list__definition">
  1148. <section class="phpdocumentor-description"><p>matrixProvider</p>
  1149. </section>
  1150. </dd>
  1151. </dl>
  1152. </article>
  1153. <article
  1154. class="phpdocumentor-element
  1155. -method
  1156. -public
  1157. "
  1158. >
  1159. <h4 class="phpdocumentor-element__name" id="method_testSize">
  1160. testSize()
  1161. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSize" class="headerlink"><i class="fas fa-link"></i></a>
  1162. </h4>
  1163. <aside class="phpdocumentor-element-found-in">
  1164. <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>
  1165. :
  1166. <span class="phpdocumentor-element-found-in__line">117</span>
  1167. </aside>
  1168. <p class="phpdocumentor-summary">Tests if size() returns the actual matrix size/count</p>
  1169. <code class="phpdocumentor-code phpdocumentor-signature ">
  1170. <span class="phpdocumentor-signature__visibility">public</span>
  1171. <span class="phpdocumentor-signature__name">testSize</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1172. <div class="phpdocumentor-label-line">
  1173. </div>
  1174. </article>
  1175. <article
  1176. class="phpdocumentor-element
  1177. -method
  1178. -public
  1179. "
  1180. >
  1181. <h4 class="phpdocumentor-element__name" id="method_testVersion">
  1182. testVersion()
  1183. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testVersion" class="headerlink"><i class="fas fa-link"></i></a>
  1184. </h4>
  1185. <aside class="phpdocumentor-element-found-in">
  1186. <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>
  1187. :
  1188. <span class="phpdocumentor-element-found-in__line">124</span>
  1189. </aside>
  1190. <p class="phpdocumentor-summary">Tests if version() returns the current (given) version</p>
  1191. <code class="phpdocumentor-code phpdocumentor-signature ">
  1192. <span class="phpdocumentor-signature__visibility">public</span>
  1193. <span class="phpdocumentor-signature__name">testVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1194. <div class="phpdocumentor-label-line">
  1195. </div>
  1196. </article>
  1197. <article
  1198. class="phpdocumentor-element
  1199. -method
  1200. -protected
  1201. "
  1202. >
  1203. <h4 class="phpdocumentor-element__name" id="method_dm">
  1204. dm()
  1205. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_dm" class="headerlink"><i class="fas fa-link"></i></a>
  1206. </h4>
  1207. <aside class="phpdocumentor-element-found-in">
  1208. <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>
  1209. :
  1210. <span class="phpdocumentor-element-found-in__line">97</span>
  1211. </aside>
  1212. <p class="phpdocumentor-summary">debugging shortcut - limit to a single version when using with matrixProvider</p>
  1213. <code class="phpdocumentor-code phpdocumentor-signature ">
  1214. <span class="phpdocumentor-signature__visibility">protected</span>
  1215. <span class="phpdocumentor-signature__name">dm</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1216. <div class="phpdocumentor-label-line">
  1217. </div>
  1218. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1219. <dl class="phpdocumentor-argument-list">
  1220. <dt class="phpdocumentor-argument-list__entry">
  1221. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  1222. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1223. </dt>
  1224. <dd class="phpdocumentor-argument-list__definition">
  1225. </dd>
  1226. </dl>
  1227. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1228. Tags
  1229. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_dm#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1230. </h5>
  1231. <dl class="phpdocumentor-tag-list">
  1232. <dt class="phpdocumentor-tag-list__entry">
  1233. <span class="phpdocumentor-tag__name">see</span>
  1234. </dt>
  1235. <dd class="phpdocumentor-tag-list__definition">
  1236. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_matrixProvider"><abbr title="\chillerlan\QRCodeTest\Data\QRMatrixTest::matrixProvider()">QRMatrixTest::matrixProvider()</abbr></a></span>
  1237. </dd>
  1238. </dl>
  1239. </article>
  1240. <article
  1241. class="phpdocumentor-element
  1242. -method
  1243. -protected
  1244. "
  1245. >
  1246. <h4 class="phpdocumentor-element__name" id="method_setUp">
  1247. setUp()
  1248. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  1249. </h4>
  1250. <aside class="phpdocumentor-element-found-in">
  1251. <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>
  1252. :
  1253. <span class="phpdocumentor-element-found-in__line">32</span>
  1254. </aside>
  1255. <p class="phpdocumentor-summary">invokes a QRMatrix object</p>
  1256. <code class="phpdocumentor-code phpdocumentor-signature ">
  1257. <span class="phpdocumentor-signature__visibility">protected</span>
  1258. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1259. <div class="phpdocumentor-label-line">
  1260. </div>
  1261. </article>
  1262. </section>
  1263. <div class="phpdocumentor-modal" id="source-view">
  1264. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1265. <div class="phpdocumentor-modal-container">
  1266. <div class="phpdocumentor-modal-content">
  1267. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Data/QRMatrixTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1268. </div>
  1269. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1270. </div>
  1271. </div>
  1272. <script type="text/javascript">
  1273. (function () {
  1274. function loadExternalCodeSnippet(el, url, line) {
  1275. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1276. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1277. const language = 'php';
  1278. const code = document.createElement('code');
  1279. code.className = 'language-' + language;
  1280. pre.textContent = '';
  1281. pre.setAttribute('data-line', line)
  1282. code.textContent = 'Loading…';
  1283. pre.appendChild(code);
  1284. var xhr = new XMLHttpRequest();
  1285. xhr.open('GET', src, true);
  1286. xhr.onreadystatechange = function () {
  1287. if (xhr.readyState !== 4) {
  1288. return;
  1289. }
  1290. if (xhr.status < 400 && xhr.responseText) {
  1291. code.textContent = xhr.responseText;
  1292. Prism.highlightElement(code);
  1293. return;
  1294. }
  1295. if (xhr.status === 404) {
  1296. code.textContent = '✖ Error: File could not be found';
  1297. return;
  1298. }
  1299. if (xhr.status >= 400) {
  1300. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1301. return;
  1302. }
  1303. code.textContent = '✖ Error: An unknown error occurred';
  1304. };
  1305. xhr.send(null);
  1306. });
  1307. }
  1308. const modalButtons = document.querySelectorAll("[data-modal]");
  1309. const openedAsLocalFile = window.location.protocol === 'file:';
  1310. if (modalButtons.length > 0 && openedAsLocalFile) {
  1311. console.warn(
  1312. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1313. 'browsers block XHR requests when a page is opened this way'
  1314. );
  1315. }
  1316. modalButtons.forEach(function (trigger) {
  1317. if (openedAsLocalFile) {
  1318. trigger.setAttribute("hidden", "hidden");
  1319. }
  1320. trigger.addEventListener("click", function (event) {
  1321. event.preventDefault();
  1322. const modal = document.getElementById(trigger.dataset.modal);
  1323. if (!modal) {
  1324. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1325. return;
  1326. }
  1327. modal.classList.add("phpdocumentor-modal__open");
  1328. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1329. const exits = modal.querySelectorAll("[data-exit-button]");
  1330. exits.forEach(function (exit) {
  1331. exit.addEventListener("click", function (event) {
  1332. event.preventDefault();
  1333. modal.classList.remove("phpdocumentor-modal__open");
  1334. });
  1335. });
  1336. });
  1337. });
  1338. })();
  1339. </script>
  1340. </article>
  1341. </section>
  1342. <section class="phpdocumentor-on-this-page__sidebar">
  1343. <section class="phpdocumentor-on-this-page__content">
  1344. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1345. <ul class="phpdocumentor-list -clean">
  1346. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1347. <li>
  1348. <ul class="phpdocumentor-list -clean">
  1349. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#toc-constants">Constants</a></li>
  1350. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#toc-properties">Properties</a></li>
  1351. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#toc-methods">Methods</a></li>
  1352. </ul>
  1353. </li>
  1354. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  1355. <li>
  1356. <ul class="phpdocumentor-list -clean">
  1357. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#constant_version">version</a></li>
  1358. </ul>
  1359. </li>
  1360. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1361. <li>
  1362. <ul class="phpdocumentor-list -clean">
  1363. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#property_matrix">$matrix<a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html"></li>
  1364. </ul>
  1365. </li>
  1366. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1367. <li>
  1368. <ul class="phpdocumentor-list -clean">
  1369. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_debugMatrix">debugMatrix()</a></li>
  1370. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_matrixProvider">matrixProvider()</a></li>
  1371. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testCheckNeighbours">testCheckNeighbours()</a></li>
  1372. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testCheckTypeIn">testCheckTypeIn()</a></li>
  1373. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testECC">testECC()</a></li>
  1374. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testFlip">testFlip()</a></li>
  1375. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetSetCheck">testGetSetCheck()</a></li>
  1376. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testInstance">testInstance()</a></li>
  1377. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testMaskPattern">testMaskPattern()</a></li>
  1378. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testRotate90">testRotate90()</a></li>
  1379. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetAlignmentPattern">testSetAlignmentPattern()</a></li>
  1380. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetDarkModule">testSetDarkModule()</a></li>
  1381. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFinderPattern">testSetFinderPattern()</a></li>
  1382. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFormatInfo">testSetFormatInfo()</a></li>
  1383. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceExceedsException">testSetLogoSpaceExceedsException()</a></li>
  1384. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceInvalidEccException">testSetLogoSpaceInvalidEccException()</a></li>
  1385. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceMaxSizeException">testSetLogoSpaceMaxSizeException()</a></li>
  1386. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOmitHeight">testSetLogoSpaceOmitHeight()</a></li>
  1387. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOrientation">testSetLogoSpaceOrientation()</a></li>
  1388. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpacePosition">testSetLogoSpacePosition()</a></li>
  1389. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZone">testSetQuietZone()</a></li>
  1390. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZoneException">testSetQuietZoneException()</a></li>
  1391. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetSeparators">testSetSeparators()</a></li>
  1392. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetTimingPattern">testSetTimingPattern()</a></li>
  1393. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetVersionNumber">testSetVersionNumber()</a></li>
  1394. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSize">testSize()</a></li>
  1395. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testVersion">testVersion()</a></li>
  1396. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_dm">dm()</a></li>
  1397. <li><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_setUp">setUp()</a></li>
  1398. </ul>
  1399. </li>
  1400. </ul>
  1401. </section>
  1402. </section>
  1403. </div>
  1404. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1405. <section class="phpdocumentor-search-results__dialog">
  1406. <header class="phpdocumentor-search-results__header">
  1407. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1408. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1409. </header>
  1410. <section class="phpdocumentor-search-results__body">
  1411. <ul class="phpdocumentor-search-results__entries"></ul>
  1412. </section>
  1413. </section>
  1414. </section>
  1415. </div>
  1416. <a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1417. </main>
  1418. <script>
  1419. cssVars({});
  1420. </script>
  1421. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1422. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1423. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1424. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1425. </body>
  1426. </html>