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