chillerlan-QRCodeTest-QRCodeReaderImagickTest.html 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150
  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. <h4 class="phpdocumentor-sidebar__root-namespace">
  82. <a href="namespaces/output.html" class="">Output</a>
  83. </h4>
  84. </section>
  85. <section class="phpdocumentor-sidebar__category">
  86. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  87. <h4 class="phpdocumentor-sidebar__root-namespace">
  88. <a href="packages/Application.html" class="">Application</a>
  89. </h4>
  90. </section>
  91. <section class="phpdocumentor-sidebar__category">
  92. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  93. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  94. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  96. </section>
  97. <section class="phpdocumentor-sidebar__category">
  98. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  100. </section>
  101. </aside>
  102. <div class="phpdocumentor-column -nine phpdocumentor-content">
  103. <section>
  104. <ul class="phpdocumentor-breadcrumbs">
  105. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  106. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  107. </ul>
  108. <article class="phpdocumentor-element -class">
  109. <h2 class="phpdocumentor-content__title">
  110. QRCodeReaderImagickTest
  111. <span class="phpdocumentor-element__extends">
  112. extends <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\QRCodeReaderTestAbstract">QRCodeReaderTestAbstract</abbr></a>
  113. </span>
  114. <div class="phpdocumentor-element__package">
  115. in package
  116. <ul class="phpdocumentor-breadcrumbs">
  117. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  118. </ul>
  119. </div>
  120. </h2>
  121. <div class="phpdocumentor-label-line">
  122. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  123. </div>
  124. <aside class="phpdocumentor-element-found-in">
  125. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderImagickTest.php"><a href="files/tests-qrcodereaderimagicktest.html"><abbr title="tests/QRCodeReaderImagickTest.php">QRCodeReaderImagickTest.php</abbr></a></abbr>
  126. :
  127. <span class="phpdocumentor-element-found-in__line">24</span>
  128. </aside>
  129. <p class="phpdocumentor-summary">Tests the Imagick based reader</p>
  130. <h3 id="toc">
  131. Table of Contents
  132. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  133. </h3>
  134. <h4 id="toc-constants">
  135. Constants
  136. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  137. </h4>
  138. <dl class="phpdocumentor-table-of-contents">
  139. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  140. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum">loremipsum</a>
  141. <span>
  142. &nbsp;= &#039;Just let this happen. We just let this flow right out of our minds. &#039; . &#039;Anyone can paint. We touch the canvas, the canvas takes what it wants. From all of us here, &#039; . &#039;I want to wish you happy painting and God bless, my friends. A tree cannot be straight if it has a crooked trunk. &#039; . &#039;You have to make almighty decisions when you\&#039;re the creator. I guess that would be considered a UFO. &#039; . &#039;A big cotton ball in the sky. I\&#039;m gonna add just a tiny little amount of Prussian Blue. &#039; . &#039;They say everything looks better with odd numbers of things. But sometimes I put even numbers—just &#039; . &#039;to upset the critics. We\&#039;ll lay all these little funky little things in there. &#039; </span>
  143. </dt>
  144. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  145. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_samplesDir">samplesDir</a>
  146. <span>
  147. &nbsp;= __DIR__ . &#039;/samples/&#039; </span>
  148. </dt>
  149. </dl>
  150. <h4 id="toc-properties">
  151. Properties
  152. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  153. </h4>
  154. <dl class="phpdocumentor-table-of-contents">
  155. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  156. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options">$options</a>
  157. <span>
  158. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  159. </dt>
  160. </dl>
  161. <h4 id="toc-methods">
  162. Methods
  163. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  164. </h4>
  165. <dl class="phpdocumentor-table-of-contents">
  166. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  167. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider">dataTestProvider()</a>
  168. <span>
  169. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  170. </dt>
  171. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  172. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  173. <span>
  174. &nbsp;: int </span>
  175. </dt>
  176. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  177. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  178. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider">qrCodeProvider()</a>
  179. <span>
  180. &nbsp;: array&lt;string|int, mixed&gt; </span>
  181. </dt>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  183. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData">testReadData()</a>
  184. <span>
  185. &nbsp;: void </span>
  186. </dt>
  187. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  188. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader">testReader()</a>
  189. <span>
  190. &nbsp;: void </span>
  191. </dt>
  192. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  193. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode">testReaderMultiMode()</a>
  194. <span>
  195. &nbsp;: void </span>
  196. </dt>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_testReadVectorFormats">testReadVectorFormats()</a>
  199. <span>
  200. &nbsp;: void </span>
  201. </dt>
  202. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  203. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_vectorQRCodeProvider">vectorQRCodeProvider()</a>
  204. <span>
  205. &nbsp;: array&lt;string|int, mixed&gt; </span>
  206. </dt>
  207. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  208. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a>
  209. <span>
  210. &nbsp;: void </span>
  211. </dt>
  212. <dd>Matrix debugging console output</dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  214. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a>
  215. <span>
  216. &nbsp;: void </span>
  217. </dt>
  218. <dd>debugging shortcut - limit to a single version when using with matrixProvider</dd>
  219. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  220. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_getLuminanceSourceFromFile">getLuminanceSourceFromFile()</a>
  221. <span>
  222. &nbsp;: <a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a> </span>
  223. </dt>
  224. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  225. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_setUp">setUp()</a>
  226. <span>
  227. &nbsp;: void </span>
  228. </dt>
  229. </dl>
  230. <section class="phpdocumentor-constants">
  231. <h3 class="phpdocumentor-elements__header" id="constants">
  232. Constants
  233. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  234. </h3>
  235. <article class="phpdocumentor-element -constant -protected ">
  236. <h4 class="phpdocumentor-element__name" id="constant_loremipsum">
  237. loremipsum
  238. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum" class="headerlink"><i class="fas fa-link"></i></a>
  239. </h4>
  240. <aside class="phpdocumentor-element-found-in">
  241. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  242. :
  243. <span class="phpdocumentor-element-found-in__line">32</span>
  244. </aside>
  245. <code class="phpdocumentor-signature phpdocumentor-code ">
  246. <span class="phpdocumentor-signature__visibility">protected</span>
  247. <span class="phpdocumentor-signature__type">mixed</span>
  248. <span class="phpdocumentor-signature__name">loremipsum</span>
  249. = <span class="phpdocumentor-signature__default-value">&#039;Just let this happen. We just let this flow right out of our minds. &#039; . &#039;Anyone can paint. We touch the canvas, the canvas takes what it wants. From all of us here, &#039; . &#039;I want to wish you happy painting and God bless, my friends. A tree cannot be straight if it has a crooked trunk. &#039; . &#039;You have to make almighty decisions when you\&#039;re the creator. I guess that would be considered a UFO. &#039; . &#039;A big cotton ball in the sky. I\&#039;m gonna add just a tiny little amount of Prussian Blue. &#039; . &#039;They say everything looks better with odd numbers of things. But sometimes I put even numbers—just &#039; . &#039;to upset the critics. We\&#039;ll lay all these little funky little things in there. &#039;</span>
  250. </code>
  251. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  252. Tags
  253. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum#tags" class="headerlink"><i class="fas fa-link"></i></a>
  254. </h5>
  255. <dl class="phpdocumentor-tag-list">
  256. <dt class="phpdocumentor-tag-list__entry">
  257. <span class="phpdocumentor-tag__name">see</span>
  258. </dt>
  259. <dd class="phpdocumentor-tag-list__definition">
  260. <span class="phpdocumentor-tag-link"><a href="https://www.bobrosslipsum.com/">https://www.bobrosslipsum.com/</a></span>
  261. </dd>
  262. </dl>
  263. </article>
  264. <article class="phpdocumentor-element -constant -protected ">
  265. <h4 class="phpdocumentor-element__name" id="constant_samplesDir">
  266. samplesDir
  267. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_samplesDir" class="headerlink"><i class="fas fa-link"></i></a>
  268. </h4>
  269. <aside class="phpdocumentor-element-found-in">
  270. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  271. :
  272. <span class="phpdocumentor-element-found-in__line">40</span>
  273. </aside>
  274. <code class="phpdocumentor-signature phpdocumentor-code ">
  275. <span class="phpdocumentor-signature__visibility">protected</span>
  276. <span class="phpdocumentor-signature__type">mixed</span>
  277. <span class="phpdocumentor-signature__name">samplesDir</span>
  278. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/samples/&#039;</span>
  279. </code>
  280. </article>
  281. </section>
  282. <section class="phpdocumentor-properties">
  283. <h3 class="phpdocumentor-elements__header" id="properties">
  284. Properties
  285. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  286. </h3>
  287. <article
  288. class="
  289. phpdocumentor-element
  290. -property
  291. -protected
  292. "
  293. >
  294. <h4 class="phpdocumentor-element__name" id="property_options">
  295. $options
  296. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  297. <span class="phpdocumentor-element__modifiers">
  298. </span>
  299. </h4>
  300. <aside class="phpdocumentor-element-found-in">
  301. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  302. :
  303. <span class="phpdocumentor-element-found-in__line">42</span>
  304. </aside>
  305. <code class="phpdocumentor-code phpdocumentor-signature ">
  306. <span class="phpdocumentor-signature__visibility">protected</span>
  307. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  308. <span class="phpdocumentor-signature__name">$options</span>
  309. </code>
  310. </article>
  311. </section>
  312. <section class="phpdocumentor-methods">
  313. <h3 class="phpdocumentor-elements__header" id="methods">
  314. Methods
  315. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  316. </h3>
  317. <article
  318. class="phpdocumentor-element
  319. -method
  320. -public
  321. -static "
  322. >
  323. <h4 class="phpdocumentor-element__name" id="method_dataTestProvider">
  324. dataTestProvider()
  325. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider" class="headerlink"><i class="fas fa-link"></i></a>
  326. </h4>
  327. <aside class="phpdocumentor-element-found-in">
  328. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  329. :
  330. <span class="phpdocumentor-element-found-in__line">126</span>
  331. </aside>
  332. <code class="phpdocumentor-code phpdocumentor-signature ">
  333. <span class="phpdocumentor-signature__visibility">public</span>
  334. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">dataTestProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span></code>
  335. <div class="phpdocumentor-label-line">
  336. </div>
  337. <section>
  338. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  339. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  340. </section>
  341. </article>
  342. <article
  343. class="phpdocumentor-element
  344. -method
  345. -public
  346. -static "
  347. >
  348. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  349. getMaxLengthForMode()
  350. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  351. </h4>
  352. <aside class="phpdocumentor-element-found-in">
  353. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRMaxLengthTrait.php"><a href="files/tests-qrmaxlengthtrait.html"><abbr title="tests/QRMaxLengthTrait.php">QRMaxLengthTrait.php</abbr></a></abbr>
  354. :
  355. <span class="phpdocumentor-element-found-in__line">79</span>
  356. </aside>
  357. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  358. <code class="phpdocumentor-code phpdocumentor-signature ">
  359. <span class="phpdocumentor-signature__visibility">public</span>
  360. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getMaxLengthForMode</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mode</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  361. <div class="phpdocumentor-label-line">
  362. </div>
  363. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  364. <dl class="phpdocumentor-argument-list">
  365. <dt class="phpdocumentor-argument-list__entry">
  366. <span class="phpdocumentor-signature__argument__name">$mode</span>
  367. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  368. </dt>
  369. <dd class="phpdocumentor-argument-list__definition">
  370. </dd>
  371. <dt class="phpdocumentor-argument-list__entry">
  372. <span class="phpdocumentor-signature__argument__name">$version</span>
  373. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  374. </dt>
  375. <dd class="phpdocumentor-argument-list__definition">
  376. </dd>
  377. <dt class="phpdocumentor-argument-list__entry">
  378. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  379. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  380. </dt>
  381. <dd class="phpdocumentor-argument-list__definition">
  382. </dd>
  383. </dl>
  384. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  385. Tags
  386. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode#tags" class="headerlink"><i class="fas fa-link"></i></a>
  387. </h5>
  388. <dl class="phpdocumentor-tag-list">
  389. <dt class="phpdocumentor-tag-list__entry">
  390. <span class="phpdocumentor-tag__name">throws</span>
  391. </dt>
  392. <dd class="phpdocumentor-tag-list__definition">
  393. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  394. </dd>
  395. <dt class="phpdocumentor-tag-list__entry">
  396. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  397. </dt>
  398. <dd class="phpdocumentor-tag-list__definition">
  399. </dd>
  400. </dl>
  401. <section>
  402. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  403. <span class="phpdocumentor-signature__response_type">int</span>
  404. </section>
  405. </article>
  406. <article
  407. class="phpdocumentor-element
  408. -method
  409. -public
  410. -static "
  411. >
  412. <h4 class="phpdocumentor-element__name" id="method_qrCodeProvider">
  413. qrCodeProvider()
  414. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider" class="headerlink"><i class="fas fa-link"></i></a>
  415. </h4>
  416. <aside class="phpdocumentor-element-found-in">
  417. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  418. :
  419. <span class="phpdocumentor-element-found-in__line">54</span>
  420. </aside>
  421. <code class="phpdocumentor-code phpdocumentor-signature ">
  422. <span class="phpdocumentor-signature__visibility">public</span>
  423. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">qrCodeProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  424. <div class="phpdocumentor-label-line">
  425. </div>
  426. <section>
  427. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  428. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  429. </section>
  430. </article>
  431. <article
  432. class="phpdocumentor-element
  433. -method
  434. -public
  435. "
  436. >
  437. <h4 class="phpdocumentor-element__name" id="method_testReadData">
  438. testReadData()
  439. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData" class="headerlink"><i class="fas fa-link"></i></a>
  440. </h4>
  441. <aside class="phpdocumentor-element-found-in">
  442. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  443. :
  444. <span class="phpdocumentor-element-found-in__line">148</span>
  445. </aside>
  446. <code class="phpdocumentor-code phpdocumentor-signature ">
  447. <span class="phpdocumentor-signature__visibility">public</span>
  448. <span class="phpdocumentor-signature__name">testReadData</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ecc</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  449. <div class="phpdocumentor-label-line">
  450. </div>
  451. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  452. <dl class="phpdocumentor-argument-list">
  453. <dt class="phpdocumentor-argument-list__entry">
  454. <span class="phpdocumentor-signature__argument__name">$version</span>
  455. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  456. </dt>
  457. <dd class="phpdocumentor-argument-list__definition">
  458. </dd>
  459. <dt class="phpdocumentor-argument-list__entry">
  460. <span class="phpdocumentor-signature__argument__name">$ecc</span>
  461. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  462. </dt>
  463. <dd class="phpdocumentor-argument-list__definition">
  464. </dd>
  465. <dt class="phpdocumentor-argument-list__entry">
  466. <span class="phpdocumentor-signature__argument__name">$expected</span>
  467. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  468. </dt>
  469. <dd class="phpdocumentor-argument-list__definition">
  470. </dd>
  471. </dl>
  472. </article>
  473. <article
  474. class="phpdocumentor-element
  475. -method
  476. -public
  477. "
  478. >
  479. <h4 class="phpdocumentor-element__name" id="method_testReader">
  480. testReader()
  481. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader" class="headerlink"><i class="fas fa-link"></i></a>
  482. </h4>
  483. <aside class="phpdocumentor-element-found-in">
  484. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  485. :
  486. <span class="phpdocumentor-element-found-in__line">86</span>
  487. </aside>
  488. <code class="phpdocumentor-code phpdocumentor-signature ">
  489. <span class="phpdocumentor-signature__visibility">public</span>
  490. <span class="phpdocumentor-signature__name">testReader</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$img</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$grayscale</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  491. <div class="phpdocumentor-label-line">
  492. </div>
  493. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  494. <dl class="phpdocumentor-argument-list">
  495. <dt class="phpdocumentor-argument-list__entry">
  496. <span class="phpdocumentor-signature__argument__name">$img</span>
  497. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  498. </dt>
  499. <dd class="phpdocumentor-argument-list__definition">
  500. </dd>
  501. <dt class="phpdocumentor-argument-list__entry">
  502. <span class="phpdocumentor-signature__argument__name">$expected</span>
  503. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  504. </dt>
  505. <dd class="phpdocumentor-argument-list__definition">
  506. </dd>
  507. <dt class="phpdocumentor-argument-list__entry">
  508. <span class="phpdocumentor-signature__argument__name">$grayscale</span>
  509. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  510. </dt>
  511. <dd class="phpdocumentor-argument-list__definition">
  512. </dd>
  513. </dl>
  514. </article>
  515. <article
  516. class="phpdocumentor-element
  517. -method
  518. -public
  519. "
  520. >
  521. <h4 class="phpdocumentor-element__name" id="method_testReaderMultiMode">
  522. testReaderMultiMode()
  523. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode" class="headerlink"><i class="fas fa-link"></i></a>
  524. </h4>
  525. <aside class="phpdocumentor-element-found-in">
  526. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  527. :
  528. <span class="phpdocumentor-element-found-in__line">103</span>
  529. </aside>
  530. <code class="phpdocumentor-code phpdocumentor-signature ">
  531. <span class="phpdocumentor-signature__visibility">public</span>
  532. <span class="phpdocumentor-signature__name">testReaderMultiMode</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  533. <div class="phpdocumentor-label-line">
  534. </div>
  535. </article>
  536. <article
  537. class="phpdocumentor-element
  538. -method
  539. -public
  540. "
  541. >
  542. <h4 class="phpdocumentor-element__name" id="method_testReadVectorFormats">
  543. testReadVectorFormats()
  544. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_testReadVectorFormats" class="headerlink"><i class="fas fa-link"></i></a>
  545. </h4>
  546. <aside class="phpdocumentor-element-found-in">
  547. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderImagickTest.php"><a href="files/tests-qrcodereaderimagicktest.html"><abbr title="tests/QRCodeReaderImagickTest.php">QRCodeReaderImagickTest.php</abbr></a></abbr>
  548. :
  549. <span class="phpdocumentor-element-found-in__line">54</span>
  550. </aside>
  551. <code class="phpdocumentor-code phpdocumentor-signature ">
  552. <span class="phpdocumentor-signature__visibility">public</span>
  553. <span class="phpdocumentor-signature__name">testReadVectorFormats</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$img</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  554. <div class="phpdocumentor-label-line">
  555. </div>
  556. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  557. <dl class="phpdocumentor-argument-list">
  558. <dt class="phpdocumentor-argument-list__entry">
  559. <span class="phpdocumentor-signature__argument__name">$img</span>
  560. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  561. </dt>
  562. <dd class="phpdocumentor-argument-list__definition">
  563. </dd>
  564. <dt class="phpdocumentor-argument-list__entry">
  565. <span class="phpdocumentor-signature__argument__name">$expected</span>
  566. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  567. </dt>
  568. <dd class="phpdocumentor-argument-list__definition">
  569. </dd>
  570. </dl>
  571. </article>
  572. <article
  573. class="phpdocumentor-element
  574. -method
  575. -public
  576. -static "
  577. >
  578. <h4 class="phpdocumentor-element__name" id="method_vectorQRCodeProvider">
  579. vectorQRCodeProvider()
  580. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_vectorQRCodeProvider" class="headerlink"><i class="fas fa-link"></i></a>
  581. </h4>
  582. <aside class="phpdocumentor-element-found-in">
  583. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderImagickTest.php"><a href="files/tests-qrcodereaderimagicktest.html"><abbr title="tests/QRCodeReaderImagickTest.php">QRCodeReaderImagickTest.php</abbr></a></abbr>
  584. :
  585. <span class="phpdocumentor-element-found-in__line">44</span>
  586. </aside>
  587. <code class="phpdocumentor-code phpdocumentor-signature ">
  588. <span class="phpdocumentor-signature__visibility">public</span>
  589. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">vectorQRCodeProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  590. <div class="phpdocumentor-label-line">
  591. </div>
  592. <section>
  593. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  594. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  595. </section>
  596. </article>
  597. <article
  598. class="phpdocumentor-element
  599. -method
  600. -protected
  601. "
  602. >
  603. <h4 class="phpdocumentor-element__name" id="method_debugMatrix">
  604. debugMatrix()
  605. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  606. </h4>
  607. <aside class="phpdocumentor-element-found-in">
  608. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRMatrixDebugTrait.php"><a href="files/tests-qrmatrixdebugtrait.html"><abbr title="tests/QRMatrixDebugTrait.php">QRMatrixDebugTrait.php</abbr></a></abbr>
  609. :
  610. <span class="phpdocumentor-element-found-in__line">26</span>
  611. </aside>
  612. <p class="phpdocumentor-summary">Matrix debugging console output</p>
  613. <code class="phpdocumentor-code phpdocumentor-signature ">
  614. <span class="phpdocumentor-signature__visibility">protected</span>
  615. <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>
  616. <div class="phpdocumentor-label-line">
  617. </div>
  618. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  619. <dl class="phpdocumentor-argument-list">
  620. <dt class="phpdocumentor-argument-list__entry">
  621. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  622. : <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>
  623. </dt>
  624. <dd class="phpdocumentor-argument-list__definition">
  625. </dd>
  626. </dl>
  627. </article>
  628. <article
  629. class="phpdocumentor-element
  630. -method
  631. -protected
  632. "
  633. >
  634. <h4 class="phpdocumentor-element__name" id="method_dm">
  635. dm()
  636. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm" class="headerlink"><i class="fas fa-link"></i></a>
  637. </h4>
  638. <aside class="phpdocumentor-element-found-in">
  639. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRMatrixDebugTrait.php"><a href="files/tests-qrmatrixdebugtrait.html"><abbr title="tests/QRMatrixDebugTrait.php">QRMatrixDebugTrait.php</abbr></a></abbr>
  640. :
  641. <span class="phpdocumentor-element-found-in__line">83</span>
  642. </aside>
  643. <p class="phpdocumentor-summary">debugging shortcut - limit to a single version when using with matrixProvider</p>
  644. <code class="phpdocumentor-code phpdocumentor-signature ">
  645. <span class="phpdocumentor-signature__visibility">protected</span>
  646. <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>
  647. <div class="phpdocumentor-label-line">
  648. </div>
  649. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  650. <dl class="phpdocumentor-argument-list">
  651. <dt class="phpdocumentor-argument-list__entry">
  652. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  653. : <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>
  654. </dt>
  655. <dd class="phpdocumentor-argument-list__definition">
  656. </dd>
  657. </dl>
  658. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  659. Tags
  660. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm#tags" class="headerlink"><i class="fas fa-link"></i></a>
  661. </h5>
  662. <dl class="phpdocumentor-tag-list">
  663. <dt class="phpdocumentor-tag-list__entry">
  664. <span class="phpdocumentor-tag__name">see</span>
  665. </dt>
  666. <dd class="phpdocumentor-tag-list__definition">
  667. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCodeTest\QRMatrixTest::matrixProvider()">QRMatrixTest::matrixProvider()</abbr></span>
  668. </dd>
  669. </dl>
  670. </article>
  671. <article
  672. class="phpdocumentor-element
  673. -method
  674. -protected
  675. "
  676. >
  677. <h4 class="phpdocumentor-element__name" id="method_getLuminanceSourceFromFile">
  678. getLuminanceSourceFromFile()
  679. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_getLuminanceSourceFromFile" class="headerlink"><i class="fas fa-link"></i></a>
  680. </h4>
  681. <aside class="phpdocumentor-element-found-in">
  682. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderImagickTest.php"><a href="files/tests-qrcodereaderimagicktest.html"><abbr title="tests/QRCodeReaderImagickTest.php">QRCodeReaderImagickTest.php</abbr></a></abbr>
  683. :
  684. <span class="phpdocumentor-element-found-in__line">37</span>
  685. </aside>
  686. <code class="phpdocumentor-code phpdocumentor-signature ">
  687. <span class="phpdocumentor-signature__visibility">protected</span>
  688. <span class="phpdocumentor-signature__name">getLuminanceSourceFromFile</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a></span></code>
  689. <div class="phpdocumentor-label-line">
  690. </div>
  691. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  692. <dl class="phpdocumentor-argument-list">
  693. <dt class="phpdocumentor-argument-list__entry">
  694. <span class="phpdocumentor-signature__argument__name">$file</span>
  695. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  696. </dt>
  697. <dd class="phpdocumentor-argument-list__definition">
  698. </dd>
  699. <dt class="phpdocumentor-argument-list__entry">
  700. <span class="phpdocumentor-signature__argument__name">$options</span>
  701. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  702. </dt>
  703. <dd class="phpdocumentor-argument-list__definition">
  704. </dd>
  705. </dl>
  706. <section>
  707. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  708. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a></span>
  709. </section>
  710. </article>
  711. <article
  712. class="phpdocumentor-element
  713. -method
  714. -protected
  715. "
  716. >
  717. <h4 class="phpdocumentor-element__name" id="method_setUp">
  718. setUp()
  719. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  720. </h4>
  721. <aside class="phpdocumentor-element-found-in">
  722. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderImagickTest.php"><a href="files/tests-qrcodereaderimagicktest.html"><abbr title="tests/QRCodeReaderImagickTest.php">QRCodeReaderImagickTest.php</abbr></a></abbr>
  723. :
  724. <span class="phpdocumentor-element-found-in__line">26</span>
  725. </aside>
  726. <code class="phpdocumentor-code phpdocumentor-signature ">
  727. <span class="phpdocumentor-signature__visibility">protected</span>
  728. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  729. <div class="phpdocumentor-label-line">
  730. </div>
  731. </article>
  732. </section>
  733. <div class="phpdocumentor-modal" id="source-view">
  734. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  735. <div class="phpdocumentor-modal-container">
  736. <div class="phpdocumentor-modal-content">
  737. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/QRCodeReaderImagickTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  738. </div>
  739. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  740. </div>
  741. </div>
  742. <script type="text/javascript">
  743. (function () {
  744. function loadExternalCodeSnippet(el, url, line) {
  745. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  746. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  747. const language = 'php';
  748. const code = document.createElement('code');
  749. code.className = 'language-' + language;
  750. pre.textContent = '';
  751. pre.setAttribute('data-line', line)
  752. code.textContent = 'Loading…';
  753. pre.appendChild(code);
  754. var xhr = new XMLHttpRequest();
  755. xhr.open('GET', src, true);
  756. xhr.onreadystatechange = function () {
  757. if (xhr.readyState !== 4) {
  758. return;
  759. }
  760. if (xhr.status < 400 && xhr.responseText) {
  761. code.textContent = xhr.responseText;
  762. Prism.highlightElement(code);
  763. return;
  764. }
  765. if (xhr.status === 404) {
  766. code.textContent = '✖ Error: File could not be found';
  767. return;
  768. }
  769. if (xhr.status >= 400) {
  770. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  771. return;
  772. }
  773. code.textContent = '✖ Error: An unknown error occurred';
  774. };
  775. xhr.send(null);
  776. });
  777. }
  778. const modalButtons = document.querySelectorAll("[data-modal]");
  779. const openedAsLocalFile = window.location.protocol === 'file:';
  780. if (modalButtons.length > 0 && openedAsLocalFile) {
  781. console.warn(
  782. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  783. 'browsers block XHR requests when a page is opened this way'
  784. );
  785. }
  786. modalButtons.forEach(function (trigger) {
  787. if (openedAsLocalFile) {
  788. trigger.setAttribute("hidden", "hidden");
  789. }
  790. trigger.addEventListener("click", function (event) {
  791. event.preventDefault();
  792. const modal = document.getElementById(trigger.dataset.modal);
  793. if (!modal) {
  794. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  795. return;
  796. }
  797. modal.classList.add("phpdocumentor-modal__open");
  798. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  799. const exits = modal.querySelectorAll("[data-exit-button]");
  800. exits.forEach(function (exit) {
  801. exit.addEventListener("click", function (event) {
  802. event.preventDefault();
  803. modal.classList.remove("phpdocumentor-modal__open");
  804. });
  805. });
  806. });
  807. });
  808. })();
  809. </script>
  810. </article>
  811. </section>
  812. <section class="phpdocumentor-on-this-page__sidebar">
  813. <section class="phpdocumentor-on-this-page__content">
  814. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  815. <ul class="phpdocumentor-list -clean">
  816. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  817. <li>
  818. <ul class="phpdocumentor-list -clean">
  819. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#toc-constants">Constants</a></li>
  820. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#toc-properties">Properties</a></li>
  821. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#toc-methods">Methods</a></li>
  822. </ul>
  823. </li>
  824. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  825. <li>
  826. <ul class="phpdocumentor-list -clean">
  827. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum">loremipsum</a></li>
  828. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_samplesDir">samplesDir</a></li>
  829. </ul>
  830. </li>
  831. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  832. <li>
  833. <ul class="phpdocumentor-list -clean">
  834. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options">$options<a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html"></li>
  835. </ul>
  836. </li>
  837. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  838. <li>
  839. <ul class="phpdocumentor-list -clean">
  840. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider">dataTestProvider()</a></li>
  841. <li><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a></li>
  842. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider">qrCodeProvider()</a></li>
  843. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData">testReadData()</a></li>
  844. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader">testReader()</a></li>
  845. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode">testReaderMultiMode()</a></li>
  846. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_testReadVectorFormats">testReadVectorFormats()</a></li>
  847. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_vectorQRCodeProvider">vectorQRCodeProvider()</a></li>
  848. <li><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a></li>
  849. <li><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a></li>
  850. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_getLuminanceSourceFromFile">getLuminanceSourceFromFile()</a></li>
  851. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#method_setUp">setUp()</a></li>
  852. </ul>
  853. </li>
  854. </ul>
  855. </section>
  856. </section>
  857. </div>
  858. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  859. <section class="phpdocumentor-search-results__dialog">
  860. <header class="phpdocumentor-search-results__header">
  861. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  862. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  863. </header>
  864. <section class="phpdocumentor-search-results__body">
  865. <ul class="phpdocumentor-search-results__entries"></ul>
  866. </section>
  867. </section>
  868. </section>
  869. </div>
  870. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderImagickTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  871. </main>
  872. <script>
  873. cssVars({});
  874. </script>
  875. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  876. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  877. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  878. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  879. </body>
  880. </html>