chillerlan-QRCodeTest-QRCodeReaderGDTest.html 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023
  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. </section>
  82. <section class="phpdocumentor-sidebar__category">
  83. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  84. <h4 class="phpdocumentor-sidebar__root-namespace">
  85. <a href="packages/Application.html" class="">Application</a>
  86. </h4>
  87. </section>
  88. <section class="phpdocumentor-sidebar__category">
  89. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  92. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  93. </section>
  94. <section class="phpdocumentor-sidebar__category">
  95. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  96. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  97. </section>
  98. </aside>
  99. <div class="phpdocumentor-column -nine phpdocumentor-content">
  100. <section>
  101. <ul class="phpdocumentor-breadcrumbs">
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  103. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  104. </ul>
  105. <article class="phpdocumentor-element -class">
  106. <h2 class="phpdocumentor-content__title">
  107. QRCodeReaderGDTest
  108. <span class="phpdocumentor-element__extends">
  109. extends <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\QRCodeReaderTestAbstract">QRCodeReaderTestAbstract</abbr></a>
  110. </span>
  111. <div class="phpdocumentor-element__package">
  112. in package
  113. <ul class="phpdocumentor-breadcrumbs">
  114. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  115. </ul>
  116. </div>
  117. </h2>
  118. <div class="phpdocumentor-label-line">
  119. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  120. </div>
  121. <aside class="phpdocumentor-element-found-in">
  122. <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>
  123. :
  124. <span class="phpdocumentor-element-found-in__line">18</span>
  125. </aside>
  126. <p class="phpdocumentor-summary">Tests the GD based reader</p>
  127. <h3 id="toc">
  128. Table of Contents
  129. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  130. </h3>
  131. <h4 id="toc-constants">
  132. Constants
  133. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  134. </h4>
  135. <dl class="phpdocumentor-table-of-contents">
  136. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  137. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum">loremipsum</a>
  138. <span>
  139. &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>
  140. </dt>
  141. </dl>
  142. <h4 id="toc-properties">
  143. Properties
  144. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  145. </h4>
  146. <dl class="phpdocumentor-table-of-contents">
  147. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  148. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#property_FQN">$FQN</a>
  149. <span>
  150. &nbsp;: string </span>
  151. </dt>
  152. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  153. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options">$options</a>
  154. <span>
  155. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  156. </dt>
  157. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  158. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#property_MAX_LENGTH">$MAX_LENGTH</a>
  159. <span>
  160. &nbsp;: array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt; </span>
  161. </dt>
  162. <dd>ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</dd>
  163. </dl>
  164. <h4 id="toc-methods">
  165. Methods
  166. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  167. </h4>
  168. <dl class="phpdocumentor-table-of-contents">
  169. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  170. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider">dataTestProvider()</a>
  171. <span>
  172. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  173. </dt>
  174. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  175. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  176. <span>
  177. &nbsp;: int </span>
  178. </dt>
  179. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  180. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  181. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider">qrCodeProvider()</a>
  182. <span>
  183. &nbsp;: array&lt;string|int, mixed&gt; </span>
  184. </dt>
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData">testReadData()</a>
  187. <span>
  188. &nbsp;: void </span>
  189. </dt>
  190. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  191. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader">testReader()</a>
  192. <span>
  193. &nbsp;: void </span>
  194. </dt>
  195. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  196. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode">testReaderMultiMode()</a>
  197. <span>
  198. &nbsp;: void </span>
  199. </dt>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  201. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp">setUp()</a>
  202. <span>
  203. &nbsp;: void </span>
  204. </dt>
  205. </dl>
  206. <section class="phpdocumentor-constants">
  207. <h3 class="phpdocumentor-elements__header" id="constants">
  208. Constants
  209. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  210. </h3>
  211. <article class="phpdocumentor-element -constant -protected ">
  212. <h4 class="phpdocumentor-element__name" id="constant_loremipsum">
  213. loremipsum
  214. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum" class="headerlink"><i class="fas fa-link"></i></a>
  215. </h4>
  216. <aside class="phpdocumentor-element-found-in">
  217. <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>
  218. :
  219. <span class="phpdocumentor-element-found-in__line">31</span>
  220. </aside>
  221. <code class="phpdocumentor-signature phpdocumentor-code ">
  222. <span class="phpdocumentor-signature__visibility">protected</span>
  223. <span class="phpdocumentor-signature__type">mixed</span>
  224. <span class="phpdocumentor-signature__name">loremipsum</span>
  225. = <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>
  226. </code>
  227. </article>
  228. </section>
  229. <section class="phpdocumentor-properties">
  230. <h3 class="phpdocumentor-elements__header" id="properties">
  231. Properties
  232. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  233. </h3>
  234. <article
  235. class="
  236. phpdocumentor-element
  237. -property
  238. -protected
  239. "
  240. >
  241. <h4 class="phpdocumentor-element__name" id="property_FQN">
  242. $FQN
  243. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#property_FQN" class="headerlink"><i class="fas fa-link"></i></a>
  244. <span class="phpdocumentor-element__modifiers">
  245. </span>
  246. </h4>
  247. <aside class="phpdocumentor-element-found-in">
  248. <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>
  249. :
  250. <span class="phpdocumentor-element-found-in__line">20</span>
  251. </aside>
  252. <code class="phpdocumentor-code phpdocumentor-signature ">
  253. <span class="phpdocumentor-signature__visibility">protected</span>
  254. <span class="phpdocumentor-signature__type">string</span>
  255. <span class="phpdocumentor-signature__name">$FQN</span>
  256. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Common\GDLuminanceSource::class</span></code>
  257. </article>
  258. <article
  259. class="
  260. phpdocumentor-element
  261. -property
  262. -protected
  263. "
  264. >
  265. <h4 class="phpdocumentor-element__name" id="property_options">
  266. $options
  267. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  268. <span class="phpdocumentor-element__modifiers">
  269. </span>
  270. </h4>
  271. <aside class="phpdocumentor-element-found-in">
  272. <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>
  273. :
  274. <span class="phpdocumentor-element-found-in__line">39</span>
  275. </aside>
  276. <code class="phpdocumentor-code phpdocumentor-signature ">
  277. <span class="phpdocumentor-signature__visibility">protected</span>
  278. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  279. <span class="phpdocumentor-signature__name">$options</span>
  280. </code>
  281. </article>
  282. <article
  283. class="
  284. phpdocumentor-element
  285. -property
  286. -private
  287. -static "
  288. >
  289. <h4 class="phpdocumentor-element__name" id="property_MAX_LENGTH">
  290. $MAX_LENGTH
  291. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#property_MAX_LENGTH" class="headerlink"><i class="fas fa-link"></i></a>
  292. <span class="phpdocumentor-element__modifiers">
  293. </span>
  294. </h4>
  295. <aside class="phpdocumentor-element-found-in">
  296. <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>
  297. :
  298. <span class="phpdocumentor-element-found-in__line">28</span>
  299. </aside>
  300. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</p>
  301. <code class="phpdocumentor-code phpdocumentor-signature ">
  302. <span class="phpdocumentor-signature__visibility">private</span>
  303. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt;</span>
  304. <span class="phpdocumentor-signature__name">$MAX_LENGTH</span>
  305. = <span class="phpdocumentor-signature__default-value">[
  306. // v =&gt; [NUMERIC =&gt; [L, M, Q, H ], ALPHANUM =&gt; [L, M, Q, H], BINARY =&gt; [L, M, Q, H ], KANJI =&gt; [L, M, Q, H ]]
  307. 1 =&gt; [[41, 34, 27, 17], [25, 20, 16, 10], [17, 14, 11, 7], [10, 8, 7, 4]],
  308. 2 =&gt; [[77, 63, 48, 34], [47, 38, 29, 20], [32, 26, 20, 14], [20, 16, 12, 8]],
  309. 3 =&gt; [[127, 101, 77, 58], [77, 61, 47, 35], [53, 42, 32, 24], [32, 26, 20, 15]],
  310. 4 =&gt; [[187, 149, 111, 82], [114, 90, 67, 50], [78, 62, 46, 34], [48, 38, 28, 21]],
  311. 5 =&gt; [[255, 202, 144, 106], [154, 122, 87, 64], [106, 84, 60, 44], [65, 52, 37, 27]],
  312. 6 =&gt; [[322, 255, 178, 139], [195, 154, 108, 84], [134, 106, 74, 58], [82, 65, 45, 36]],
  313. 7 =&gt; [[370, 293, 207, 154], [224, 178, 125, 93], [154, 122, 86, 64], [95, 75, 53, 39]],
  314. 8 =&gt; [[461, 365, 259, 202], [279, 221, 157, 122], [192, 152, 108, 84], [118, 93, 66, 52]],
  315. 9 =&gt; [[552, 432, 312, 235], [335, 262, 189, 143], [230, 180, 130, 98], [141, 111, 80, 60]],
  316. 10 =&gt; [[652, 513, 364, 288], [395, 311, 221, 174], [271, 213, 151, 119], [167, 131, 93, 74]],
  317. 11 =&gt; [[772, 604, 427, 331], [468, 366, 259, 200], [321, 251, 177, 137], [198, 155, 109, 85]],
  318. 12 =&gt; [[883, 691, 489, 374], [535, 419, 296, 227], [367, 287, 203, 155], [226, 177, 125, 96]],
  319. 13 =&gt; [[1022, 796, 580, 427], [619, 483, 352, 259], [425, 331, 241, 177], [262, 204, 149, 109]],
  320. 14 =&gt; [[1101, 871, 621, 468], [667, 528, 376, 283], [458, 362, 258, 194], [282, 223, 159, 120]],
  321. 15 =&gt; [[1250, 991, 703, 530], [758, 600, 426, 321], [520, 412, 292, 220], [320, 254, 180, 136]],
  322. 16 =&gt; [[1408, 1082, 775, 602], [854, 656, 470, 365], [586, 450, 322, 250], [361, 277, 198, 154]],
  323. 17 =&gt; [[1548, 1212, 876, 674], [938, 734, 531, 408], [644, 504, 364, 280], [397, 310, 224, 173]],
  324. 18 =&gt; [[1725, 1346, 948, 746], [1046, 816, 574, 452], [718, 560, 394, 310], [442, 345, 243, 191]],
  325. 19 =&gt; [[1903, 1500, 1063, 813], [1153, 909, 644, 493], [792, 624, 442, 338], [488, 384, 272, 208]],
  326. 20 =&gt; [[2061, 1600, 1159, 919], [1249, 970, 702, 557], [858, 666, 482, 382], [528, 410, 297, 235]],
  327. 21 =&gt; [[2232, 1708, 1224, 969], [1352, 1035, 742, 587], [929, 711, 509, 403], [572, 438, 314, 248]],
  328. 22 =&gt; [[2409, 1872, 1358, 1056], [1460, 1134, 823, 640], [1003, 779, 565, 439], [618, 480, 348, 270]],
  329. 23 =&gt; [[2620, 2059, 1468, 1108], [1588, 1248, 890, 672], [1091, 857, 611, 461], [672, 528, 376, 284]],
  330. 24 =&gt; [[2812, 2188, 1588, 1228], [1704, 1326, 963, 744], [1171, 911, 661, 511], [721, 561, 407, 315]],
  331. 25 =&gt; [[3057, 2395, 1718, 1286], [1853, 1451, 1041, 779], [1273, 997, 715, 535], [784, 614, 440, 330]],
  332. 26 =&gt; [[3283, 2544, 1804, 1425], [1990, 1542, 1094, 864], [1367, 1059, 751, 593], [842, 652, 462, 365]],
  333. 27 =&gt; [[3517, 2701, 1933, 1501], [2132, 1637, 1172, 910], [1465, 1125, 805, 625], [902, 692, 496, 385]],
  334. 28 =&gt; [[3669, 2857, 2085, 1581], [2223, 1732, 1263, 958], [1528, 1190, 868, 658], [940, 732, 534, 405]],
  335. 29 =&gt; [[3909, 3035, 2181, 1677], [2369, 1839, 1322, 1016], [1628, 1264, 908, 698], [1002, 778, 559, 430]],
  336. 30 =&gt; [[4158, 3289, 2358, 1782], [2520, 1994, 1429, 1080], [1732, 1370, 982, 742], [1066, 843, 604, 457]],
  337. 31 =&gt; [[4417, 3486, 2473, 1897], [2677, 2113, 1499, 1150], [1840, 1452, 1030, 790], [1132, 894, 634, 486]],
  338. 32 =&gt; [[4686, 3693, 2670, 2022], [2840, 2238, 1618, 1226], [1952, 1538, 1112, 842], [1201, 947, 684, 518]],
  339. 33 =&gt; [[4965, 3909, 2805, 2157], [3009, 2369, 1700, 1307], [2068, 1628, 1168, 898], [1273, 1002, 719, 553]],
  340. 34 =&gt; [[5253, 4134, 2949, 2301], [3183, 2506, 1787, 1394], [2188, 1722, 1228, 958], [1347, 1060, 756, 590]],
  341. 35 =&gt; [[5529, 4343, 3081, 2361], [3351, 2632, 1867, 1431], [2303, 1809, 1283, 983], [1417, 1113, 790, 605]],
  342. 36 =&gt; [[5836, 4588, 3244, 2524], [3537, 2780, 1966, 1530], [2431, 1911, 1351, 1051], [1496, 1176, 832, 647]],
  343. 37 =&gt; [[6153, 4775, 3417, 2625], [3729, 2894, 2071, 1591], [2563, 1989, 1423, 1093], [1577, 1224, 876, 673]],
  344. 38 =&gt; [[6479, 5039, 3599, 2735], [3927, 3054, 2181, 1658], [2699, 2099, 1499, 1139], [1661, 1292, 923, 701]],
  345. 39 =&gt; [[6743, 5313, 3791, 2927], [4087, 3220, 2298, 1774], [2809, 2213, 1579, 1219], [1729, 1362, 972, 750]],
  346. 40 =&gt; [[7089, 5596, 3993, 3057], [4296, 3391, 2420, 1852], [2953, 2331, 1663, 1273], [1817, 1435, 1024, 784]],
  347. ]</span></code>
  348. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  349. Tags
  350. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#property_MAX_LENGTH#tags" class="headerlink"><i class="fas fa-link"></i></a>
  351. </h5>
  352. <dl class="phpdocumentor-tag-list">
  353. <dt class="phpdocumentor-tag-list__entry">
  354. <span class="phpdocumentor-tag__name">see</span>
  355. </dt>
  356. <dd class="phpdocumentor-tag-list__definition">
  357. <span class="phpdocumentor-tag-link"><a href="http://www.qrcode.com/en/about/version.html">http://www.qrcode.com/en/about/version.html</a></span>
  358. </dd>
  359. </dl>
  360. </article>
  361. </section>
  362. <section class="phpdocumentor-methods">
  363. <h3 class="phpdocumentor-elements__header" id="methods">
  364. Methods
  365. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  366. </h3>
  367. <article
  368. class="phpdocumentor-element
  369. -method
  370. -public
  371. -static "
  372. >
  373. <h4 class="phpdocumentor-element__name" id="method_dataTestProvider">
  374. dataTestProvider()
  375. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider" class="headerlink"><i class="fas fa-link"></i></a>
  376. </h4>
  377. <aside class="phpdocumentor-element-found-in">
  378. <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>
  379. :
  380. <span class="phpdocumentor-element-found-in__line">121</span>
  381. </aside>
  382. <code class="phpdocumentor-code phpdocumentor-signature ">
  383. <span class="phpdocumentor-signature__visibility">public</span>
  384. <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>
  385. <div class="phpdocumentor-label-line">
  386. </div>
  387. <section>
  388. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  389. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  390. </section>
  391. </article>
  392. <article
  393. class="phpdocumentor-element
  394. -method
  395. -public
  396. -static "
  397. >
  398. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  399. getMaxLengthForMode()
  400. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  401. </h4>
  402. <aside class="phpdocumentor-element-found-in">
  403. <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>
  404. :
  405. <span class="phpdocumentor-element-found-in__line">81</span>
  406. </aside>
  407. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  408. <code class="phpdocumentor-code phpdocumentor-signature ">
  409. <span class="phpdocumentor-signature__visibility">public</span>
  410. <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>
  411. <div class="phpdocumentor-label-line">
  412. </div>
  413. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  414. <dl class="phpdocumentor-argument-list">
  415. <dt class="phpdocumentor-argument-list__entry">
  416. <span class="phpdocumentor-signature__argument__name">$mode</span>
  417. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  418. </dt>
  419. <dd class="phpdocumentor-argument-list__definition">
  420. </dd>
  421. <dt class="phpdocumentor-argument-list__entry">
  422. <span class="phpdocumentor-signature__argument__name">$version</span>
  423. : <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>
  424. </dt>
  425. <dd class="phpdocumentor-argument-list__definition">
  426. </dd>
  427. <dt class="phpdocumentor-argument-list__entry">
  428. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  429. : <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>
  430. </dt>
  431. <dd class="phpdocumentor-argument-list__definition">
  432. </dd>
  433. </dl>
  434. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  435. Tags
  436. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode#tags" class="headerlink"><i class="fas fa-link"></i></a>
  437. </h5>
  438. <dl class="phpdocumentor-tag-list">
  439. <dt class="phpdocumentor-tag-list__entry">
  440. <span class="phpdocumentor-tag__name">todo:</span>
  441. </dt>
  442. <dd class="phpdocumentor-tag-list__definition">
  443. <section class="phpdocumentor-description"><p>this methood is only used in unit tests (incl. MAX_LENGTH table)</p>
  444. </section>
  445. </dd>
  446. <dt class="phpdocumentor-tag-list__entry">
  447. <span class="phpdocumentor-tag__name">throws</span>
  448. </dt>
  449. <dd class="phpdocumentor-tag-list__definition">
  450. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  451. </dd>
  452. <dt class="phpdocumentor-tag-list__entry">
  453. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  454. </dt>
  455. <dd class="phpdocumentor-tag-list__definition">
  456. </dd>
  457. </dl>
  458. <section>
  459. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  460. <span class="phpdocumentor-signature__response_type">int</span>
  461. </section>
  462. </article>
  463. <article
  464. class="phpdocumentor-element
  465. -method
  466. -public
  467. -static "
  468. >
  469. <h4 class="phpdocumentor-element__name" id="method_qrCodeProvider">
  470. qrCodeProvider()
  471. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider" 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">52</span>
  477. </aside>
  478. <code class="phpdocumentor-code phpdocumentor-signature ">
  479. <span class="phpdocumentor-signature__visibility">public</span>
  480. <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>
  481. <div class="phpdocumentor-label-line">
  482. </div>
  483. <section>
  484. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  485. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  486. </section>
  487. </article>
  488. <article
  489. class="phpdocumentor-element
  490. -method
  491. -public
  492. "
  493. >
  494. <h4 class="phpdocumentor-element__name" id="method_testReadData">
  495. testReadData()
  496. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData" class="headerlink"><i class="fas fa-link"></i></a>
  497. </h4>
  498. <aside class="phpdocumentor-element-found-in">
  499. <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>
  500. :
  501. <span class="phpdocumentor-element-found-in__line">147</span>
  502. </aside>
  503. <code class="phpdocumentor-code phpdocumentor-signature ">
  504. <span class="phpdocumentor-signature__visibility">public</span>
  505. <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>
  506. <div class="phpdocumentor-label-line">
  507. </div>
  508. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  509. <dl class="phpdocumentor-argument-list">
  510. <dt class="phpdocumentor-argument-list__entry">
  511. <span class="phpdocumentor-signature__argument__name">$version</span>
  512. : <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>
  513. </dt>
  514. <dd class="phpdocumentor-argument-list__definition">
  515. </dd>
  516. <dt class="phpdocumentor-argument-list__entry">
  517. <span class="phpdocumentor-signature__argument__name">$ecc</span>
  518. : <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>
  519. </dt>
  520. <dd class="phpdocumentor-argument-list__definition">
  521. </dd>
  522. <dt class="phpdocumentor-argument-list__entry">
  523. <span class="phpdocumentor-signature__argument__name">$expected</span>
  524. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  525. </dt>
  526. <dd class="phpdocumentor-argument-list__definition">
  527. </dd>
  528. </dl>
  529. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  530. Tags
  531. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData#tags" class="headerlink"><i class="fas fa-link"></i></a>
  532. </h5>
  533. <dl class="phpdocumentor-tag-list">
  534. <dt class="phpdocumentor-tag-list__entry">
  535. <span class="phpdocumentor-tag__name">group</span>
  536. </dt>
  537. <dd class="phpdocumentor-tag-list__definition">
  538. <section class="phpdocumentor-description"><p>slow</p>
  539. </section>
  540. </dd>
  541. <dt class="phpdocumentor-tag-list__entry">
  542. <span class="phpdocumentor-tag__name">dataProvider</span>
  543. </dt>
  544. <dd class="phpdocumentor-tag-list__definition">
  545. <section class="phpdocumentor-description"><p>dataTestProvider</p>
  546. </section>
  547. </dd>
  548. </dl>
  549. </article>
  550. <article
  551. class="phpdocumentor-element
  552. -method
  553. -public
  554. "
  555. >
  556. <h4 class="phpdocumentor-element__name" id="method_testReader">
  557. testReader()
  558. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader" class="headerlink"><i class="fas fa-link"></i></a>
  559. </h4>
  560. <aside class="phpdocumentor-element-found-in">
  561. <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>
  562. :
  563. <span class="phpdocumentor-element-found-in__line">83</span>
  564. </aside>
  565. <code class="phpdocumentor-code phpdocumentor-signature ">
  566. <span class="phpdocumentor-signature__visibility">public</span>
  567. <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>
  568. <div class="phpdocumentor-label-line">
  569. </div>
  570. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  571. <dl class="phpdocumentor-argument-list">
  572. <dt class="phpdocumentor-argument-list__entry">
  573. <span class="phpdocumentor-signature__argument__name">$img</span>
  574. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  575. </dt>
  576. <dd class="phpdocumentor-argument-list__definition">
  577. </dd>
  578. <dt class="phpdocumentor-argument-list__entry">
  579. <span class="phpdocumentor-signature__argument__name">$expected</span>
  580. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  581. </dt>
  582. <dd class="phpdocumentor-argument-list__definition">
  583. </dd>
  584. <dt class="phpdocumentor-argument-list__entry">
  585. <span class="phpdocumentor-signature__argument__name">$grayscale</span>
  586. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  587. </dt>
  588. <dd class="phpdocumentor-argument-list__definition">
  589. </dd>
  590. </dl>
  591. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  592. Tags
  593. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader#tags" class="headerlink"><i class="fas fa-link"></i></a>
  594. </h5>
  595. <dl class="phpdocumentor-tag-list">
  596. <dt class="phpdocumentor-tag-list__entry">
  597. <span class="phpdocumentor-tag__name">group</span>
  598. </dt>
  599. <dd class="phpdocumentor-tag-list__definition">
  600. <section class="phpdocumentor-description"><p>slow</p>
  601. </section>
  602. </dd>
  603. <dt class="phpdocumentor-tag-list__entry">
  604. <span class="phpdocumentor-tag__name">dataProvider</span>
  605. </dt>
  606. <dd class="phpdocumentor-tag-list__definition">
  607. <section class="phpdocumentor-description"><p>qrCodeProvider</p>
  608. </section>
  609. </dd>
  610. </dl>
  611. </article>
  612. <article
  613. class="phpdocumentor-element
  614. -method
  615. -public
  616. "
  617. >
  618. <h4 class="phpdocumentor-element__name" id="method_testReaderMultiMode">
  619. testReaderMultiMode()
  620. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode" class="headerlink"><i class="fas fa-link"></i></a>
  621. </h4>
  622. <aside class="phpdocumentor-element-found-in">
  623. <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>
  624. :
  625. <span class="phpdocumentor-element-found-in__line">98</span>
  626. </aside>
  627. <code class="phpdocumentor-code phpdocumentor-signature ">
  628. <span class="phpdocumentor-signature__visibility">public</span>
  629. <span class="phpdocumentor-signature__name">testReaderMultiMode</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  630. <div class="phpdocumentor-label-line">
  631. </div>
  632. </article>
  633. <article
  634. class="phpdocumentor-element
  635. -method
  636. -protected
  637. "
  638. >
  639. <h4 class="phpdocumentor-element__name" id="method_setUp">
  640. setUp()
  641. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  642. </h4>
  643. <aside class="phpdocumentor-element-found-in">
  644. <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>
  645. :
  646. <span class="phpdocumentor-element-found-in__line">42</span>
  647. </aside>
  648. <code class="phpdocumentor-code phpdocumentor-signature ">
  649. <span class="phpdocumentor-signature__visibility">protected</span>
  650. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  651. <div class="phpdocumentor-label-line">
  652. </div>
  653. </article>
  654. </section>
  655. <div class="phpdocumentor-modal" id="source-view">
  656. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  657. <div class="phpdocumentor-modal-container">
  658. <div class="phpdocumentor-modal-content">
  659. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/QRCodeReaderGDTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  660. </div>
  661. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  662. </div>
  663. </div>
  664. <script type="text/javascript">
  665. (function () {
  666. function loadExternalCodeSnippet(el, url, line) {
  667. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  668. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  669. const language = 'php';
  670. const code = document.createElement('code');
  671. code.className = 'language-' + language;
  672. pre.textContent = '';
  673. pre.setAttribute('data-line', line)
  674. code.textContent = 'Loading…';
  675. pre.appendChild(code);
  676. var xhr = new XMLHttpRequest();
  677. xhr.open('GET', src, true);
  678. xhr.onreadystatechange = function () {
  679. if (xhr.readyState !== 4) {
  680. return;
  681. }
  682. if (xhr.status < 400 && xhr.responseText) {
  683. code.textContent = xhr.responseText;
  684. Prism.highlightElement(code);
  685. return;
  686. }
  687. if (xhr.status === 404) {
  688. code.textContent = '✖ Error: File could not be found';
  689. return;
  690. }
  691. if (xhr.status >= 400) {
  692. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  693. return;
  694. }
  695. code.textContent = '✖ Error: An unknown error occurred';
  696. };
  697. xhr.send(null);
  698. });
  699. }
  700. const modalButtons = document.querySelectorAll("[data-modal]");
  701. const openedAsLocalFile = window.location.protocol === 'file:';
  702. if (modalButtons.length > 0 && openedAsLocalFile) {
  703. console.warn(
  704. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  705. 'browsers block XHR requests when a page is opened this way'
  706. );
  707. }
  708. modalButtons.forEach(function (trigger) {
  709. if (openedAsLocalFile) {
  710. trigger.setAttribute("hidden", "hidden");
  711. }
  712. trigger.addEventListener("click", function (event) {
  713. event.preventDefault();
  714. const modal = document.getElementById(trigger.dataset.modal);
  715. if (!modal) {
  716. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  717. return;
  718. }
  719. modal.classList.add("phpdocumentor-modal__open");
  720. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  721. const exits = modal.querySelectorAll("[data-exit-button]");
  722. exits.forEach(function (exit) {
  723. exit.addEventListener("click", function (event) {
  724. event.preventDefault();
  725. modal.classList.remove("phpdocumentor-modal__open");
  726. });
  727. });
  728. });
  729. });
  730. })();
  731. </script>
  732. </article>
  733. </section>
  734. <section class="phpdocumentor-on-this-page__sidebar">
  735. <section class="phpdocumentor-on-this-page__content">
  736. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  737. <ul class="phpdocumentor-list -clean">
  738. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  739. <li>
  740. <ul class="phpdocumentor-list -clean">
  741. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-constants">Constants</a></li>
  742. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-properties">Properties</a></li>
  743. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#toc-methods">Methods</a></li>
  744. </ul>
  745. </li>
  746. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  747. <li>
  748. <ul class="phpdocumentor-list -clean">
  749. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#constant_loremipsum">loremipsum</a></li>
  750. </ul>
  751. </li>
  752. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  753. <li>
  754. <ul class="phpdocumentor-list -clean">
  755. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#property_FQN">$FQN<a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html"></li>
  756. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#property_options">$options<a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html"></li>
  757. <li><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#property_MAX_LENGTH">$MAX_LENGTH<a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html"></li>
  758. </ul>
  759. </li>
  760. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  761. <li>
  762. <ul class="phpdocumentor-list -clean">
  763. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_dataTestProvider">dataTestProvider()</a></li>
  764. <li><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a></li>
  765. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_qrCodeProvider">qrCodeProvider()</a></li>
  766. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReadData">testReadData()</a></li>
  767. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReader">testReader()</a></li>
  768. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_testReaderMultiMode">testReaderMultiMode()</a></li>
  769. <li><a href="classes/chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html#method_setUp">setUp()</a></li>
  770. </ul>
  771. </li>
  772. </ul>
  773. </section>
  774. </section>
  775. </div>
  776. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  777. <section class="phpdocumentor-search-results__dialog">
  778. <header class="phpdocumentor-search-results__header">
  779. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  780. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  781. </header>
  782. <section class="phpdocumentor-search-results__body">
  783. <ul class="phpdocumentor-search-results__entries"></ul>
  784. </section>
  785. </section>
  786. </section>
  787. </div>
  788. <a href="classes/chillerlan-QRCodeTest-QRCodeReaderGDTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  789. </main>
  790. <script>
  791. cssVars({});
  792. </script>
  793. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  794. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  795. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  796. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  797. </body>
  798. </html>