chillerlan-QRCodeTest-QRCodeReaderGDTest.html 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  111. </ul>
  112. <article class="phpdocumentor-element -class">
  113. <h2 class="phpdocumentor-content__title">
  114. QRCodeReaderGDTest
  115. <span class="phpdocumentor-element__extends">
  116. extends <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\QRCodeReaderTestAbstract">QRCodeReaderTestAbstract</abbr></a>
  117. </span>
  118. <div class="phpdocumentor-element__package">
  119. in package
  120. <ul class="phpdocumentor-breadcrumbs">
  121. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  122. </ul>
  123. </div>
  124. </h2>
  125. <div class="phpdocumentor-label-line">
  126. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  127. </div>
  128. <aside class="phpdocumentor-element-found-in">
  129. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderGDTest.php"><a href="files/tests-qrcodereadergdtest.html"><abbr title="tests/QRCodeReaderGDTest.php">QRCodeReaderGDTest.php</abbr></a></abbr>
  130. :
  131. <span class="phpdocumentor-element-found-in__line">21</span>
  132. </aside>
  133. <p class="phpdocumentor-summary">Tests the GD based reader</p>
  134. <h3 id="toc">
  135. Table of Contents
  136. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  137. </h3>
  138. <h4 id="toc-constants">
  139. Constants
  140. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  141. </h4>
  142. <dl class="phpdocumentor-table-of-contents">
  143. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  144. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum">loremipsum</a>
  145. <span>
  146. &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>
  147. </dt>
  148. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  149. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_samplesDir">samplesDir</a>
  150. <span>
  151. &nbsp;= __DIR__ . &#039;/samples/&#039; </span>
  152. </dt>
  153. </dl>
  154. <h4 id="toc-properties">
  155. Properties
  156. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  157. </h4>
  158. <dl class="phpdocumentor-table-of-contents">
  159. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  160. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options">$options</a>
  161. <span>
  162. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  163. </dt>
  164. </dl>
  165. <h4 id="toc-methods">
  166. Methods
  167. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  168. </h4>
  169. <dl class="phpdocumentor-table-of-contents">
  170. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  171. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider">dataTestProvider()</a>
  172. <span>
  173. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  174. </dt>
  175. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  176. <a class="" href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  177. <span>
  178. &nbsp;: int </span>
  179. </dt>
  180. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  181. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  182. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider">qrCodeProvider()</a>
  183. <span>
  184. &nbsp;: array&lt;string|int, mixed&gt; </span>
  185. </dt>
  186. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  187. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData">testReadData()</a>
  188. <span>
  189. &nbsp;: void </span>
  190. </dt>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader">testReader()</a>
  193. <span>
  194. &nbsp;: void </span>
  195. </dt>
  196. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  197. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode">testReaderMultiMode()</a>
  198. <span>
  199. &nbsp;: void </span>
  200. </dt>
  201. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  202. <a class="" href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a>
  203. <span>
  204. &nbsp;: void </span>
  205. </dt>
  206. <dd>Matrix debugging console output</dd>
  207. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  208. <a class="" href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a>
  209. <span>
  210. &nbsp;: void </span>
  211. </dt>
  212. <dd>debugging shortcut - limit to a single version when using with matrixProvider</dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  214. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#method_getLuminanceSourceFromFile">getLuminanceSourceFromFile()</a>
  215. <span>
  216. &nbsp;: <a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a> </span>
  217. </dt>
  218. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  219. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp">setUp()</a>
  220. <span>
  221. &nbsp;: void </span>
  222. </dt>
  223. </dl>
  224. <section class="phpdocumentor-constants">
  225. <h3 class="phpdocumentor-elements__header" id="constants">
  226. Constants
  227. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  228. </h3>
  229. <article class="phpdocumentor-element -constant -protected ">
  230. <h4 class="phpdocumentor-element__name" id="constant_loremipsum">
  231. loremipsum
  232. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum" class="headerlink"><i class="fas fa-link"></i></a>
  233. </h4>
  234. <aside class="phpdocumentor-element-found-in">
  235. <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>
  236. :
  237. <span class="phpdocumentor-element-found-in__line">34</span>
  238. </aside>
  239. <code class="phpdocumentor-signature phpdocumentor-code ">
  240. <span class="phpdocumentor-signature__visibility">protected</span>
  241. <span class="phpdocumentor-signature__type">mixed</span>
  242. <span class="phpdocumentor-signature__name">loremipsum</span>
  243. = <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>
  244. </code>
  245. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  246. Tags
  247. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum#tags" class="headerlink"><i class="fas fa-link"></i></a>
  248. </h5>
  249. <dl class="phpdocumentor-tag-list">
  250. <dt class="phpdocumentor-tag-list__entry">
  251. <span class="phpdocumentor-tag__name">see</span>
  252. </dt>
  253. <dd class="phpdocumentor-tag-list__definition">
  254. <span class="phpdocumentor-tag-link"><a href="https://www.bobrosslipsum.com/">https://www.bobrosslipsum.com/</a></span>
  255. </dd>
  256. </dl>
  257. </article>
  258. <article class="phpdocumentor-element -constant -protected ">
  259. <h4 class="phpdocumentor-element__name" id="constant_samplesDir">
  260. samplesDir
  261. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_samplesDir" class="headerlink"><i class="fas fa-link"></i></a>
  262. </h4>
  263. <aside class="phpdocumentor-element-found-in">
  264. <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>
  265. :
  266. <span class="phpdocumentor-element-found-in__line">42</span>
  267. </aside>
  268. <code class="phpdocumentor-signature phpdocumentor-code ">
  269. <span class="phpdocumentor-signature__visibility">protected</span>
  270. <span class="phpdocumentor-signature__type">mixed</span>
  271. <span class="phpdocumentor-signature__name">samplesDir</span>
  272. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/samples/&#039;</span>
  273. </code>
  274. </article>
  275. </section>
  276. <section class="phpdocumentor-properties">
  277. <h3 class="phpdocumentor-elements__header" id="properties">
  278. Properties
  279. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  280. </h3>
  281. <article
  282. class="
  283. phpdocumentor-element
  284. -property
  285. -protected
  286. "
  287. >
  288. <h4 class="phpdocumentor-element__name" id="property_options">
  289. $options
  290. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  291. <span class="phpdocumentor-element__modifiers">
  292. </span>
  293. </h4>
  294. <aside class="phpdocumentor-element-found-in">
  295. <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>
  296. :
  297. <span class="phpdocumentor-element-found-in__line">44</span>
  298. </aside>
  299. <code class="phpdocumentor-code phpdocumentor-signature ">
  300. <span class="phpdocumentor-signature__visibility">protected</span>
  301. <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>
  302. <span class="phpdocumentor-signature__name">$options</span>
  303. </code>
  304. </article>
  305. </section>
  306. <section class="phpdocumentor-methods">
  307. <h3 class="phpdocumentor-elements__header" id="methods">
  308. Methods
  309. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  310. </h3>
  311. <article
  312. class="phpdocumentor-element
  313. -method
  314. -public
  315. -static "
  316. >
  317. <h4 class="phpdocumentor-element__name" id="method_dataTestProvider">
  318. dataTestProvider()
  319. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider" class="headerlink"><i class="fas fa-link"></i></a>
  320. </h4>
  321. <aside class="phpdocumentor-element-found-in">
  322. <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>
  323. :
  324. <span class="phpdocumentor-element-found-in__line">132</span>
  325. </aside>
  326. <code class="phpdocumentor-code phpdocumentor-signature ">
  327. <span class="phpdocumentor-signature__visibility">public</span>
  328. <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>
  329. <div class="phpdocumentor-label-line">
  330. </div>
  331. <section>
  332. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  333. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  334. </section>
  335. </article>
  336. <article
  337. class="phpdocumentor-element
  338. -method
  339. -public
  340. -static "
  341. >
  342. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  343. getMaxLengthForMode()
  344. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  345. </h4>
  346. <aside class="phpdocumentor-element-found-in">
  347. <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>
  348. :
  349. <span class="phpdocumentor-element-found-in__line">80</span>
  350. </aside>
  351. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  352. <code class="phpdocumentor-code phpdocumentor-signature ">
  353. <span class="phpdocumentor-signature__visibility">public</span>
  354. <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>
  355. <div class="phpdocumentor-label-line">
  356. </div>
  357. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  358. <dl class="phpdocumentor-argument-list">
  359. <dt class="phpdocumentor-argument-list__entry">
  360. <span class="phpdocumentor-signature__argument__name">$mode</span>
  361. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  362. </dt>
  363. <dd class="phpdocumentor-argument-list__definition">
  364. </dd>
  365. <dt class="phpdocumentor-argument-list__entry">
  366. <span class="phpdocumentor-signature__argument__name">$version</span>
  367. : <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>
  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">$eccLevel</span>
  373. : <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>
  374. </dt>
  375. <dd class="phpdocumentor-argument-list__definition">
  376. </dd>
  377. </dl>
  378. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  379. Tags
  380. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode#tags" class="headerlink"><i class="fas fa-link"></i></a>
  381. </h5>
  382. <dl class="phpdocumentor-tag-list">
  383. <dt class="phpdocumentor-tag-list__entry">
  384. <span class="phpdocumentor-tag__name">throws</span>
  385. </dt>
  386. <dd class="phpdocumentor-tag-list__definition">
  387. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  388. </dd>
  389. <dt class="phpdocumentor-tag-list__entry">
  390. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  391. </dt>
  392. <dd class="phpdocumentor-tag-list__definition">
  393. </dd>
  394. </dl>
  395. <section>
  396. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  397. <span class="phpdocumentor-signature__response_type">int</span>
  398. </section>
  399. </article>
  400. <article
  401. class="phpdocumentor-element
  402. -method
  403. -public
  404. -static "
  405. >
  406. <h4 class="phpdocumentor-element__name" id="method_qrCodeProvider">
  407. qrCodeProvider()
  408. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider" class="headerlink"><i class="fas fa-link"></i></a>
  409. </h4>
  410. <aside class="phpdocumentor-element-found-in">
  411. <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>
  412. :
  413. <span class="phpdocumentor-element-found-in__line">54</span>
  414. </aside>
  415. <code class="phpdocumentor-code phpdocumentor-signature ">
  416. <span class="phpdocumentor-signature__visibility">public</span>
  417. <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>
  418. <div class="phpdocumentor-label-line">
  419. </div>
  420. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  421. Tags
  422. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  423. </h5>
  424. <dl class="phpdocumentor-tag-list">
  425. <dt class="phpdocumentor-tag-list__entry">
  426. <span class="phpdocumentor-tag__name">phpstan-return</span>
  427. </dt>
  428. <dd class="phpdocumentor-tag-list__definition">
  429. <section class="phpdocumentor-description"><p>array&lt;string, array{0: string, 1: string, 2: bool}&gt;</p>
  430. </section>
  431. </dd>
  432. </dl>
  433. <section>
  434. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  435. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  436. </section>
  437. </article>
  438. <article
  439. class="phpdocumentor-element
  440. -method
  441. -public
  442. "
  443. >
  444. <h4 class="phpdocumentor-element__name" id="method_testReadData">
  445. testReadData()
  446. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData" class="headerlink"><i class="fas fa-link"></i></a>
  447. </h4>
  448. <aside class="phpdocumentor-element-found-in">
  449. <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>
  450. :
  451. <span class="phpdocumentor-element-found-in__line">156</span>
  452. </aside>
  453. <code class="phpdocumentor-code phpdocumentor-signature ">
  454. <span class="phpdocumentor-signature__visibility">public</span>
  455. <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>
  456. <div class="phpdocumentor-label-line">
  457. </div>
  458. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  459. <dl class="phpdocumentor-argument-list">
  460. <dt class="phpdocumentor-argument-list__entry">
  461. <span class="phpdocumentor-signature__argument__name">$version</span>
  462. : <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>
  463. </dt>
  464. <dd class="phpdocumentor-argument-list__definition">
  465. </dd>
  466. <dt class="phpdocumentor-argument-list__entry">
  467. <span class="phpdocumentor-signature__argument__name">$ecc</span>
  468. : <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>
  469. </dt>
  470. <dd class="phpdocumentor-argument-list__definition">
  471. </dd>
  472. <dt class="phpdocumentor-argument-list__entry">
  473. <span class="phpdocumentor-signature__argument__name">$expected</span>
  474. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  475. </dt>
  476. <dd class="phpdocumentor-argument-list__definition">
  477. </dd>
  478. </dl>
  479. <section class="phpdocumentor-attributes">
  480. <h5 class="phpdocumentor-elements__header" id="attributes">
  481. Attributes <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  482. </h5>
  483. <dl class="phpdocumentor-argument-list">
  484. <dt class="phpdocumentor-argument-list__entry">
  485. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  486. </dt>
  487. <dd class="phpdocumentor-argument-list__entry">
  488. &#039;dataTestProvider&#039;
  489. </dd>
  490. </dl>
  491. <dl class="phpdocumentor-argument-list">
  492. <dt class="phpdocumentor-argument-list__entry">
  493. #[<abbr title="\PHPUnit\Framework\Attributes\Group">Group</abbr>]
  494. </dt>
  495. <dd class="phpdocumentor-argument-list__entry">
  496. &#039;slow&#039;
  497. </dd>
  498. </dl>
  499. </section>
  500. </article>
  501. <article
  502. class="phpdocumentor-element
  503. -method
  504. -public
  505. "
  506. >
  507. <h4 class="phpdocumentor-element__name" id="method_testReader">
  508. testReader()
  509. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader" class="headerlink"><i class="fas fa-link"></i></a>
  510. </h4>
  511. <aside class="phpdocumentor-element-found-in">
  512. <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>
  513. :
  514. <span class="phpdocumentor-element-found-in__line">86</span>
  515. </aside>
  516. <code class="phpdocumentor-code phpdocumentor-signature ">
  517. <span class="phpdocumentor-signature__visibility">public</span>
  518. <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>
  519. <div class="phpdocumentor-label-line">
  520. </div>
  521. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  522. <dl class="phpdocumentor-argument-list">
  523. <dt class="phpdocumentor-argument-list__entry">
  524. <span class="phpdocumentor-signature__argument__name">$img</span>
  525. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  526. </dt>
  527. <dd class="phpdocumentor-argument-list__definition">
  528. </dd>
  529. <dt class="phpdocumentor-argument-list__entry">
  530. <span class="phpdocumentor-signature__argument__name">$expected</span>
  531. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  532. </dt>
  533. <dd class="phpdocumentor-argument-list__definition">
  534. </dd>
  535. <dt class="phpdocumentor-argument-list__entry">
  536. <span class="phpdocumentor-signature__argument__name">$grayscale</span>
  537. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  538. </dt>
  539. <dd class="phpdocumentor-argument-list__definition">
  540. </dd>
  541. </dl>
  542. <section class="phpdocumentor-attributes">
  543. <h5 class="phpdocumentor-elements__header" id="attributes">
  544. Attributes <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  545. </h5>
  546. <dl class="phpdocumentor-argument-list">
  547. <dt class="phpdocumentor-argument-list__entry">
  548. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  549. </dt>
  550. <dd class="phpdocumentor-argument-list__entry">
  551. &#039;qrCodeProvider&#039;
  552. </dd>
  553. </dl>
  554. <dl class="phpdocumentor-argument-list">
  555. <dt class="phpdocumentor-argument-list__entry">
  556. #[<abbr title="\PHPUnit\Framework\Attributes\Group">Group</abbr>]
  557. </dt>
  558. <dd class="phpdocumentor-argument-list__entry">
  559. &#039;slow&#039;
  560. </dd>
  561. </dl>
  562. </section>
  563. </article>
  564. <article
  565. class="phpdocumentor-element
  566. -method
  567. -public
  568. "
  569. >
  570. <h4 class="phpdocumentor-element__name" id="method_testReaderMultiMode">
  571. testReaderMultiMode()
  572. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode" class="headerlink"><i class="fas fa-link"></i></a>
  573. </h4>
  574. <aside class="phpdocumentor-element-found-in">
  575. <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>
  576. :
  577. <span class="phpdocumentor-element-found-in__line">109</span>
  578. </aside>
  579. <code class="phpdocumentor-code phpdocumentor-signature ">
  580. <span class="phpdocumentor-signature__visibility">public</span>
  581. <span class="phpdocumentor-signature__name">testReaderMultiMode</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  582. <div class="phpdocumentor-label-line">
  583. </div>
  584. </article>
  585. <article
  586. class="phpdocumentor-element
  587. -method
  588. -protected
  589. "
  590. >
  591. <h4 class="phpdocumentor-element__name" id="method_debugMatrix">
  592. debugMatrix()
  593. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  594. </h4>
  595. <aside class="phpdocumentor-element-found-in">
  596. <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>
  597. :
  598. <span class="phpdocumentor-element-found-in__line">27</span>
  599. </aside>
  600. <p class="phpdocumentor-summary">Matrix debugging console output</p>
  601. <code class="phpdocumentor-code phpdocumentor-signature ">
  602. <span class="phpdocumentor-signature__visibility">protected</span>
  603. <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>
  604. <div class="phpdocumentor-label-line">
  605. </div>
  606. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  607. <dl class="phpdocumentor-argument-list">
  608. <dt class="phpdocumentor-argument-list__entry">
  609. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  610. : <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>
  611. </dt>
  612. <dd class="phpdocumentor-argument-list__definition">
  613. </dd>
  614. </dl>
  615. </article>
  616. <article
  617. class="phpdocumentor-element
  618. -method
  619. -protected
  620. "
  621. >
  622. <h4 class="phpdocumentor-element__name" id="method_dm">
  623. dm()
  624. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm" class="headerlink"><i class="fas fa-link"></i></a>
  625. </h4>
  626. <aside class="phpdocumentor-element-found-in">
  627. <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>
  628. :
  629. <span class="phpdocumentor-element-found-in__line">84</span>
  630. </aside>
  631. <p class="phpdocumentor-summary">debugging shortcut - limit to a single version when using with matrixProvider</p>
  632. <code class="phpdocumentor-code phpdocumentor-signature ">
  633. <span class="phpdocumentor-signature__visibility">protected</span>
  634. <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>
  635. <div class="phpdocumentor-label-line">
  636. </div>
  637. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  638. <dl class="phpdocumentor-argument-list">
  639. <dt class="phpdocumentor-argument-list__entry">
  640. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  641. : <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>
  642. </dt>
  643. <dd class="phpdocumentor-argument-list__definition">
  644. </dd>
  645. </dl>
  646. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  647. Tags
  648. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm#tags" class="headerlink"><i class="fas fa-link"></i></a>
  649. </h5>
  650. <dl class="phpdocumentor-tag-list">
  651. <dt class="phpdocumentor-tag-list__entry">
  652. <span class="phpdocumentor-tag__name">see</span>
  653. </dt>
  654. <dd class="phpdocumentor-tag-list__definition">
  655. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCodeTest\QRMatrixTest::matrixProvider()">QRMatrixTest::matrixProvider()</abbr></span>
  656. </dd>
  657. </dl>
  658. </article>
  659. <article
  660. class="phpdocumentor-element
  661. -method
  662. -protected
  663. "
  664. >
  665. <h4 class="phpdocumentor-element__name" id="method_getLuminanceSourceFromFile">
  666. getLuminanceSourceFromFile()
  667. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#method_getLuminanceSourceFromFile" class="headerlink"><i class="fas fa-link"></i></a>
  668. </h4>
  669. <aside class="phpdocumentor-element-found-in">
  670. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderGDTest.php"><a href="files/tests-qrcodereadergdtest.html"><abbr title="tests/QRCodeReaderGDTest.php">QRCodeReaderGDTest.php</abbr></a></abbr>
  671. :
  672. <span class="phpdocumentor-element-found-in__line">23</span>
  673. </aside>
  674. <code class="phpdocumentor-code phpdocumentor-signature ">
  675. <span class="phpdocumentor-signature__visibility">protected</span>
  676. <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>
  677. <div class="phpdocumentor-label-line">
  678. </div>
  679. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  680. <dl class="phpdocumentor-argument-list">
  681. <dt class="phpdocumentor-argument-list__entry">
  682. <span class="phpdocumentor-signature__argument__name">$file</span>
  683. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  684. </dt>
  685. <dd class="phpdocumentor-argument-list__definition">
  686. </dd>
  687. <dt class="phpdocumentor-argument-list__entry">
  688. <span class="phpdocumentor-signature__argument__name">$options</span>
  689. : <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>
  690. </dt>
  691. <dd class="phpdocumentor-argument-list__definition">
  692. </dd>
  693. </dl>
  694. <section>
  695. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  696. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a></span>
  697. </section>
  698. </article>
  699. <article
  700. class="phpdocumentor-element
  701. -method
  702. -protected
  703. "
  704. >
  705. <h4 class="phpdocumentor-element__name" id="method_setUp">
  706. setUp()
  707. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  708. </h4>
  709. <aside class="phpdocumentor-element-found-in">
  710. <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>
  711. :
  712. <span class="phpdocumentor-element-found-in__line">46</span>
  713. </aside>
  714. <code class="phpdocumentor-code phpdocumentor-signature ">
  715. <span class="phpdocumentor-signature__visibility">protected</span>
  716. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  717. <div class="phpdocumentor-label-line">
  718. </div>
  719. </article>
  720. </section>
  721. <div class="phpdocumentor-modal" id="source-view">
  722. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  723. <div class="phpdocumentor-modal-container">
  724. <div class="phpdocumentor-modal-content">
  725. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/QRCodeReaderGDTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  726. </div>
  727. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  728. </div>
  729. </div>
  730. <script type="text/javascript">
  731. (function () {
  732. function loadExternalCodeSnippet(el, url, line) {
  733. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  734. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  735. const language = 'php';
  736. const code = document.createElement('code');
  737. code.className = 'language-' + language;
  738. pre.textContent = '';
  739. pre.setAttribute('data-line', line)
  740. code.textContent = 'Loading…';
  741. pre.appendChild(code);
  742. var xhr = new XMLHttpRequest();
  743. xhr.open('GET', src, true);
  744. xhr.onreadystatechange = function () {
  745. if (xhr.readyState !== 4) {
  746. return;
  747. }
  748. if (xhr.status < 400 && xhr.responseText) {
  749. code.textContent = xhr.responseText;
  750. Prism.highlightElement(code);
  751. return;
  752. }
  753. if (xhr.status === 404) {
  754. code.textContent = '✖ Error: File could not be found';
  755. return;
  756. }
  757. if (xhr.status >= 400) {
  758. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  759. return;
  760. }
  761. code.textContent = '✖ Error: An unknown error occurred';
  762. };
  763. xhr.send(null);
  764. });
  765. }
  766. const modalButtons = document.querySelectorAll("[data-modal]");
  767. const openedAsLocalFile = window.location.protocol === 'file:';
  768. if (modalButtons.length > 0 && openedAsLocalFile) {
  769. console.warn(
  770. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  771. 'browsers block XHR requests when a page is opened this way'
  772. );
  773. }
  774. modalButtons.forEach(function (trigger) {
  775. if (openedAsLocalFile) {
  776. trigger.setAttribute("hidden", "hidden");
  777. }
  778. trigger.addEventListener("click", function (event) {
  779. event.preventDefault();
  780. const modal = document.getElementById(trigger.dataset.modal);
  781. if (!modal) {
  782. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  783. return;
  784. }
  785. modal.classList.add("phpdocumentor-modal__open");
  786. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  787. const exits = modal.querySelectorAll("[data-exit-button]");
  788. exits.forEach(function (exit) {
  789. exit.addEventListener("click", function (event) {
  790. event.preventDefault();
  791. modal.classList.remove("phpdocumentor-modal__open");
  792. });
  793. });
  794. });
  795. });
  796. })();
  797. </script>
  798. </article>
  799. </section>
  800. <section class="phpdocumentor-on-this-page__sidebar">
  801. <section class="phpdocumentor-on-this-page__content">
  802. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  803. <ul class="phpdocumentor-list -clean">
  804. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  805. <li>
  806. <ul class="phpdocumentor-list -clean">
  807. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-constants">Constants</a></li>
  808. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-properties">Properties</a></li>
  809. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-methods">Methods</a></li>
  810. </ul>
  811. </li>
  812. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  813. <li>
  814. <ul class="phpdocumentor-list -clean">
  815. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum">loremipsum</a></li>
  816. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_samplesDir">samplesDir</a></li>
  817. </ul>
  818. </li>
  819. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  820. <li>
  821. <ul class="phpdocumentor-list -clean">
  822. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options">$options</a></li>
  823. </ul>
  824. </li>
  825. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  826. <li>
  827. <ul class="phpdocumentor-list -clean">
  828. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider">dataTestProvider()</a></li>
  829. <li class=""><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a></li>
  830. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider">qrCodeProvider()</a></li>
  831. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData">testReadData()</a></li>
  832. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader">testReader()</a></li>
  833. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode">testReaderMultiMode()</a></li>
  834. <li class=""><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a></li>
  835. <li class=""><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a></li>
  836. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#method_getLuminanceSourceFromFile">getLuminanceSourceFromFile()</a></li>
  837. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp">setUp()</a></li>
  838. </ul>
  839. </li>
  840. </ul>
  841. </section>
  842. </section>
  843. </div>
  844. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  845. <section class="phpdocumentor-search-results__dialog">
  846. <header class="phpdocumentor-search-results__header">
  847. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  848. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  849. </header>
  850. <section class="phpdocumentor-search-results__body">
  851. <ul class="phpdocumentor-search-results__entries"></ul>
  852. </section>
  853. </section>
  854. </section>
  855. </div>
  856. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  857. </main>
  858. <script>
  859. cssVars({});
  860. </script>
  861. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  862. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  863. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  864. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  865. </body>
  866. </html>