chillerlan-QRCodeTest-QRCodeReaderGDTest.html 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
  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. QRCodeReaderGDTest
  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/QRCodeReaderGDTest.php"><a href="files/tests-qrcodereadergdtest.html"><abbr title="tests/QRCodeReaderGDTest.php">QRCodeReaderGDTest.php</abbr></a></abbr>
  126. :
  127. <span class="phpdocumentor-element-found-in__line">20</span>
  128. </aside>
  129. <p class="phpdocumentor-summary">Tests the GD based reader</p>
  130. <h3 id="toc">
  131. Table of Contents
  132. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.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-QRCodeReaderGDTest.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-QRCodeReaderGDTest.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-QRCodeReaderGDTest.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 -protected">
  198. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a>
  199. <span>
  200. &nbsp;: void </span>
  201. </dt>
  202. <dd>Matrix debugging console output</dd>
  203. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  204. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a>
  205. <span>
  206. &nbsp;: void </span>
  207. </dt>
  208. <dd>debugging shortcut - limit to a single version when using with matrixProvider</dd>
  209. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  210. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#method_getLuminanceSourceFromFile">getLuminanceSourceFromFile()</a>
  211. <span>
  212. &nbsp;: <a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a> </span>
  213. </dt>
  214. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  215. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp">setUp()</a>
  216. <span>
  217. &nbsp;: void </span>
  218. </dt>
  219. </dl>
  220. <section class="phpdocumentor-constants">
  221. <h3 class="phpdocumentor-elements__header" id="constants">
  222. Constants
  223. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  224. </h3>
  225. <article class="phpdocumentor-element -constant -protected ">
  226. <h4 class="phpdocumentor-element__name" id="constant_loremipsum">
  227. loremipsum
  228. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum" class="headerlink"><i class="fas fa-link"></i></a>
  229. </h4>
  230. <aside class="phpdocumentor-element-found-in">
  231. <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>
  232. :
  233. <span class="phpdocumentor-element-found-in__line">32</span>
  234. </aside>
  235. <code class="phpdocumentor-signature phpdocumentor-code ">
  236. <span class="phpdocumentor-signature__visibility">protected</span>
  237. <span class="phpdocumentor-signature__type">mixed</span>
  238. <span class="phpdocumentor-signature__name">loremipsum</span>
  239. = <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>
  240. </code>
  241. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  242. Tags
  243. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum#tags" class="headerlink"><i class="fas fa-link"></i></a>
  244. </h5>
  245. <dl class="phpdocumentor-tag-list">
  246. <dt class="phpdocumentor-tag-list__entry">
  247. <span class="phpdocumentor-tag__name">see</span>
  248. </dt>
  249. <dd class="phpdocumentor-tag-list__definition">
  250. <span class="phpdocumentor-tag-link"><a href="https://www.bobrosslipsum.com/">https://www.bobrosslipsum.com/</a></span>
  251. </dd>
  252. </dl>
  253. </article>
  254. <article class="phpdocumentor-element -constant -protected ">
  255. <h4 class="phpdocumentor-element__name" id="constant_samplesDir">
  256. samplesDir
  257. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_samplesDir" class="headerlink"><i class="fas fa-link"></i></a>
  258. </h4>
  259. <aside class="phpdocumentor-element-found-in">
  260. <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>
  261. :
  262. <span class="phpdocumentor-element-found-in__line">40</span>
  263. </aside>
  264. <code class="phpdocumentor-signature phpdocumentor-code ">
  265. <span class="phpdocumentor-signature__visibility">protected</span>
  266. <span class="phpdocumentor-signature__type">mixed</span>
  267. <span class="phpdocumentor-signature__name">samplesDir</span>
  268. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/samples/&#039;</span>
  269. </code>
  270. </article>
  271. </section>
  272. <section class="phpdocumentor-properties">
  273. <h3 class="phpdocumentor-elements__header" id="properties">
  274. Properties
  275. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  276. </h3>
  277. <article
  278. class="
  279. phpdocumentor-element
  280. -property
  281. -protected
  282. "
  283. >
  284. <h4 class="phpdocumentor-element__name" id="property_options">
  285. $options
  286. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  287. <span class="phpdocumentor-element__modifiers">
  288. </span>
  289. </h4>
  290. <aside class="phpdocumentor-element-found-in">
  291. <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>
  292. :
  293. <span class="phpdocumentor-element-found-in__line">42</span>
  294. </aside>
  295. <code class="phpdocumentor-code phpdocumentor-signature ">
  296. <span class="phpdocumentor-signature__visibility">protected</span>
  297. <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>
  298. <span class="phpdocumentor-signature__name">$options</span>
  299. </code>
  300. </article>
  301. </section>
  302. <section class="phpdocumentor-methods">
  303. <h3 class="phpdocumentor-elements__header" id="methods">
  304. Methods
  305. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  306. </h3>
  307. <article
  308. class="phpdocumentor-element
  309. -method
  310. -public
  311. -static "
  312. >
  313. <h4 class="phpdocumentor-element__name" id="method_dataTestProvider">
  314. dataTestProvider()
  315. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider" class="headerlink"><i class="fas fa-link"></i></a>
  316. </h4>
  317. <aside class="phpdocumentor-element-found-in">
  318. <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>
  319. :
  320. <span class="phpdocumentor-element-found-in__line">126</span>
  321. </aside>
  322. <code class="phpdocumentor-code phpdocumentor-signature ">
  323. <span class="phpdocumentor-signature__visibility">public</span>
  324. <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>
  325. <div class="phpdocumentor-label-line">
  326. </div>
  327. <section>
  328. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  329. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  330. </section>
  331. </article>
  332. <article
  333. class="phpdocumentor-element
  334. -method
  335. -public
  336. -static "
  337. >
  338. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  339. getMaxLengthForMode()
  340. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  341. </h4>
  342. <aside class="phpdocumentor-element-found-in">
  343. <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>
  344. :
  345. <span class="phpdocumentor-element-found-in__line">79</span>
  346. </aside>
  347. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  348. <code class="phpdocumentor-code phpdocumentor-signature ">
  349. <span class="phpdocumentor-signature__visibility">public</span>
  350. <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>
  351. <div class="phpdocumentor-label-line">
  352. </div>
  353. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  354. <dl class="phpdocumentor-argument-list">
  355. <dt class="phpdocumentor-argument-list__entry">
  356. <span class="phpdocumentor-signature__argument__name">$mode</span>
  357. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  358. </dt>
  359. <dd class="phpdocumentor-argument-list__definition">
  360. </dd>
  361. <dt class="phpdocumentor-argument-list__entry">
  362. <span class="phpdocumentor-signature__argument__name">$version</span>
  363. : <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>
  364. </dt>
  365. <dd class="phpdocumentor-argument-list__definition">
  366. </dd>
  367. <dt class="phpdocumentor-argument-list__entry">
  368. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  369. : <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>
  370. </dt>
  371. <dd class="phpdocumentor-argument-list__definition">
  372. </dd>
  373. </dl>
  374. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  375. Tags
  376. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode#tags" class="headerlink"><i class="fas fa-link"></i></a>
  377. </h5>
  378. <dl class="phpdocumentor-tag-list">
  379. <dt class="phpdocumentor-tag-list__entry">
  380. <span class="phpdocumentor-tag__name">throws</span>
  381. </dt>
  382. <dd class="phpdocumentor-tag-list__definition">
  383. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  384. </dd>
  385. <dt class="phpdocumentor-tag-list__entry">
  386. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  387. </dt>
  388. <dd class="phpdocumentor-tag-list__definition">
  389. </dd>
  390. </dl>
  391. <section>
  392. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  393. <span class="phpdocumentor-signature__response_type">int</span>
  394. </section>
  395. </article>
  396. <article
  397. class="phpdocumentor-element
  398. -method
  399. -public
  400. -static "
  401. >
  402. <h4 class="phpdocumentor-element__name" id="method_qrCodeProvider">
  403. qrCodeProvider()
  404. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider" class="headerlink"><i class="fas fa-link"></i></a>
  405. </h4>
  406. <aside class="phpdocumentor-element-found-in">
  407. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeReaderTestAbstract.php"><a href="files/tests-qrcodereadertestabstract.html"><abbr title="tests/QRCodeReaderTestAbstract.php">QRCodeReaderTestAbstract.php</abbr></a></abbr>
  408. :
  409. <span class="phpdocumentor-element-found-in__line">54</span>
  410. </aside>
  411. <code class="phpdocumentor-code phpdocumentor-signature ">
  412. <span class="phpdocumentor-signature__visibility">public</span>
  413. <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>
  414. <div class="phpdocumentor-label-line">
  415. </div>
  416. <section>
  417. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  418. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  419. </section>
  420. </article>
  421. <article
  422. class="phpdocumentor-element
  423. -method
  424. -public
  425. "
  426. >
  427. <h4 class="phpdocumentor-element__name" id="method_testReadData">
  428. testReadData()
  429. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData" class="headerlink"><i class="fas fa-link"></i></a>
  430. </h4>
  431. <aside class="phpdocumentor-element-found-in">
  432. <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>
  433. :
  434. <span class="phpdocumentor-element-found-in__line">148</span>
  435. </aside>
  436. <code class="phpdocumentor-code phpdocumentor-signature ">
  437. <span class="phpdocumentor-signature__visibility">public</span>
  438. <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>
  439. <div class="phpdocumentor-label-line">
  440. </div>
  441. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  442. <dl class="phpdocumentor-argument-list">
  443. <dt class="phpdocumentor-argument-list__entry">
  444. <span class="phpdocumentor-signature__argument__name">$version</span>
  445. : <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>
  446. </dt>
  447. <dd class="phpdocumentor-argument-list__definition">
  448. </dd>
  449. <dt class="phpdocumentor-argument-list__entry">
  450. <span class="phpdocumentor-signature__argument__name">$ecc</span>
  451. : <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>
  452. </dt>
  453. <dd class="phpdocumentor-argument-list__definition">
  454. </dd>
  455. <dt class="phpdocumentor-argument-list__entry">
  456. <span class="phpdocumentor-signature__argument__name">$expected</span>
  457. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  458. </dt>
  459. <dd class="phpdocumentor-argument-list__definition">
  460. </dd>
  461. </dl>
  462. </article>
  463. <article
  464. class="phpdocumentor-element
  465. -method
  466. -public
  467. "
  468. >
  469. <h4 class="phpdocumentor-element__name" id="method_testReader">
  470. testReader()
  471. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader" class="headerlink"><i class="fas fa-link"></i></a>
  472. </h4>
  473. <aside class="phpdocumentor-element-found-in">
  474. <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>
  475. :
  476. <span class="phpdocumentor-element-found-in__line">86</span>
  477. </aside>
  478. <code class="phpdocumentor-code phpdocumentor-signature ">
  479. <span class="phpdocumentor-signature__visibility">public</span>
  480. <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>
  481. <div class="phpdocumentor-label-line">
  482. </div>
  483. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  484. <dl class="phpdocumentor-argument-list">
  485. <dt class="phpdocumentor-argument-list__entry">
  486. <span class="phpdocumentor-signature__argument__name">$img</span>
  487. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  488. </dt>
  489. <dd class="phpdocumentor-argument-list__definition">
  490. </dd>
  491. <dt class="phpdocumentor-argument-list__entry">
  492. <span class="phpdocumentor-signature__argument__name">$expected</span>
  493. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  494. </dt>
  495. <dd class="phpdocumentor-argument-list__definition">
  496. </dd>
  497. <dt class="phpdocumentor-argument-list__entry">
  498. <span class="phpdocumentor-signature__argument__name">$grayscale</span>
  499. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  500. </dt>
  501. <dd class="phpdocumentor-argument-list__definition">
  502. </dd>
  503. </dl>
  504. </article>
  505. <article
  506. class="phpdocumentor-element
  507. -method
  508. -public
  509. "
  510. >
  511. <h4 class="phpdocumentor-element__name" id="method_testReaderMultiMode">
  512. testReaderMultiMode()
  513. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode" class="headerlink"><i class="fas fa-link"></i></a>
  514. </h4>
  515. <aside class="phpdocumentor-element-found-in">
  516. <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>
  517. :
  518. <span class="phpdocumentor-element-found-in__line">103</span>
  519. </aside>
  520. <code class="phpdocumentor-code phpdocumentor-signature ">
  521. <span class="phpdocumentor-signature__visibility">public</span>
  522. <span class="phpdocumentor-signature__name">testReaderMultiMode</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  523. <div class="phpdocumentor-label-line">
  524. </div>
  525. </article>
  526. <article
  527. class="phpdocumentor-element
  528. -method
  529. -protected
  530. "
  531. >
  532. <h4 class="phpdocumentor-element__name" id="method_debugMatrix">
  533. debugMatrix()
  534. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  535. </h4>
  536. <aside class="phpdocumentor-element-found-in">
  537. <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>
  538. :
  539. <span class="phpdocumentor-element-found-in__line">26</span>
  540. </aside>
  541. <p class="phpdocumentor-summary">Matrix debugging console output</p>
  542. <code class="phpdocumentor-code phpdocumentor-signature ">
  543. <span class="phpdocumentor-signature__visibility">protected</span>
  544. <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>
  545. <div class="phpdocumentor-label-line">
  546. </div>
  547. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  548. <dl class="phpdocumentor-argument-list">
  549. <dt class="phpdocumentor-argument-list__entry">
  550. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  551. : <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>
  552. </dt>
  553. <dd class="phpdocumentor-argument-list__definition">
  554. </dd>
  555. </dl>
  556. </article>
  557. <article
  558. class="phpdocumentor-element
  559. -method
  560. -protected
  561. "
  562. >
  563. <h4 class="phpdocumentor-element__name" id="method_dm">
  564. dm()
  565. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm" class="headerlink"><i class="fas fa-link"></i></a>
  566. </h4>
  567. <aside class="phpdocumentor-element-found-in">
  568. <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>
  569. :
  570. <span class="phpdocumentor-element-found-in__line">83</span>
  571. </aside>
  572. <p class="phpdocumentor-summary">debugging shortcut - limit to a single version when using with matrixProvider</p>
  573. <code class="phpdocumentor-code phpdocumentor-signature ">
  574. <span class="phpdocumentor-signature__visibility">protected</span>
  575. <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>
  576. <div class="phpdocumentor-label-line">
  577. </div>
  578. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  579. <dl class="phpdocumentor-argument-list">
  580. <dt class="phpdocumentor-argument-list__entry">
  581. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  582. : <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>
  583. </dt>
  584. <dd class="phpdocumentor-argument-list__definition">
  585. </dd>
  586. </dl>
  587. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  588. Tags
  589. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm#tags" class="headerlink"><i class="fas fa-link"></i></a>
  590. </h5>
  591. <dl class="phpdocumentor-tag-list">
  592. <dt class="phpdocumentor-tag-list__entry">
  593. <span class="phpdocumentor-tag__name">see</span>
  594. </dt>
  595. <dd class="phpdocumentor-tag-list__definition">
  596. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCodeTest\QRMatrixTest::matrixProvider()">QRMatrixTest::matrixProvider()</abbr></span>
  597. </dd>
  598. </dl>
  599. </article>
  600. <article
  601. class="phpdocumentor-element
  602. -method
  603. -protected
  604. "
  605. >
  606. <h4 class="phpdocumentor-element__name" id="method_getLuminanceSourceFromFile">
  607. getLuminanceSourceFromFile()
  608. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#method_getLuminanceSourceFromFile" class="headerlink"><i class="fas fa-link"></i></a>
  609. </h4>
  610. <aside class="phpdocumentor-element-found-in">
  611. <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>
  612. :
  613. <span class="phpdocumentor-element-found-in__line">22</span>
  614. </aside>
  615. <code class="phpdocumentor-code phpdocumentor-signature ">
  616. <span class="phpdocumentor-signature__visibility">protected</span>
  617. <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>
  618. <div class="phpdocumentor-label-line">
  619. </div>
  620. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  621. <dl class="phpdocumentor-argument-list">
  622. <dt class="phpdocumentor-argument-list__entry">
  623. <span class="phpdocumentor-signature__argument__name">$file</span>
  624. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  625. </dt>
  626. <dd class="phpdocumentor-argument-list__definition">
  627. </dd>
  628. <dt class="phpdocumentor-argument-list__entry">
  629. <span class="phpdocumentor-signature__argument__name">$options</span>
  630. : <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>
  631. </dt>
  632. <dd class="phpdocumentor-argument-list__definition">
  633. </dd>
  634. </dl>
  635. <section>
  636. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  637. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a></span>
  638. </section>
  639. </article>
  640. <article
  641. class="phpdocumentor-element
  642. -method
  643. -protected
  644. "
  645. >
  646. <h4 class="phpdocumentor-element__name" id="method_setUp">
  647. setUp()
  648. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  649. </h4>
  650. <aside class="phpdocumentor-element-found-in">
  651. <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>
  652. :
  653. <span class="phpdocumentor-element-found-in__line">44</span>
  654. </aside>
  655. <code class="phpdocumentor-code phpdocumentor-signature ">
  656. <span class="phpdocumentor-signature__visibility">protected</span>
  657. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  658. <div class="phpdocumentor-label-line">
  659. </div>
  660. </article>
  661. </section>
  662. <div class="phpdocumentor-modal" id="source-view">
  663. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  664. <div class="phpdocumentor-modal-container">
  665. <div class="phpdocumentor-modal-content">
  666. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/QRCodeReaderGDTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  667. </div>
  668. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  669. </div>
  670. </div>
  671. <script type="text/javascript">
  672. (function () {
  673. function loadExternalCodeSnippet(el, url, line) {
  674. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  675. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  676. const language = 'php';
  677. const code = document.createElement('code');
  678. code.className = 'language-' + language;
  679. pre.textContent = '';
  680. pre.setAttribute('data-line', line)
  681. code.textContent = 'Loading…';
  682. pre.appendChild(code);
  683. var xhr = new XMLHttpRequest();
  684. xhr.open('GET', src, true);
  685. xhr.onreadystatechange = function () {
  686. if (xhr.readyState !== 4) {
  687. return;
  688. }
  689. if (xhr.status < 400 && xhr.responseText) {
  690. code.textContent = xhr.responseText;
  691. Prism.highlightElement(code);
  692. return;
  693. }
  694. if (xhr.status === 404) {
  695. code.textContent = '✖ Error: File could not be found';
  696. return;
  697. }
  698. if (xhr.status >= 400) {
  699. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  700. return;
  701. }
  702. code.textContent = '✖ Error: An unknown error occurred';
  703. };
  704. xhr.send(null);
  705. });
  706. }
  707. const modalButtons = document.querySelectorAll("[data-modal]");
  708. const openedAsLocalFile = window.location.protocol === 'file:';
  709. if (modalButtons.length > 0 && openedAsLocalFile) {
  710. console.warn(
  711. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  712. 'browsers block XHR requests when a page is opened this way'
  713. );
  714. }
  715. modalButtons.forEach(function (trigger) {
  716. if (openedAsLocalFile) {
  717. trigger.setAttribute("hidden", "hidden");
  718. }
  719. trigger.addEventListener("click", function (event) {
  720. event.preventDefault();
  721. const modal = document.getElementById(trigger.dataset.modal);
  722. if (!modal) {
  723. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  724. return;
  725. }
  726. modal.classList.add("phpdocumentor-modal__open");
  727. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  728. const exits = modal.querySelectorAll("[data-exit-button]");
  729. exits.forEach(function (exit) {
  730. exit.addEventListener("click", function (event) {
  731. event.preventDefault();
  732. modal.classList.remove("phpdocumentor-modal__open");
  733. });
  734. });
  735. });
  736. });
  737. })();
  738. </script>
  739. </article>
  740. </section>
  741. <section class="phpdocumentor-on-this-page__sidebar">
  742. <section class="phpdocumentor-on-this-page__content">
  743. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  744. <ul class="phpdocumentor-list -clean">
  745. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  746. <li>
  747. <ul class="phpdocumentor-list -clean">
  748. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-constants">Constants</a></li>
  749. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-properties">Properties</a></li>
  750. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-methods">Methods</a></li>
  751. </ul>
  752. </li>
  753. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  754. <li>
  755. <ul class="phpdocumentor-list -clean">
  756. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum">loremipsum</a></li>
  757. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_samplesDir">samplesDir</a></li>
  758. </ul>
  759. </li>
  760. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  761. <li>
  762. <ul class="phpdocumentor-list -clean">
  763. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options">$options<a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html"></li>
  764. </ul>
  765. </li>
  766. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  767. <li>
  768. <ul class="phpdocumentor-list -clean">
  769. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider">dataTestProvider()</a></li>
  770. <li><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a></li>
  771. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider">qrCodeProvider()</a></li>
  772. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData">testReadData()</a></li>
  773. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader">testReader()</a></li>
  774. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode">testReaderMultiMode()</a></li>
  775. <li><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a></li>
  776. <li><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a></li>
  777. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#method_getLuminanceSourceFromFile">getLuminanceSourceFromFile()</a></li>
  778. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp">setUp()</a></li>
  779. </ul>
  780. </li>
  781. </ul>
  782. </section>
  783. </section>
  784. </div>
  785. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  786. <section class="phpdocumentor-search-results__dialog">
  787. <header class="phpdocumentor-search-results__header">
  788. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  789. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  790. </header>
  791. <section class="phpdocumentor-search-results__body">
  792. <ul class="phpdocumentor-search-results__entries"></ul>
  793. </section>
  794. </section>
  795. </section>
  796. </div>
  797. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  798. </main>
  799. <script>
  800. cssVars({});
  801. </script>
  802. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  803. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  804. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  805. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  806. </body>
  807. </html>