chillerlan-QRCodeTest-Output-QRImageTest.html 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-output.html">Output</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. QRImageTest
  89. <span class="phpdocumentor-element__extends">
  90. extends <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Output\QROutputTestAbstract">QROutputTestAbstract</abbr></a>
  91. </span>
  92. <div class="phpdocumentor-element__package">
  93. in package
  94. <ul class="phpdocumentor-breadcrumbs">
  95. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  96. </ul>
  97. </div>
  98. </h2>
  99. <aside class="phpdocumentor-element-found-in">
  100. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRImageTest.php"><a href="files/tests-output-qrimagetest.html"><abbr title="tests/Output/QRImageTest.php">QRImageTest.php</abbr></a></abbr>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">21</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">Tests the QRImage output module</p>
  105. <h3 id="toc">
  106. Table of Contents
  107. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  108. </h3>
  109. <dl class="phpdocumentor-table-of-contents">
  110. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  111. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_builddir">$builddir</a>
  112. <span>
  113. &nbsp;: string </span>
  114. </dt>
  115. <dd></dd>
  116. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  117. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix">$matrix</a>
  118. <span>
  119. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  120. </dt>
  121. <dd></dd>
  122. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  123. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options">$options</a>
  124. <span>
  125. &nbsp;: <a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  126. </dt>
  127. <dd></dd>
  128. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  129. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface">$outputInterface</a>
  130. <span>
  131. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  132. </dt>
  133. <dd></dd>
  134. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  135. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testInstance">testInstance()</a>
  136. <span>
  137. &nbsp;: void </span>
  138. </dt>
  139. <dd>Validate the instance of the interface</dd>
  140. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  141. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_testOutputGetResource">testOutputGetResource()</a>
  142. <span>
  143. &nbsp;: void </span>
  144. </dt>
  145. <dd></dd>
  146. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  147. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderImage">testRenderImage()</a>
  148. <span>
  149. &nbsp;: void </span>
  150. </dt>
  151. <dd>covers the built-in output modules, tests against pre-rendered data</dd>
  152. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  153. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException">testSaveException()</a>
  154. <span>
  155. &nbsp;: void </span>
  156. </dt>
  157. <dd>Tests if an exception is thrown when trying to write a cache file to an invalid destination</dd>
  158. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  159. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_testSetModuleValues">testSetModuleValues()</a>
  160. <span>
  161. &nbsp;: void </span>
  162. </dt>
  163. <dd>covers the module values settings</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  165. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testStringOutput">testStringOutput()</a>
  166. <span>
  167. &nbsp;: void </span>
  168. </dt>
  169. <dd>coverage of the built-in output modules</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  171. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_types">types()</a>
  172. <span>
  173. &nbsp;: array&lt;string|int, array&lt;string|int, string&gt;&gt; </span>
  174. </dt>
  175. <dd></dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  177. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_getOutputInterface">getOutputInterface()</a>
  178. <span>
  179. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  180. </dt>
  181. <dd>Returns a QROutputInterface instance with the given options and using $this-&gt;matrix</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  183. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_setUp">setUp()</a>
  184. <span>
  185. &nbsp;: void </span>
  186. </dt>
  187. <dd>Attempts to create a directory under /.build and instances several required objects</dd>
  188. </dl>
  189. <section class="phpdocumentor-properties">
  190. <h3 class="phpdocumentor-elements__header" id="properties">
  191. Properties
  192. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  193. </h3>
  194. <article
  195. class="
  196. phpdocumentor-element
  197. -property
  198. -protected
  199. "
  200. >
  201. <h4 class="phpdocumentor-element__name" id="property_builddir">
  202. $builddir
  203. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_builddir" class="headerlink"><i class="fas fa-link"></i></a>
  204. <span class="phpdocumentor-element__modifiers">
  205. </span>
  206. </h4>
  207. <aside class="phpdocumentor-element-found-in">
  208. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  209. :
  210. <span class="phpdocumentor-element-found-in__line">33</span>
  211. </aside>
  212. <code class="phpdocumentor-code phpdocumentor-signature ">
  213. <span class="phpdocumentor-signature__visibility">protected</span>
  214. <span class="phpdocumentor-signature__type">string</span>
  215. <span class="phpdocumentor-signature__name">$builddir</span>
  216. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/../../.build/output_test&#039;</span></code>
  217. <section class="phpdocumentor-description"></section>
  218. <section class="phpdocumentor-description"></section>
  219. </article>
  220. <article
  221. class="
  222. phpdocumentor-element
  223. -property
  224. -protected
  225. "
  226. >
  227. <h4 class="phpdocumentor-element__name" id="property_matrix">
  228. $matrix
  229. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  230. <span class="phpdocumentor-element__modifiers">
  231. </span>
  232. </h4>
  233. <aside class="phpdocumentor-element-found-in">
  234. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  235. :
  236. <span class="phpdocumentor-element-found-in__line">32</span>
  237. </aside>
  238. <code class="phpdocumentor-code phpdocumentor-signature ">
  239. <span class="phpdocumentor-signature__visibility">protected</span>
  240. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  241. <span class="phpdocumentor-signature__name">$matrix</span>
  242. </code>
  243. <section class="phpdocumentor-description"></section>
  244. <section class="phpdocumentor-description"></section>
  245. </article>
  246. <article
  247. class="
  248. phpdocumentor-element
  249. -property
  250. -protected
  251. "
  252. >
  253. <h4 class="phpdocumentor-element__name" id="property_options">
  254. $options
  255. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  256. <span class="phpdocumentor-element__modifiers">
  257. </span>
  258. </h4>
  259. <aside class="phpdocumentor-element-found-in">
  260. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  261. :
  262. <span class="phpdocumentor-element-found-in__line">30</span>
  263. </aside>
  264. <code class="phpdocumentor-code phpdocumentor-signature ">
  265. <span class="phpdocumentor-signature__visibility">protected</span>
  266. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  267. <span class="phpdocumentor-signature__name">$options</span>
  268. </code>
  269. </article>
  270. <article
  271. class="
  272. phpdocumentor-element
  273. -property
  274. -protected
  275. "
  276. >
  277. <h4 class="phpdocumentor-element__name" id="property_outputInterface">
  278. $outputInterface
  279. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  280. <span class="phpdocumentor-element__modifiers">
  281. </span>
  282. </h4>
  283. <aside class="phpdocumentor-element-found-in">
  284. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  285. :
  286. <span class="phpdocumentor-element-found-in__line">31</span>
  287. </aside>
  288. <code class="phpdocumentor-code phpdocumentor-signature ">
  289. <span class="phpdocumentor-signature__visibility">protected</span>
  290. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  291. <span class="phpdocumentor-signature__name">$outputInterface</span>
  292. </code>
  293. <section class="phpdocumentor-description"></section>
  294. <section class="phpdocumentor-description"></section>
  295. </article>
  296. </section>
  297. <section class="phpdocumentor-methods">
  298. <h3 class="phpdocumentor-elements__header" id="methods">
  299. Methods
  300. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  301. </h3>
  302. <article
  303. class="phpdocumentor-element
  304. -method
  305. -public
  306. "
  307. >
  308. <h4 class="phpdocumentor-element__name" id="method_testInstance">
  309. testInstance()
  310. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testInstance" class="headerlink"><i class="fas fa-link"></i></a>
  311. </h4>
  312. <aside class="phpdocumentor-element-found-in">
  313. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  314. :
  315. <span class="phpdocumentor-element-found-in__line">58</span>
  316. </aside>
  317. <p class="phpdocumentor-summary">Validate the instance of the interface</p>
  318. <code class="phpdocumentor-code phpdocumentor-signature ">
  319. <span class="phpdocumentor-signature__visibility">public</span>
  320. <span class="phpdocumentor-signature__name">testInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  321. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  322. <span class="phpdocumentor-signature__response_type">void</span>
  323. &mdash;
  324. </article>
  325. <article
  326. class="phpdocumentor-element
  327. -method
  328. -public
  329. "
  330. >
  331. <h4 class="phpdocumentor-element__name" id="method_testOutputGetResource">
  332. testOutputGetResource()
  333. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_testOutputGetResource" class="headerlink"><i class="fas fa-link"></i></a>
  334. </h4>
  335. <aside class="phpdocumentor-element-found-in">
  336. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRImageTest.php"><a href="files/tests-output-qrimagetest.html"><abbr title="tests/Output/QRImageTest.php">QRImageTest.php</abbr></a></abbr>
  337. :
  338. <span class="phpdocumentor-element-found-in__line">73</span>
  339. </aside>
  340. <code class="phpdocumentor-code phpdocumentor-signature ">
  341. <span class="phpdocumentor-signature__visibility">public</span>
  342. <span class="phpdocumentor-signature__name">testOutputGetResource</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  343. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  344. <span class="phpdocumentor-signature__response_type">void</span>
  345. &mdash;
  346. </article>
  347. <article
  348. class="phpdocumentor-element
  349. -method
  350. -public
  351. "
  352. >
  353. <h4 class="phpdocumentor-element__name" id="method_testRenderImage">
  354. testRenderImage()
  355. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderImage" class="headerlink"><i class="fas fa-link"></i></a>
  356. </h4>
  357. <aside class="phpdocumentor-element-found-in">
  358. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  359. :
  360. <span class="phpdocumentor-element-found-in__line">109</span>
  361. </aside>
  362. <p class="phpdocumentor-summary">covers the built-in output modules, tests against pre-rendered data</p>
  363. <code class="phpdocumentor-code phpdocumentor-signature ">
  364. <span class="phpdocumentor-signature__visibility">public</span>
  365. <span class="phpdocumentor-signature__name">testRenderImage</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  366. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  367. <dl class="phpdocumentor-argument-list">
  368. <dt class="phpdocumentor-argument-list__entry">
  369. <span class="phpdocumentor-signature__argument__name">$type</span>
  370. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  371. </dt>
  372. <dd class="phpdocumentor-argument-list__definition">
  373. <section class="phpdocumentor-description"></section>
  374. </dd>
  375. </dl>
  376. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  377. Tags
  378. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  379. </h5>
  380. <dl class="phpdocumentor-tag-list">
  381. <dt class="phpdocumentor-tag-list__entry">
  382. <span class="phpdocumentor-tag__name">dataProvider</span>
  383. </dt>
  384. <dd class="phpdocumentor-tag-list__definition">
  385. <section class="phpdocumentor-description"><p>types</p>
  386. </section>
  387. </dd>
  388. </dl>
  389. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  390. <span class="phpdocumentor-signature__response_type">void</span>
  391. &mdash;
  392. </article>
  393. <article
  394. class="phpdocumentor-element
  395. -method
  396. -public
  397. "
  398. >
  399. <h4 class="phpdocumentor-element__name" id="method_testSaveException">
  400. testSaveException()
  401. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException" class="headerlink"><i class="fas fa-link"></i></a>
  402. </h4>
  403. <aside class="phpdocumentor-element-found-in">
  404. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  405. :
  406. <span class="phpdocumentor-element-found-in__line">65</span>
  407. </aside>
  408. <p class="phpdocumentor-summary">Tests if an exception is thrown when trying to write a cache file to an invalid destination</p>
  409. <code class="phpdocumentor-code phpdocumentor-signature ">
  410. <span class="phpdocumentor-signature__visibility">public</span>
  411. <span class="phpdocumentor-signature__name">testSaveException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  412. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  413. <span class="phpdocumentor-signature__response_type">void</span>
  414. &mdash;
  415. </article>
  416. <article
  417. class="phpdocumentor-element
  418. -method
  419. -public
  420. "
  421. >
  422. <h4 class="phpdocumentor-element__name" id="method_testSetModuleValues">
  423. testSetModuleValues()
  424. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_testSetModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  425. </h4>
  426. <aside class="phpdocumentor-element-found-in">
  427. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRImageTest.php"><a href="files/tests-output-qrimagetest.html"><abbr title="tests/Output/QRImageTest.php">QRImageTest.php</abbr></a></abbr>
  428. :
  429. <span class="phpdocumentor-element-found-in__line">56</span>
  430. </aside>
  431. <p class="phpdocumentor-summary">covers the module values settings</p>
  432. <code class="phpdocumentor-code phpdocumentor-signature ">
  433. <span class="phpdocumentor-signature__visibility">public</span>
  434. <span class="phpdocumentor-signature__name">testSetModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  435. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  436. Tags
  437. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  438. </h5>
  439. <dl class="phpdocumentor-tag-list">
  440. <dt class="phpdocumentor-tag-list__entry">
  441. <span class="phpdocumentor-tag__name">inheritDoc</span>
  442. </dt>
  443. <dd class="phpdocumentor-tag-list__definition">
  444. </dd>
  445. </dl>
  446. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  447. <span class="phpdocumentor-signature__response_type">void</span>
  448. &mdash;
  449. </article>
  450. <article
  451. class="phpdocumentor-element
  452. -method
  453. -public
  454. "
  455. >
  456. <h4 class="phpdocumentor-element__name" id="method_testStringOutput">
  457. testStringOutput()
  458. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testStringOutput" class="headerlink"><i class="fas fa-link"></i></a>
  459. </h4>
  460. <aside class="phpdocumentor-element-found-in">
  461. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  462. :
  463. <span class="phpdocumentor-element-found-in__line">94</span>
  464. </aside>
  465. <p class="phpdocumentor-summary">coverage of the built-in output modules</p>
  466. <code class="phpdocumentor-code phpdocumentor-signature ">
  467. <span class="phpdocumentor-signature__visibility">public</span>
  468. <span class="phpdocumentor-signature__name">testStringOutput</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  469. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  470. <dl class="phpdocumentor-argument-list">
  471. <dt class="phpdocumentor-argument-list__entry">
  472. <span class="phpdocumentor-signature__argument__name">$type</span>
  473. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  474. </dt>
  475. <dd class="phpdocumentor-argument-list__definition">
  476. <section class="phpdocumentor-description"></section>
  477. </dd>
  478. </dl>
  479. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  480. Tags
  481. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  482. </h5>
  483. <dl class="phpdocumentor-tag-list">
  484. <dt class="phpdocumentor-tag-list__entry">
  485. <span class="phpdocumentor-tag__name">dataProvider</span>
  486. </dt>
  487. <dd class="phpdocumentor-tag-list__definition">
  488. <section class="phpdocumentor-description"><p>types</p>
  489. </section>
  490. </dd>
  491. </dl>
  492. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  493. <span class="phpdocumentor-signature__response_type">void</span>
  494. &mdash;
  495. </article>
  496. <article
  497. class="phpdocumentor-element
  498. -method
  499. -public
  500. "
  501. >
  502. <h4 class="phpdocumentor-element__name" id="method_types">
  503. types()
  504. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_types" class="headerlink"><i class="fas fa-link"></i></a>
  505. </h4>
  506. <aside class="phpdocumentor-element-found-in">
  507. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRImageTest.php"><a href="files/tests-output-qrimagetest.html"><abbr title="tests/Output/QRImageTest.php">QRImageTest.php</abbr></a></abbr>
  508. :
  509. <span class="phpdocumentor-element-found-in__line">45</span>
  510. </aside>
  511. <code class="phpdocumentor-code phpdocumentor-signature ">
  512. <span class="phpdocumentor-signature__visibility">public</span>
  513. <span class="phpdocumentor-signature__name">types</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, string&gt;&gt;</span></code>
  514. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  515. Tags
  516. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  517. </h5>
  518. <dl class="phpdocumentor-tag-list">
  519. <dt class="phpdocumentor-tag-list__entry">
  520. <span class="phpdocumentor-tag__name">inheritDoc</span>
  521. </dt>
  522. <dd class="phpdocumentor-tag-list__definition">
  523. </dd>
  524. </dl>
  525. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  526. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, string&gt;&gt;</span>
  527. &mdash;
  528. </article>
  529. <article
  530. class="phpdocumentor-element
  531. -method
  532. -protected
  533. "
  534. >
  535. <h4 class="phpdocumentor-element__name" id="method_getOutputInterface">
  536. getOutputInterface()
  537. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_getOutputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  538. </h4>
  539. <aside class="phpdocumentor-element-found-in">
  540. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRImageTest.php"><a href="files/tests-output-qrimagetest.html"><abbr title="tests/Output/QRImageTest.php">QRImageTest.php</abbr></a></abbr>
  541. :
  542. <span class="phpdocumentor-element-found-in__line">38</span>
  543. </aside>
  544. <p class="phpdocumentor-summary">Returns a QROutputInterface instance with the given options and using $this-&gt;matrix</p>
  545. <code class="phpdocumentor-code phpdocumentor-signature ">
  546. <span class="phpdocumentor-signature__visibility">protected</span>
  547. <span class="phpdocumentor-signature__name">getOutputInterface</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span></code>
  548. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  549. <dl class="phpdocumentor-argument-list">
  550. <dt class="phpdocumentor-argument-list__entry">
  551. <span class="phpdocumentor-signature__argument__name">$options</span>
  552. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  553. </dt>
  554. <dd class="phpdocumentor-argument-list__definition">
  555. <section class="phpdocumentor-description"></section>
  556. </dd>
  557. </dl>
  558. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  559. Tags
  560. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  561. </h5>
  562. <dl class="phpdocumentor-tag-list">
  563. <dt class="phpdocumentor-tag-list__entry">
  564. <span class="phpdocumentor-tag__name">inheritDoc</span>
  565. </dt>
  566. <dd class="phpdocumentor-tag-list__definition">
  567. </dd>
  568. </dl>
  569. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  570. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  571. &mdash;
  572. </article>
  573. <article
  574. class="phpdocumentor-element
  575. -method
  576. -protected
  577. "
  578. >
  579. <h4 class="phpdocumentor-element__name" id="method_setUp">
  580. setUp()
  581. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  582. </h4>
  583. <aside class="phpdocumentor-element-found-in">
  584. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRImageTest.php"><a href="files/tests-output-qrimagetest.html"><abbr title="tests/Output/QRImageTest.php">QRImageTest.php</abbr></a></abbr>
  585. :
  586. <span class="phpdocumentor-element-found-in__line">26</span>
  587. </aside>
  588. <p class="phpdocumentor-summary">Attempts to create a directory under /.build and instances several required objects</p>
  589. <code class="phpdocumentor-code phpdocumentor-signature ">
  590. <span class="phpdocumentor-signature__visibility">protected</span>
  591. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  592. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  593. Tags
  594. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  595. </h5>
  596. <dl class="phpdocumentor-tag-list">
  597. <dt class="phpdocumentor-tag-list__entry">
  598. <span class="phpdocumentor-tag__name">inheritDoc</span>
  599. </dt>
  600. <dd class="phpdocumentor-tag-list__definition">
  601. </dd>
  602. </dl>
  603. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  604. <span class="phpdocumentor-signature__response_type">void</span>
  605. &mdash;
  606. </article>
  607. </section>
  608. <script type="text/javascript">
  609. function loadExternalCodeSnippets(line) {
  610. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  611. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  612. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  613. var language = 'php';
  614. var code = document.createElement('code');
  615. code.className = 'language-' + language;
  616. pre.textContent = '';
  617. pre.setAttribute('data-line', line)
  618. code.textContent = 'Loading…';
  619. pre.appendChild(code);
  620. var xhr = new XMLHttpRequest();
  621. xhr.open('GET', src, true);
  622. xhr.onreadystatechange = function () {
  623. if (xhr.readyState == 4) {
  624. if (xhr.status < 400 && xhr.responseText) {
  625. code.textContent = xhr.responseText;
  626. Prism.highlightElement(code);
  627. }
  628. else if (xhr.status >= 400) {
  629. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  630. }
  631. else {
  632. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  633. }
  634. }
  635. };
  636. xhr.send(null);
  637. });
  638. }
  639. var modals = document.querySelectorAll("[data-modal]");
  640. modals.forEach(function (trigger) {
  641. trigger.addEventListener("click", function (event) {
  642. //event.preventDefault();
  643. const modal = document.getElementById(trigger.dataset.modal);
  644. modal.classList.add("phpdocumentor-modal__open");
  645. loadExternalCodeSnippets(trigger.dataset.line)
  646. const exits = modal.querySelectorAll("[data-exit-button]");
  647. exits.forEach(function (exit) {
  648. exit.addEventListener("click", function (event) {
  649. event.preventDefault();
  650. modal.classList.remove("phpdocumentor-modal__open");
  651. });
  652. });
  653. });
  654. });
  655. </script>
  656. </article>
  657. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  658. <section class="phpdocumentor-search-results__dialog">
  659. <header class="phpdocumentor-search-results__header">
  660. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  661. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  662. </header>
  663. <section class="phpdocumentor-search-results__body">
  664. <ul class="phpdocumentor-search-results__entries"></ul>
  665. </section>
  666. </section>
  667. </section>
  668. </div>
  669. </div>
  670. <a href="classes/chillerlan-QRCodeTest-Output-QRImageTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  671. </main>
  672. <script>
  673. cssVars({});
  674. </script>
  675. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  676. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  677. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  678. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  679. </body>
  680. </html>