chillerlan-QRCodeTest-QRCodeReaderGDTest.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace">
  56. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  57. </h4>
  58. <ul class="phpdocumentor-list">
  59. <li>
  60. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  61. </li>
  62. <li>
  63. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  64. </li>
  65. </ul>
  66. </section>
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="packages/Application.html" class="">Application</a>
  71. </h4>
  72. </section>
  73. <section class="phpdocumentor-sidebar__category">
  74. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  75. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  76. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  78. </section>
  79. <section class="phpdocumentor-sidebar__category">
  80. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  81. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  82. </section>
  83. </aside>
  84. <div class="phpdocumentor-column -eight phpdocumentor-content">
  85. <ul class="phpdocumentor-breadcrumbs">
  86. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  87. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  88. </ul>
  89. <article class="phpdocumentor-element -class">
  90. <h2 class="phpdocumentor-content__title">
  91. QRCodeReaderGDTest
  92. <span class="phpdocumentor-element__extends">
  93. extends <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\QRCodeReaderTestAbstract">QRCodeReaderTestAbstract</abbr></a>
  94. </span>
  95. <div class="phpdocumentor-element__package">
  96. in package
  97. <ul class="phpdocumentor-breadcrumbs">
  98. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  99. </ul>
  100. </div>
  101. </h2>
  102. <aside class="phpdocumentor-element-found-in">
  103. <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>
  104. :
  105. <span class="phpdocumentor-element-found-in__line">18</span>
  106. </aside>
  107. <p class="phpdocumentor-summary">Tests the GD based reader</p>
  108. <h3 id="toc">
  109. Table of Contents
  110. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  111. </h3>
  112. <dl class="phpdocumentor-table-of-contents">
  113. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  114. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum">loremipsum</a>
  115. <span>
  116. &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>
  117. </dt>
  118. <dd></dd>
  119. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  120. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#property_FQN">$FQN</a>
  121. <span>
  122. &nbsp;: string </span>
  123. </dt>
  124. <dd></dd>
  125. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  126. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options">$options</a>
  127. <span>
  128. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  129. </dt>
  130. <dd></dd>
  131. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  132. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider">dataTestProvider()</a>
  133. <span>
  134. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  135. </dt>
  136. <dd></dd>
  137. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  138. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider">qrCodeProvider()</a>
  139. <span>
  140. &nbsp;: array&lt;string|int, mixed&gt; </span>
  141. </dt>
  142. <dd></dd>
  143. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  144. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData">testReadData()</a>
  145. <span>
  146. &nbsp;: void </span>
  147. </dt>
  148. <dd></dd>
  149. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  150. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader">testReader()</a>
  151. <span>
  152. &nbsp;: void </span>
  153. </dt>
  154. <dd></dd>
  155. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  156. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiSegment">testReaderMultiSegment()</a>
  157. <span>
  158. &nbsp;: void </span>
  159. </dt>
  160. <dd></dd>
  161. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  162. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp">setUp()</a>
  163. <span>
  164. &nbsp;: void </span>
  165. </dt>
  166. <dd></dd>
  167. </dl>
  168. <section class="phpdocumentor-constants">
  169. <h3 class="phpdocumentor-elements__header" id="constants">
  170. Constants
  171. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  172. </h3>
  173. <article class="phpdocumentor-element -constant -protected ">
  174. <h4 class="phpdocumentor-element__name" id="constant_loremipsum">
  175. loremipsum
  176. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum" class="headerlink"><i class="fas fa-link"></i></a>
  177. </h4>
  178. <aside class="phpdocumentor-element-found-in">
  179. <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>
  180. :
  181. <span class="phpdocumentor-element-found-in__line">28</span>
  182. </aside>
  183. <code class="phpdocumentor-signature phpdocumentor-code ">
  184. <span class="phpdocumentor-signature__visibility">protected</span>
  185. <span class="phpdocumentor-signature__type">mixed</span>
  186. <span class="phpdocumentor-signature__name">loremipsum</span>
  187. = <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>
  188. </code>
  189. <section class="phpdocumentor-description"></section>
  190. <section class="phpdocumentor-description"></section>
  191. </article>
  192. </section>
  193. <section class="phpdocumentor-properties">
  194. <h3 class="phpdocumentor-elements__header" id="properties">
  195. Properties
  196. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  197. </h3>
  198. <article
  199. class="
  200. phpdocumentor-element
  201. -property
  202. -protected
  203. "
  204. >
  205. <h4 class="phpdocumentor-element__name" id="property_FQN">
  206. $FQN
  207. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#property_FQN" class="headerlink"><i class="fas fa-link"></i></a>
  208. <span class="phpdocumentor-element__modifiers">
  209. </span>
  210. </h4>
  211. <aside class="phpdocumentor-element-found-in">
  212. <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>
  213. :
  214. <span class="phpdocumentor-element-found-in__line">20</span>
  215. </aside>
  216. <code class="phpdocumentor-code phpdocumentor-signature ">
  217. <span class="phpdocumentor-signature__visibility">protected</span>
  218. <span class="phpdocumentor-signature__type">string</span>
  219. <span class="phpdocumentor-signature__name">$FQN</span>
  220. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Decoder\GDLuminanceSource::class</span></code>
  221. <section class="phpdocumentor-description"></section>
  222. <section class="phpdocumentor-description"></section>
  223. </article>
  224. <article
  225. class="
  226. phpdocumentor-element
  227. -property
  228. -protected
  229. "
  230. >
  231. <h4 class="phpdocumentor-element__name" id="property_options">
  232. $options
  233. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  234. <span class="phpdocumentor-element__modifiers">
  235. </span>
  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">36</span>
  241. </aside>
  242. <code class="phpdocumentor-code phpdocumentor-signature ">
  243. <span class="phpdocumentor-signature__visibility">protected</span>
  244. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  245. <span class="phpdocumentor-signature__name">$options</span>
  246. </code>
  247. <section class="phpdocumentor-description"></section>
  248. <section class="phpdocumentor-description"></section>
  249. </article>
  250. </section>
  251. <section class="phpdocumentor-methods">
  252. <h3 class="phpdocumentor-elements__header" id="methods">
  253. Methods
  254. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  255. </h3>
  256. <article
  257. class="phpdocumentor-element
  258. -method
  259. -public
  260. "
  261. >
  262. <h4 class="phpdocumentor-element__name" id="method_dataTestProvider">
  263. dataTestProvider()
  264. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider" 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">105</span>
  270. </aside>
  271. <code class="phpdocumentor-code phpdocumentor-signature ">
  272. <span class="phpdocumentor-signature__visibility">public</span>
  273. <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>
  274. <section class="phpdocumentor-description"></section>
  275. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  276. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  277. &mdash;
  278. </article>
  279. <article
  280. class="phpdocumentor-element
  281. -method
  282. -public
  283. "
  284. >
  285. <h4 class="phpdocumentor-element__name" id="method_qrCodeProvider">
  286. qrCodeProvider()
  287. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider" class="headerlink"><i class="fas fa-link"></i></a>
  288. </h4>
  289. <aside class="phpdocumentor-element-found-in">
  290. <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>
  291. :
  292. <span class="phpdocumentor-element-found-in__line">44</span>
  293. </aside>
  294. <code class="phpdocumentor-code phpdocumentor-signature ">
  295. <span class="phpdocumentor-signature__visibility">public</span>
  296. <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>
  297. <section class="phpdocumentor-description"></section>
  298. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  299. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  300. &mdash;
  301. </article>
  302. <article
  303. class="phpdocumentor-element
  304. -method
  305. -public
  306. "
  307. >
  308. <h4 class="phpdocumentor-element__name" id="method_testReadData">
  309. testReadData()
  310. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData" class="headerlink"><i class="fas fa-link"></i></a>
  311. </h4>
  312. <aside class="phpdocumentor-element-found-in">
  313. <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>
  314. :
  315. <span class="phpdocumentor-element-found-in__line">124</span>
  316. </aside>
  317. <code class="phpdocumentor-code phpdocumentor-signature ">
  318. <span class="phpdocumentor-signature__visibility">public</span>
  319. <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>
  320. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  321. <dl class="phpdocumentor-argument-list">
  322. <dt class="phpdocumentor-argument-list__entry">
  323. <span class="phpdocumentor-signature__argument__name">$version</span>
  324. : <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>
  325. </dt>
  326. <dd class="phpdocumentor-argument-list__definition">
  327. <section class="phpdocumentor-description"></section>
  328. </dd>
  329. <dt class="phpdocumentor-argument-list__entry">
  330. <span class="phpdocumentor-signature__argument__name">$ecc</span>
  331. : <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>
  332. </dt>
  333. <dd class="phpdocumentor-argument-list__definition">
  334. <section class="phpdocumentor-description"></section>
  335. </dd>
  336. <dt class="phpdocumentor-argument-list__entry">
  337. <span class="phpdocumentor-signature__argument__name">$expected</span>
  338. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  339. </dt>
  340. <dd class="phpdocumentor-argument-list__definition">
  341. <section class="phpdocumentor-description"></section>
  342. </dd>
  343. </dl>
  344. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  345. Tags
  346. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  347. </h5>
  348. <dl class="phpdocumentor-tag-list">
  349. <dt class="phpdocumentor-tag-list__entry">
  350. <span class="phpdocumentor-tag__name">dataProvider</span>
  351. </dt>
  352. <dd class="phpdocumentor-tag-list__definition">
  353. <section class="phpdocumentor-description"><p>dataTestProvider</p>
  354. </section>
  355. </dd>
  356. </dl>
  357. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  358. <span class="phpdocumentor-signature__response_type">void</span>
  359. &mdash;
  360. </article>
  361. <article
  362. class="phpdocumentor-element
  363. -method
  364. -public
  365. "
  366. >
  367. <h4 class="phpdocumentor-element__name" id="method_testReader">
  368. testReader()
  369. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader" class="headerlink"><i class="fas fa-link"></i></a>
  370. </h4>
  371. <aside class="phpdocumentor-element-found-in">
  372. <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>
  373. :
  374. <span class="phpdocumentor-element-found-in__line">72</span>
  375. </aside>
  376. <code class="phpdocumentor-code phpdocumentor-signature ">
  377. <span class="phpdocumentor-signature__visibility">public</span>
  378. <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>
  379. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  380. <dl class="phpdocumentor-argument-list">
  381. <dt class="phpdocumentor-argument-list__entry">
  382. <span class="phpdocumentor-signature__argument__name">$img</span>
  383. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  384. </dt>
  385. <dd class="phpdocumentor-argument-list__definition">
  386. <section class="phpdocumentor-description"></section>
  387. </dd>
  388. <dt class="phpdocumentor-argument-list__entry">
  389. <span class="phpdocumentor-signature__argument__name">$expected</span>
  390. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  391. </dt>
  392. <dd class="phpdocumentor-argument-list__definition">
  393. <section class="phpdocumentor-description"></section>
  394. </dd>
  395. <dt class="phpdocumentor-argument-list__entry">
  396. <span class="phpdocumentor-signature__argument__name">$grayscale</span>
  397. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  398. </dt>
  399. <dd class="phpdocumentor-argument-list__definition">
  400. <section class="phpdocumentor-description"></section>
  401. </dd>
  402. </dl>
  403. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  404. Tags
  405. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  406. </h5>
  407. <dl class="phpdocumentor-tag-list">
  408. <dt class="phpdocumentor-tag-list__entry">
  409. <span class="phpdocumentor-tag__name">dataProvider</span>
  410. </dt>
  411. <dd class="phpdocumentor-tag-list__definition">
  412. <section class="phpdocumentor-description"><p>qrCodeProvider</p>
  413. </section>
  414. </dd>
  415. </dl>
  416. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  417. <span class="phpdocumentor-signature__response_type">void</span>
  418. &mdash;
  419. </article>
  420. <article
  421. class="phpdocumentor-element
  422. -method
  423. -public
  424. "
  425. >
  426. <h4 class="phpdocumentor-element__name" id="method_testReaderMultiSegment">
  427. testReaderMultiSegment()
  428. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiSegment" class="headerlink"><i class="fas fa-link"></i></a>
  429. </h4>
  430. <aside class="phpdocumentor-element-found-in">
  431. <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>
  432. :
  433. <span class="phpdocumentor-element-found-in__line">84</span>
  434. </aside>
  435. <code class="phpdocumentor-code phpdocumentor-signature ">
  436. <span class="phpdocumentor-signature__visibility">public</span>
  437. <span class="phpdocumentor-signature__name">testReaderMultiSegment</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  438. <section class="phpdocumentor-description"></section>
  439. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  440. <span class="phpdocumentor-signature__response_type">void</span>
  441. &mdash;
  442. </article>
  443. <article
  444. class="phpdocumentor-element
  445. -method
  446. -protected
  447. "
  448. >
  449. <h4 class="phpdocumentor-element__name" id="method_setUp">
  450. setUp()
  451. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  452. </h4>
  453. <aside class="phpdocumentor-element-found-in">
  454. <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>
  455. :
  456. <span class="phpdocumentor-element-found-in__line">39</span>
  457. </aside>
  458. <code class="phpdocumentor-code phpdocumentor-signature ">
  459. <span class="phpdocumentor-signature__visibility">protected</span>
  460. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  461. <section class="phpdocumentor-description"></section>
  462. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  463. <span class="phpdocumentor-signature__response_type">void</span>
  464. &mdash;
  465. </article>
  466. </section>
  467. <script type="text/javascript">
  468. function loadExternalCodeSnippets(line) {
  469. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  470. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  471. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  472. var language = 'php';
  473. var code = document.createElement('code');
  474. code.className = 'language-' + language;
  475. pre.textContent = '';
  476. pre.setAttribute('data-line', line)
  477. code.textContent = 'Loading…';
  478. pre.appendChild(code);
  479. var xhr = new XMLHttpRequest();
  480. xhr.open('GET', src, true);
  481. xhr.onreadystatechange = function () {
  482. if (xhr.readyState == 4) {
  483. if (xhr.status < 400 && xhr.responseText) {
  484. code.textContent = xhr.responseText;
  485. Prism.highlightElement(code);
  486. }
  487. else if (xhr.status >= 400) {
  488. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  489. }
  490. else {
  491. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  492. }
  493. }
  494. };
  495. xhr.send(null);
  496. });
  497. }
  498. var modals = document.querySelectorAll("[data-modal]");
  499. modals.forEach(function (trigger) {
  500. trigger.addEventListener("click", function (event) {
  501. //event.preventDefault();
  502. const modal = document.getElementById(trigger.dataset.modal);
  503. modal.classList.add("phpdocumentor-modal__open");
  504. loadExternalCodeSnippets(trigger.dataset.line)
  505. const exits = modal.querySelectorAll("[data-exit-button]");
  506. exits.forEach(function (exit) {
  507. exit.addEventListener("click", function (event) {
  508. event.preventDefault();
  509. modal.classList.remove("phpdocumentor-modal__open");
  510. });
  511. });
  512. });
  513. });
  514. </script>
  515. </article>
  516. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  517. <section class="phpdocumentor-search-results__dialog">
  518. <header class="phpdocumentor-search-results__header">
  519. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  520. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  521. </header>
  522. <section class="phpdocumentor-search-results__body">
  523. <ul class="phpdocumentor-search-results__entries"></ul>
  524. </section>
  525. </section>
  526. </section>
  527. </div>
  528. </div>
  529. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  530. </main>
  531. <script>
  532. cssVars({});
  533. </script>
  534. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  535. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  536. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  537. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  538. </body>
  539. </html>