chillerlan-QRCodeTest-Data-QRMatrixTest.html 88 KB

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