chillerlan-QRCodeTest-Data-QRMatrixTest.html 81 KB

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