chillerlan-QRCodeTest-Output-QROutputTestAbstract.html 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  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. QROutputTestAbstract
  89. <span class="phpdocumentor-element__extends">
  90. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  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/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">27</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">Test abstract for the several (built-in) output modules,
  105. should also be used to test custom output modules</p>
  106. <h3 id="toc">
  107. Table of Contents
  108. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  109. </h3>
  110. <dl class="phpdocumentor-table-of-contents">
  111. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  112. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_builddir">$builddir</a>
  113. <span>
  114. &nbsp;: string </span>
  115. </dt>
  116. <dd></dd>
  117. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  118. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix">$matrix</a>
  119. <span>
  120. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  121. </dt>
  122. <dd></dd>
  123. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  124. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options">$options</a>
  125. <span>
  126. &nbsp;: <a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  127. </dt>
  128. <dd></dd>
  129. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  130. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface">$outputInterface</a>
  131. <span>
  132. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  133. </dt>
  134. <dd></dd>
  135. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  136. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testInstance">testInstance()</a>
  137. <span>
  138. &nbsp;: void </span>
  139. </dt>
  140. <dd>Validate the instance of the interface</dd>
  141. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  142. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderImage">testRenderImage()</a>
  143. <span>
  144. &nbsp;: void </span>
  145. </dt>
  146. <dd>covers the built-in output modules, tests against pre-rendered data</dd>
  147. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  148. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException">testSaveException()</a>
  149. <span>
  150. &nbsp;: void </span>
  151. </dt>
  152. <dd>Tests if an exception is thrown when trying to write a cache file to an invalid destination</dd>
  153. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  154. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSetModuleValues">testSetModuleValues()</a>
  155. <span>
  156. &nbsp;: void </span>
  157. </dt>
  158. <dd>covers the module values settings</dd>
  159. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  160. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testStringOutput">testStringOutput()</a>
  161. <span>
  162. &nbsp;: void </span>
  163. </dt>
  164. <dd>coverage of the built-in output modules</dd>
  165. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  166. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_types">types()</a>
  167. <span>
  168. &nbsp;: array&lt;string|int, array&lt;string|int, string&gt;&gt; </span>
  169. </dt>
  170. <dd></dd>
  171. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  172. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_getOutputInterface">getOutputInterface()</a>
  173. <span>
  174. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  175. </dt>
  176. <dd>Returns a QROutputInterface instance with the given options and using $this-&gt;matrix</dd>
  177. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  178. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_setUp">setUp()</a>
  179. <span>
  180. &nbsp;: void </span>
  181. </dt>
  182. <dd>Attempts to create a directory under /.build and instances several required objects</dd>
  183. </dl>
  184. <section class="phpdocumentor-properties">
  185. <h3 class="phpdocumentor-elements__header" id="properties">
  186. Properties
  187. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  188. </h3>
  189. <article
  190. class="
  191. phpdocumentor-element
  192. -property
  193. -protected
  194. "
  195. >
  196. <h4 class="phpdocumentor-element__name" id="property_builddir">
  197. $builddir
  198. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_builddir" class="headerlink"><i class="fas fa-link"></i></a>
  199. <span class="phpdocumentor-element__modifiers">
  200. </span>
  201. </h4>
  202. <aside class="phpdocumentor-element-found-in">
  203. <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>
  204. :
  205. <span class="phpdocumentor-element-found-in__line">33</span>
  206. </aside>
  207. <code class="phpdocumentor-code phpdocumentor-signature ">
  208. <span class="phpdocumentor-signature__visibility">protected</span>
  209. <span class="phpdocumentor-signature__type">string</span>
  210. <span class="phpdocumentor-signature__name">$builddir</span>
  211. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/../../.build/output_test&#039;</span></code>
  212. <section class="phpdocumentor-description"></section>
  213. <section class="phpdocumentor-description"></section>
  214. </article>
  215. <article
  216. class="
  217. phpdocumentor-element
  218. -property
  219. -protected
  220. "
  221. >
  222. <h4 class="phpdocumentor-element__name" id="property_matrix">
  223. $matrix
  224. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  225. <span class="phpdocumentor-element__modifiers">
  226. </span>
  227. </h4>
  228. <aside class="phpdocumentor-element-found-in">
  229. <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>
  230. :
  231. <span class="phpdocumentor-element-found-in__line">32</span>
  232. </aside>
  233. <code class="phpdocumentor-code phpdocumentor-signature ">
  234. <span class="phpdocumentor-signature__visibility">protected</span>
  235. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  236. <span class="phpdocumentor-signature__name">$matrix</span>
  237. </code>
  238. <section class="phpdocumentor-description"></section>
  239. <section class="phpdocumentor-description"></section>
  240. </article>
  241. <article
  242. class="
  243. phpdocumentor-element
  244. -property
  245. -protected
  246. "
  247. >
  248. <h4 class="phpdocumentor-element__name" id="property_options">
  249. $options
  250. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  251. <span class="phpdocumentor-element__modifiers">
  252. </span>
  253. </h4>
  254. <aside class="phpdocumentor-element-found-in">
  255. <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>
  256. :
  257. <span class="phpdocumentor-element-found-in__line">30</span>
  258. </aside>
  259. <code class="phpdocumentor-code phpdocumentor-signature ">
  260. <span class="phpdocumentor-signature__visibility">protected</span>
  261. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  262. <span class="phpdocumentor-signature__name">$options</span>
  263. </code>
  264. </article>
  265. <article
  266. class="
  267. phpdocumentor-element
  268. -property
  269. -protected
  270. "
  271. >
  272. <h4 class="phpdocumentor-element__name" id="property_outputInterface">
  273. $outputInterface
  274. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  275. <span class="phpdocumentor-element__modifiers">
  276. </span>
  277. </h4>
  278. <aside class="phpdocumentor-element-found-in">
  279. <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>
  280. :
  281. <span class="phpdocumentor-element-found-in__line">31</span>
  282. </aside>
  283. <code class="phpdocumentor-code phpdocumentor-signature ">
  284. <span class="phpdocumentor-signature__visibility">protected</span>
  285. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  286. <span class="phpdocumentor-signature__name">$outputInterface</span>
  287. </code>
  288. <section class="phpdocumentor-description"></section>
  289. <section class="phpdocumentor-description"></section>
  290. </article>
  291. </section>
  292. <section class="phpdocumentor-methods">
  293. <h3 class="phpdocumentor-elements__header" id="methods">
  294. Methods
  295. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  296. </h3>
  297. <article
  298. class="phpdocumentor-element
  299. -method
  300. -public
  301. "
  302. >
  303. <h4 class="phpdocumentor-element__name" id="method_testInstance">
  304. testInstance()
  305. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testInstance" class="headerlink"><i class="fas fa-link"></i></a>
  306. </h4>
  307. <aside class="phpdocumentor-element-found-in">
  308. <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>
  309. :
  310. <span class="phpdocumentor-element-found-in__line">58</span>
  311. </aside>
  312. <p class="phpdocumentor-summary">Validate the instance of the interface</p>
  313. <code class="phpdocumentor-code phpdocumentor-signature ">
  314. <span class="phpdocumentor-signature__visibility">public</span>
  315. <span class="phpdocumentor-signature__name">testInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  316. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  317. <span class="phpdocumentor-signature__response_type">void</span>
  318. &mdash;
  319. </article>
  320. <article
  321. class="phpdocumentor-element
  322. -method
  323. -public
  324. "
  325. >
  326. <h4 class="phpdocumentor-element__name" id="method_testRenderImage">
  327. testRenderImage()
  328. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderImage" class="headerlink"><i class="fas fa-link"></i></a>
  329. </h4>
  330. <aside class="phpdocumentor-element-found-in">
  331. <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>
  332. :
  333. <span class="phpdocumentor-element-found-in__line">109</span>
  334. </aside>
  335. <p class="phpdocumentor-summary">covers the built-in output modules, tests against pre-rendered data</p>
  336. <code class="phpdocumentor-code phpdocumentor-signature ">
  337. <span class="phpdocumentor-signature__visibility">public</span>
  338. <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>
  339. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  340. <dl class="phpdocumentor-argument-list">
  341. <dt class="phpdocumentor-argument-list__entry">
  342. <span class="phpdocumentor-signature__argument__name">$type</span>
  343. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  344. </dt>
  345. <dd class="phpdocumentor-argument-list__definition">
  346. <section class="phpdocumentor-description"></section>
  347. </dd>
  348. </dl>
  349. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  350. Tags
  351. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  352. </h5>
  353. <dl class="phpdocumentor-tag-list">
  354. <dt class="phpdocumentor-tag-list__entry">
  355. <span class="phpdocumentor-tag__name">dataProvider</span>
  356. </dt>
  357. <dd class="phpdocumentor-tag-list__definition">
  358. <section class="phpdocumentor-description"><p>types</p>
  359. </section>
  360. </dd>
  361. </dl>
  362. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  363. <span class="phpdocumentor-signature__response_type">void</span>
  364. &mdash;
  365. </article>
  366. <article
  367. class="phpdocumentor-element
  368. -method
  369. -public
  370. "
  371. >
  372. <h4 class="phpdocumentor-element__name" id="method_testSaveException">
  373. testSaveException()
  374. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException" class="headerlink"><i class="fas fa-link"></i></a>
  375. </h4>
  376. <aside class="phpdocumentor-element-found-in">
  377. <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>
  378. :
  379. <span class="phpdocumentor-element-found-in__line">65</span>
  380. </aside>
  381. <p class="phpdocumentor-summary">Tests if an exception is thrown when trying to write a cache file to an invalid destination</p>
  382. <code class="phpdocumentor-code phpdocumentor-signature ">
  383. <span class="phpdocumentor-signature__visibility">public</span>
  384. <span class="phpdocumentor-signature__name">testSaveException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  385. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  386. <span class="phpdocumentor-signature__response_type">void</span>
  387. &mdash;
  388. </article>
  389. <article
  390. class="phpdocumentor-element
  391. -method
  392. -public
  393. -abstract "
  394. >
  395. <h4 class="phpdocumentor-element__name" id="method_testSetModuleValues">
  396. testSetModuleValues()
  397. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSetModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  398. </h4>
  399. <aside class="phpdocumentor-element-found-in">
  400. <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>
  401. :
  402. <span class="phpdocumentor-element-found-in__line">77</span>
  403. </aside>
  404. <p class="phpdocumentor-summary">covers the module values settings</p>
  405. <code class="phpdocumentor-code phpdocumentor-signature ">
  406. <span class="phpdocumentor-signature__visibility">public</span>
  407. <span class="phpdocumentor-signature__abstract">abstract</span> <span class="phpdocumentor-signature__name">testSetModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  408. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  409. <span class="phpdocumentor-signature__response_type">void</span>
  410. &mdash;
  411. </article>
  412. <article
  413. class="phpdocumentor-element
  414. -method
  415. -public
  416. "
  417. >
  418. <h4 class="phpdocumentor-element__name" id="method_testStringOutput">
  419. testStringOutput()
  420. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testStringOutput" class="headerlink"><i class="fas fa-link"></i></a>
  421. </h4>
  422. <aside class="phpdocumentor-element-found-in">
  423. <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>
  424. :
  425. <span class="phpdocumentor-element-found-in__line">94</span>
  426. </aside>
  427. <p class="phpdocumentor-summary">coverage of the built-in output modules</p>
  428. <code class="phpdocumentor-code phpdocumentor-signature ">
  429. <span class="phpdocumentor-signature__visibility">public</span>
  430. <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>
  431. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  432. <dl class="phpdocumentor-argument-list">
  433. <dt class="phpdocumentor-argument-list__entry">
  434. <span class="phpdocumentor-signature__argument__name">$type</span>
  435. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  436. </dt>
  437. <dd class="phpdocumentor-argument-list__definition">
  438. <section class="phpdocumentor-description"></section>
  439. </dd>
  440. </dl>
  441. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  442. Tags
  443. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  444. </h5>
  445. <dl class="phpdocumentor-tag-list">
  446. <dt class="phpdocumentor-tag-list__entry">
  447. <span class="phpdocumentor-tag__name">dataProvider</span>
  448. </dt>
  449. <dd class="phpdocumentor-tag-list__definition">
  450. <section class="phpdocumentor-description"><p>types</p>
  451. </section>
  452. </dd>
  453. </dl>
  454. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  455. <span class="phpdocumentor-signature__response_type">void</span>
  456. &mdash;
  457. </article>
  458. <article
  459. class="phpdocumentor-element
  460. -method
  461. -public
  462. -abstract "
  463. >
  464. <h4 class="phpdocumentor-element__name" id="method_types">
  465. types()
  466. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_types" class="headerlink"><i class="fas fa-link"></i></a>
  467. </h4>
  468. <aside class="phpdocumentor-element-found-in">
  469. <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>
  470. :
  471. <span class="phpdocumentor-element-found-in__line">87</span>
  472. </aside>
  473. <code class="phpdocumentor-code phpdocumentor-signature ">
  474. <span class="phpdocumentor-signature__visibility">public</span>
  475. <span class="phpdocumentor-signature__abstract">abstract</span> <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>
  476. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  477. Tags
  478. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  479. </h5>
  480. <dl class="phpdocumentor-tag-list">
  481. <dt class="phpdocumentor-tag-list__entry">
  482. <span class="phpdocumentor-tag__name">see</span>
  483. </dt>
  484. <dd class="phpdocumentor-tag-list__definition">
  485. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCodeTest\Output\testStringOutput()">testStringOutput()</abbr></span>
  486. </dd>
  487. </dl>
  488. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  489. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, string&gt;&gt;</span>
  490. &mdash;
  491. </article>
  492. <article
  493. class="phpdocumentor-element
  494. -method
  495. -protected
  496. -abstract "
  497. >
  498. <h4 class="phpdocumentor-element__name" id="method_getOutputInterface">
  499. getOutputInterface()
  500. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_getOutputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  501. </h4>
  502. <aside class="phpdocumentor-element-found-in">
  503. <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>
  504. :
  505. <span class="phpdocumentor-element-found-in__line">53</span>
  506. </aside>
  507. <p class="phpdocumentor-summary">Returns a QROutputInterface instance with the given options and using $this-&gt;matrix</p>
  508. <code class="phpdocumentor-code phpdocumentor-signature ">
  509. <span class="phpdocumentor-signature__visibility">protected</span>
  510. <span class="phpdocumentor-signature__abstract">abstract</span> <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>
  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">$options</span>
  515. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  516. </dt>
  517. <dd class="phpdocumentor-argument-list__definition">
  518. <section class="phpdocumentor-description"></section>
  519. </dd>
  520. </dl>
  521. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  522. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  523. &mdash;
  524. </article>
  525. <article
  526. class="phpdocumentor-element
  527. -method
  528. -protected
  529. "
  530. >
  531. <h4 class="phpdocumentor-element__name" id="method_setUp">
  532. setUp()
  533. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  534. </h4>
  535. <aside class="phpdocumentor-element-found-in">
  536. <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>
  537. :
  538. <span class="phpdocumentor-element-found-in__line">38</span>
  539. </aside>
  540. <p class="phpdocumentor-summary">Attempts to create a directory under /.build and instances several required objects</p>
  541. <code class="phpdocumentor-code phpdocumentor-signature ">
  542. <span class="phpdocumentor-signature__visibility">protected</span>
  543. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  544. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  545. <span class="phpdocumentor-signature__response_type">void</span>
  546. &mdash;
  547. </article>
  548. </section>
  549. <script type="text/javascript">
  550. function loadExternalCodeSnippets(line) {
  551. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  552. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  553. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  554. var language = 'php';
  555. var code = document.createElement('code');
  556. code.className = 'language-' + language;
  557. pre.textContent = '';
  558. pre.setAttribute('data-line', line)
  559. code.textContent = 'Loading…';
  560. pre.appendChild(code);
  561. var xhr = new XMLHttpRequest();
  562. xhr.open('GET', src, true);
  563. xhr.onreadystatechange = function () {
  564. if (xhr.readyState == 4) {
  565. if (xhr.status < 400 && xhr.responseText) {
  566. code.textContent = xhr.responseText;
  567. Prism.highlightElement(code);
  568. }
  569. else if (xhr.status >= 400) {
  570. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  571. }
  572. else {
  573. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  574. }
  575. }
  576. };
  577. xhr.send(null);
  578. });
  579. }
  580. var modals = document.querySelectorAll("[data-modal]");
  581. modals.forEach(function (trigger) {
  582. trigger.addEventListener("click", function (event) {
  583. //event.preventDefault();
  584. const modal = document.getElementById(trigger.dataset.modal);
  585. modal.classList.add("phpdocumentor-modal__open");
  586. loadExternalCodeSnippets(trigger.dataset.line)
  587. const exits = modal.querySelectorAll("[data-exit-button]");
  588. exits.forEach(function (exit) {
  589. exit.addEventListener("click", function (event) {
  590. event.preventDefault();
  591. modal.classList.remove("phpdocumentor-modal__open");
  592. });
  593. });
  594. });
  595. });
  596. </script>
  597. </article>
  598. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  599. <section class="phpdocumentor-search-results__dialog">
  600. <header class="phpdocumentor-search-results__header">
  601. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  602. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  603. </header>
  604. <section class="phpdocumentor-search-results__body">
  605. <ul class="phpdocumentor-search-results__entries"></ul>
  606. </section>
  607. </section>
  608. </section>
  609. </div>
  610. </div>
  611. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  612. </main>
  613. <script>
  614. cssVars({});
  615. </script>
  616. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  617. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  618. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  619. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  620. </body>
  621. </html>