chillerlan-QRCodeTest-Data-QRMatrixTest.html 88 KB

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