chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html 58 KB

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