chillerlan-QRCodeTest-Data-QRMatrixTest.html 67 KB

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