chillerlan-QRCodeTest-Data-QRMatrixTest.html 87 KB

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