chillerlan-QRCodeTest-Data-QRMatrixTest.html 88 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934
  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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class="" 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 class=""><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 class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#property_matrix">$matrix</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 class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_matrixProvider">matrixProvider()</a></li>
  1355. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testCheckNeighbours">testCheckNeighbours()</a></li>
  1356. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testCheckTypeIn">testCheckTypeIn()</a></li>
  1357. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testFlip">testFlip()</a></li>
  1358. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetECC">testGetECC()</a></li>
  1359. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetMaskPattern">testGetMaskPattern()</a></li>
  1360. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetSetCheck">testGetSetCheck()</a></li>
  1361. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetSize">testGetSize()</a></li>
  1362. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testGetVersion">testGetVersion()</a></li>
  1363. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testRotate90">testRotate90()</a></li>
  1364. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetAlignmentPattern">testSetAlignmentPattern()</a></li>
  1365. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetDarkModule">testSetDarkModule()</a></li>
  1366. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFinderPattern">testSetFinderPattern()</a></li>
  1367. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetFormatInfo">testSetFormatInfo()</a></li>
  1368. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceExceedsException">testSetLogoSpaceExceedsException()</a></li>
  1369. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceInvalidEccException">testSetLogoSpaceInvalidEccException()</a></li>
  1370. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceMaxSizeException">testSetLogoSpaceMaxSizeException()</a></li>
  1371. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOmitDimension">testSetLogoSpaceOmitDimension()</a></li>
  1372. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpaceOrientation">testSetLogoSpaceOrientation()</a></li>
  1373. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetLogoSpacePosition">testSetLogoSpacePosition()</a></li>
  1374. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZone">testSetQuietZone()</a></li>
  1375. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetQuietZoneException">testSetQuietZoneException()</a></li>
  1376. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetSeparators">testSetSeparators()</a></li>
  1377. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetTimingPattern">testSetTimingPattern()</a></li>
  1378. <li class=""><a href="classes/chillerlan-QRCodeTest-Data-QRMatrixTest.html#method_testSetVersionNumber">testSetVersionNumber()</a></li>
  1379. <li class=""><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a></li>
  1380. <li class=""><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a></li>
  1381. <li class=""><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>