chillerlan-QRCodeTest-QRCodeReaderTestAbstract.html 53 KB

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