chillerlan-QRCodeTest-Output-QRMarkupTest.html 38 KB

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