chillerlan-QRCodeTest-Data-QRDataTest.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. </ul>
  59. </nav>
  60. </header>
  61. <main class="phpdocumentor">
  62. <div class="phpdocumentor-section">
  63. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  64. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  65. Menu
  66. </label>
  67. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  68. <section class="phpdocumentor-sidebar__category">
  69. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  70. <h4 class="phpdocumentor-sidebar__root-namespace">
  71. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  72. </h4>
  73. <ul class="phpdocumentor-list">
  74. <li>
  75. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  76. </li>
  77. <li>
  78. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  79. </li>
  80. </ul>
  81. <h4 class="phpdocumentor-sidebar__root-namespace">
  82. <a href="namespaces/output.html" class="">Output</a>
  83. </h4>
  84. </section>
  85. <section class="phpdocumentor-sidebar__category">
  86. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  87. <h4 class="phpdocumentor-sidebar__root-namespace">
  88. <a href="packages/Application.html" class="">Application</a>
  89. </h4>
  90. </section>
  91. <section class="phpdocumentor-sidebar__category">
  92. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  93. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  94. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  96. </section>
  97. <section class="phpdocumentor-sidebar__category">
  98. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  100. </section>
  101. </aside>
  102. <div class="phpdocumentor-column -nine phpdocumentor-content">
  103. <section>
  104. <ul class="phpdocumentor-breadcrumbs">
  105. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  106. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  107. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  108. </ul>
  109. <article class="phpdocumentor-element -class">
  110. <h2 class="phpdocumentor-content__title">
  111. QRDataTest
  112. <span class="phpdocumentor-element__extends">
  113. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  114. </span>
  115. <div class="phpdocumentor-element__package">
  116. in package
  117. <ul class="phpdocumentor-breadcrumbs">
  118. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  119. </ul>
  120. </div>
  121. <span class="phpdocumentor-element__extends">
  122. Uses
  123. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html"><abbr title="\chillerlan\QRCodeTest\QRMatrixDebugTrait">QRMatrixDebugTrait</abbr></a> </span>
  124. </h2>
  125. <div class="phpdocumentor-label-line">
  126. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  127. </div>
  128. <aside class="phpdocumentor-element-found-in">
  129. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRDataTest.php"><a href="files/tests-data-qrdatatest.html"><abbr title="tests/Data/QRDataTest.php">QRDataTest.php</abbr></a></abbr>
  130. :
  131. <span class="phpdocumentor-element-found-in__line">25</span>
  132. </aside>
  133. <h3 id="toc">
  134. Table of Contents
  135. <a href="classes/chillerlan-QRCodeTest-Data-QRDataTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  136. </h3>
  137. <h4 id="toc-methods">
  138. Methods
  139. <a href="classes/chillerlan-QRCodeTest-Data-QRDataTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  140. </h4>
  141. <dl class="phpdocumentor-table-of-contents">
  142. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  143. <a href="classes/chillerlan-QRCodeTest-Data-QRDataTest.html#method_testSetBitBuffer">testSetBitBuffer()</a>
  144. <span>
  145. &nbsp;: void </span>
  146. </dt>
  147. <dd>tests setting the BitBuffer object directly</dd>
  148. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  149. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a>
  150. <span>
  151. &nbsp;: void </span>
  152. </dt>
  153. <dd>Matrix debugging console output</dd>
  154. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  155. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a>
  156. <span>
  157. &nbsp;: void </span>
  158. </dt>
  159. <dd>debugging shortcut - limit to a single version when using with matrixProvider</dd>
  160. </dl>
  161. <section class="phpdocumentor-methods">
  162. <h3 class="phpdocumentor-elements__header" id="methods">
  163. Methods
  164. <a href="classes/chillerlan-QRCodeTest-Data-QRDataTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  165. </h3>
  166. <article
  167. class="phpdocumentor-element
  168. -method
  169. -public
  170. "
  171. >
  172. <h4 class="phpdocumentor-element__name" id="method_testSetBitBuffer">
  173. testSetBitBuffer()
  174. <a href="classes/chillerlan-QRCodeTest-Data-QRDataTest.html#method_testSetBitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  175. </h4>
  176. <aside class="phpdocumentor-element-found-in">
  177. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/QRDataTest.php"><a href="files/tests-data-qrdatatest.html"><abbr title="tests/Data/QRDataTest.php">QRDataTest.php</abbr></a></abbr>
  178. :
  179. <span class="phpdocumentor-element-found-in__line">31</span>
  180. </aside>
  181. <p class="phpdocumentor-summary">tests setting the BitBuffer object directly</p>
  182. <code class="phpdocumentor-code phpdocumentor-signature ">
  183. <span class="phpdocumentor-signature__visibility">public</span>
  184. <span class="phpdocumentor-signature__name">testSetBitBuffer</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  185. <div class="phpdocumentor-label-line">
  186. </div>
  187. </article>
  188. <article
  189. class="phpdocumentor-element
  190. -method
  191. -protected
  192. "
  193. >
  194. <h4 class="phpdocumentor-element__name" id="method_debugMatrix">
  195. debugMatrix()
  196. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  197. </h4>
  198. <aside class="phpdocumentor-element-found-in">
  199. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRMatrixDebugTrait.php"><a href="files/tests-qrmatrixdebugtrait.html"><abbr title="tests/QRMatrixDebugTrait.php">QRMatrixDebugTrait.php</abbr></a></abbr>
  200. :
  201. <span class="phpdocumentor-element-found-in__line">26</span>
  202. </aside>
  203. <p class="phpdocumentor-summary">Matrix debugging console output</p>
  204. <code class="phpdocumentor-code phpdocumentor-signature ">
  205. <span class="phpdocumentor-signature__visibility">protected</span>
  206. <span class="phpdocumentor-signature__name">debugMatrix</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  207. <div class="phpdocumentor-label-line">
  208. </div>
  209. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  210. <dl class="phpdocumentor-argument-list">
  211. <dt class="phpdocumentor-argument-list__entry">
  212. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  213. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  214. </dt>
  215. <dd class="phpdocumentor-argument-list__definition">
  216. </dd>
  217. </dl>
  218. </article>
  219. <article
  220. class="phpdocumentor-element
  221. -method
  222. -protected
  223. "
  224. >
  225. <h4 class="phpdocumentor-element__name" id="method_dm">
  226. dm()
  227. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm" class="headerlink"><i class="fas fa-link"></i></a>
  228. </h4>
  229. <aside class="phpdocumentor-element-found-in">
  230. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRMatrixDebugTrait.php"><a href="files/tests-qrmatrixdebugtrait.html"><abbr title="tests/QRMatrixDebugTrait.php">QRMatrixDebugTrait.php</abbr></a></abbr>
  231. :
  232. <span class="phpdocumentor-element-found-in__line">83</span>
  233. </aside>
  234. <p class="phpdocumentor-summary">debugging shortcut - limit to a single version when using with matrixProvider</p>
  235. <code class="phpdocumentor-code phpdocumentor-signature ">
  236. <span class="phpdocumentor-signature__visibility">protected</span>
  237. <span class="phpdocumentor-signature__name">dm</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  238. <div class="phpdocumentor-label-line">
  239. </div>
  240. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  241. <dl class="phpdocumentor-argument-list">
  242. <dt class="phpdocumentor-argument-list__entry">
  243. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  244. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  245. </dt>
  246. <dd class="phpdocumentor-argument-list__definition">
  247. </dd>
  248. </dl>
  249. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  250. Tags
  251. <a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm#tags" class="headerlink"><i class="fas fa-link"></i></a>
  252. </h5>
  253. <dl class="phpdocumentor-tag-list">
  254. <dt class="phpdocumentor-tag-list__entry">
  255. <span class="phpdocumentor-tag__name">see</span>
  256. </dt>
  257. <dd class="phpdocumentor-tag-list__definition">
  258. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCodeTest\QRMatrixTest::matrixProvider()">QRMatrixTest::matrixProvider()</abbr></span>
  259. </dd>
  260. </dl>
  261. </article>
  262. </section>
  263. <div class="phpdocumentor-modal" id="source-view">
  264. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  265. <div class="phpdocumentor-modal-container">
  266. <div class="phpdocumentor-modal-content">
  267. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Data/QRDataTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  268. </div>
  269. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  270. </div>
  271. </div>
  272. <script type="text/javascript">
  273. (function () {
  274. function loadExternalCodeSnippet(el, url, line) {
  275. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  276. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  277. const language = 'php';
  278. const code = document.createElement('code');
  279. code.className = 'language-' + language;
  280. pre.textContent = '';
  281. pre.setAttribute('data-line', line)
  282. code.textContent = 'Loading…';
  283. pre.appendChild(code);
  284. var xhr = new XMLHttpRequest();
  285. xhr.open('GET', src, true);
  286. xhr.onreadystatechange = function () {
  287. if (xhr.readyState !== 4) {
  288. return;
  289. }
  290. if (xhr.status < 400 && xhr.responseText) {
  291. code.textContent = xhr.responseText;
  292. Prism.highlightElement(code);
  293. return;
  294. }
  295. if (xhr.status === 404) {
  296. code.textContent = '✖ Error: File could not be found';
  297. return;
  298. }
  299. if (xhr.status >= 400) {
  300. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  301. return;
  302. }
  303. code.textContent = '✖ Error: An unknown error occurred';
  304. };
  305. xhr.send(null);
  306. });
  307. }
  308. const modalButtons = document.querySelectorAll("[data-modal]");
  309. const openedAsLocalFile = window.location.protocol === 'file:';
  310. if (modalButtons.length > 0 && openedAsLocalFile) {
  311. console.warn(
  312. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  313. 'browsers block XHR requests when a page is opened this way'
  314. );
  315. }
  316. modalButtons.forEach(function (trigger) {
  317. if (openedAsLocalFile) {
  318. trigger.setAttribute("hidden", "hidden");
  319. }
  320. trigger.addEventListener("click", function (event) {
  321. event.preventDefault();
  322. const modal = document.getElementById(trigger.dataset.modal);
  323. if (!modal) {
  324. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  325. return;
  326. }
  327. modal.classList.add("phpdocumentor-modal__open");
  328. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  329. const exits = modal.querySelectorAll("[data-exit-button]");
  330. exits.forEach(function (exit) {
  331. exit.addEventListener("click", function (event) {
  332. event.preventDefault();
  333. modal.classList.remove("phpdocumentor-modal__open");
  334. });
  335. });
  336. });
  337. });
  338. })();
  339. </script>
  340. </article>
  341. </section>
  342. <section class="phpdocumentor-on-this-page__sidebar">
  343. <section class="phpdocumentor-on-this-page__content">
  344. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  345. <ul class="phpdocumentor-list -clean">
  346. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  347. <li>
  348. <ul class="phpdocumentor-list -clean">
  349. <li><a href="classes/chillerlan-QRCodeTest-Data-QRDataTest.html#toc-methods">Methods</a></li>
  350. </ul>
  351. </li>
  352. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  353. <li>
  354. <ul class="phpdocumentor-list -clean">
  355. <li><a href="classes/chillerlan-QRCodeTest-Data-QRDataTest.html#method_testSetBitBuffer">testSetBitBuffer()</a></li>
  356. <li><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_debugMatrix">debugMatrix()</a></li>
  357. <li><a href="classes/chillerlan-QRCodeTest-QRMatrixDebugTrait.html#method_dm">dm()</a></li>
  358. </ul>
  359. </li>
  360. </ul>
  361. </section>
  362. </section>
  363. </div>
  364. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  365. <section class="phpdocumentor-search-results__dialog">
  366. <header class="phpdocumentor-search-results__header">
  367. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  368. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  369. </header>
  370. <section class="phpdocumentor-search-results__body">
  371. <ul class="phpdocumentor-search-results__entries"></ul>
  372. </section>
  373. </section>
  374. </section>
  375. </div>
  376. <a href="classes/chillerlan-QRCodeTest-Data-QRDataTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  377. </main>
  378. <script>
  379. cssVars({});
  380. </script>
  381. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  382. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  383. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  384. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  385. </body>
  386. </html>