chillerlan-QRCodeTest-Output-QRStringJSONTest.html 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  111. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-output.html">Output</a></li>
  112. </ul>
  113. <article class="phpdocumentor-element -class">
  114. <h2 class="phpdocumentor-content__title">
  115. QRStringJSONTest
  116. <span class="phpdocumentor-element__extends">
  117. extends <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Output\QROutputTestAbstract">QROutputTestAbstract</abbr></a>
  118. </span>
  119. <div class="phpdocumentor-element__package">
  120. in package
  121. <ul class="phpdocumentor-breadcrumbs">
  122. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  123. </ul>
  124. </div>
  125. <span class="phpdocumentor-element__extends">
  126. uses
  127. <a href="classes/chillerlan-QRCodeTest-Output-CssColorModuleValueProviderTrait.html"><abbr title="\chillerlan\QRCodeTest\Output\CssColorModuleValueProviderTrait">CssColorModuleValueProviderTrait</abbr></a> </span>
  128. </h2>
  129. <div class="phpdocumentor-label-line">
  130. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  131. </div>
  132. <aside class="phpdocumentor-element-found-in">
  133. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRStringJSONTest.php"><a href="files/tests-output-qrstringjsontest.html"><abbr title="tests/Output/QRStringJSONTest.php">QRStringJSONTest.php</abbr></a></abbr>
  134. :
  135. <span class="phpdocumentor-element-found-in__line">19</span>
  136. </aside>
  137. <p class="phpdocumentor-summary">Test abstract for the several (built-in) output modules,
  138. should also be used to test custom output modules</p>
  139. <h3 id="toc">
  140. Table of Contents
  141. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  142. </h3>
  143. <h4 id="toc-constants">
  144. Constants
  145. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  146. </h4>
  147. <dl class="phpdocumentor-table-of-contents">
  148. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  149. <a class="" href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#constant_buildDir">buildDir</a>
  150. <span>
  151. &nbsp;= &#039;output-test&#039; </span>
  152. </dt>
  153. </dl>
  154. <h4 id="toc-properties">
  155. Properties
  156. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  157. </h4>
  158. <dl class="phpdocumentor-table-of-contents">
  159. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  160. <a class="" href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix">$matrix</a>
  161. <span>
  162. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  163. </dt>
  164. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  165. <a class="" href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options">$options</a>
  166. <span>
  167. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  168. </dt>
  169. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  170. <a class="" href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface">$outputInterface</a>
  171. <span>
  172. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  173. </dt>
  174. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  175. <a class="" href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#property__buildDir">$_buildDir</a>
  176. <span>
  177. &nbsp;: string </span>
  178. </dt>
  179. </dl>
  180. <h4 id="toc-methods">
  181. Methods
  182. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  183. </h4>
  184. <dl class="phpdocumentor-table-of-contents">
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a class="" href="classes/chillerlan-QRCodeTest-Output-CssColorModuleValueProviderTrait.html#method_moduleValueProvider">moduleValueProvider()</a>
  187. <span>
  188. &nbsp;: array&lt;string|int, mixed&gt; </span>
  189. </dt>
  190. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  191. <a class="" href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderToCacheFile">testRenderToCacheFile()</a>
  192. <span>
  193. &nbsp;: void </span>
  194. </dt>
  195. <dd>coverage of the built-in output modules</dd>
  196. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  197. <a class="" href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException">testSaveException()</a>
  198. <span>
  199. &nbsp;: void </span>
  200. </dt>
  201. <dd>Tests if an exception is thrown when trying to write a cache file to an invalid destination</dd>
  202. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  203. <a class="" href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#method_testSetModuleValues">testSetModuleValues()</a>
  204. <span>
  205. &nbsp;: void </span>
  206. </dt>
  207. <dd>covers the module values settings</dd>
  208. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  209. <a class="" href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues">testValidateModuleValues()</a>
  210. <span>
  211. &nbsp;: void </span>
  212. </dt>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  214. <a class="" href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_createBuildDir">createBuildDir()</a>
  215. <span>
  216. &nbsp;: void </span>
  217. </dt>
  218. <dd>attempts to create the build dir</dd>
  219. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  220. <a class="" href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildDir">getBuildDir()</a>
  221. <span>
  222. &nbsp;: string </span>
  223. </dt>
  224. <dd>returns the full (real) path to the given build path</dd>
  225. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  226. <a class="" href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFileContent">getBuildFileContent()</a>
  227. <span>
  228. &nbsp;: string </span>
  229. </dt>
  230. <dd>returns the contents of the given build file</dd>
  231. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  232. <a class="" href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFilePath">getBuildFilePath()</a>
  233. <span>
  234. &nbsp;: string </span>
  235. </dt>
  236. <dd>returns the full (real) path to the given build file</dd>
  237. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  238. <a class="" href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildPath">getBuildPath()</a>
  239. <span>
  240. &nbsp;: string </span>
  241. </dt>
  242. <dd>returns the full raw path to the build dir</dd>
  243. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  244. <a class="" href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#method_getOutputInterface">getOutputInterface()</a>
  245. <span>
  246. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  247. </dt>
  248. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  249. <a class="" href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_setUp">setUp()</a>
  250. <span>
  251. &nbsp;: void </span>
  252. </dt>
  253. <dd>Attempts to create a directory under /.build and instances several required objects</dd>
  254. </dl>
  255. <section class="phpdocumentor-constants">
  256. <h3 class="phpdocumentor-elements__header" id="constants">
  257. Constants
  258. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  259. </h3>
  260. <article class="phpdocumentor-element -constant -protected ">
  261. <h4 class="phpdocumentor-element__name" id="constant_buildDir">
  262. buildDir
  263. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#constant_buildDir" class="headerlink"><i class="fas fa-link"></i></a>
  264. </h4>
  265. <aside class="phpdocumentor-element-found-in">
  266. <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>
  267. :
  268. <span class="phpdocumentor-element-found-in__line">34</span>
  269. </aside>
  270. <code class="phpdocumentor-signature phpdocumentor-code ">
  271. <span class="phpdocumentor-signature__visibility">protected</span>
  272. <span class="phpdocumentor-signature__type">mixed</span>
  273. <span class="phpdocumentor-signature__name">buildDir</span>
  274. = <span class="phpdocumentor-signature__default-value">&#039;output-test&#039;</span>
  275. </code>
  276. </article>
  277. </section>
  278. <section class="phpdocumentor-properties">
  279. <h3 class="phpdocumentor-elements__header" id="properties">
  280. Properties
  281. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  282. </h3>
  283. <article
  284. class="
  285. phpdocumentor-element
  286. -property
  287. -protected
  288. "
  289. >
  290. <h4 class="phpdocumentor-element__name" id="property_matrix">
  291. $matrix
  292. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  293. <span class="phpdocumentor-element__modifiers">
  294. </span>
  295. </h4>
  296. <aside class="phpdocumentor-element-found-in">
  297. <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>
  298. :
  299. <span class="phpdocumentor-element-found-in__line">32</span>
  300. </aside>
  301. <code class="phpdocumentor-code phpdocumentor-signature ">
  302. <span class="phpdocumentor-signature__visibility">protected</span>
  303. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  304. <span class="phpdocumentor-signature__name">$matrix</span>
  305. </code>
  306. </article>
  307. <article
  308. class="
  309. phpdocumentor-element
  310. -property
  311. -protected
  312. "
  313. >
  314. <h4 class="phpdocumentor-element__name" id="property_options">
  315. $options
  316. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  317. <span class="phpdocumentor-element__modifiers">
  318. </span>
  319. </h4>
  320. <aside class="phpdocumentor-element-found-in">
  321. <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>
  322. :
  323. <span class="phpdocumentor-element-found-in__line">30</span>
  324. </aside>
  325. <code class="phpdocumentor-code phpdocumentor-signature ">
  326. <span class="phpdocumentor-signature__visibility">protected</span>
  327. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  328. <span class="phpdocumentor-signature__name">$options</span>
  329. </code>
  330. </article>
  331. <article
  332. class="
  333. phpdocumentor-element
  334. -property
  335. -protected
  336. "
  337. >
  338. <h4 class="phpdocumentor-element__name" id="property_outputInterface">
  339. $outputInterface
  340. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  341. <span class="phpdocumentor-element__modifiers">
  342. </span>
  343. </h4>
  344. <aside class="phpdocumentor-element-found-in">
  345. <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>
  346. :
  347. <span class="phpdocumentor-element-found-in__line">31</span>
  348. </aside>
  349. <code class="phpdocumentor-code phpdocumentor-signature ">
  350. <span class="phpdocumentor-signature__visibility">protected</span>
  351. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  352. <span class="phpdocumentor-signature__name">$outputInterface</span>
  353. </code>
  354. </article>
  355. <article
  356. class="
  357. phpdocumentor-element
  358. -property
  359. -private
  360. "
  361. >
  362. <h4 class="phpdocumentor-element__name" id="property__buildDir">
  363. $_buildDir
  364. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#property__buildDir" class="headerlink"><i class="fas fa-link"></i></a>
  365. <span class="phpdocumentor-element__modifiers">
  366. </span>
  367. </h4>
  368. <aside class="phpdocumentor-element-found-in">
  369. <abbr class="phpdocumentor-element-found-in__file" title="tests/BuildDirTrait.php"><a href="files/tests-builddirtrait.html"><abbr title="tests/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  370. :
  371. <span class="phpdocumentor-element-found-in__line">22</span>
  372. </aside>
  373. <code class="phpdocumentor-code phpdocumentor-signature ">
  374. <span class="phpdocumentor-signature__visibility">private</span>
  375. <span class="phpdocumentor-signature__type">string</span>
  376. <span class="phpdocumentor-signature__name">$_buildDir</span>
  377. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/../.build/&#039;</span></code>
  378. </article>
  379. </section>
  380. <section class="phpdocumentor-methods">
  381. <h3 class="phpdocumentor-elements__header" id="methods">
  382. Methods
  383. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  384. </h3>
  385. <article
  386. class="phpdocumentor-element
  387. -method
  388. -public
  389. -static "
  390. >
  391. <h4 class="phpdocumentor-element__name" id="method_moduleValueProvider">
  392. moduleValueProvider()
  393. <a href="classes/chillerlan-QRCodeTest-Output-CssColorModuleValueProviderTrait.html#method_moduleValueProvider" class="headerlink"><i class="fas fa-link"></i></a>
  394. </h4>
  395. <aside class="phpdocumentor-element-found-in">
  396. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/CssColorModuleValueProviderTrait.php"><a href="files/tests-output-csscolormodulevalueprovidertrait.html"><abbr title="tests/Output/CssColorModuleValueProviderTrait.php">CssColorModuleValueProviderTrait.php</abbr></a></abbr>
  397. :
  398. <span class="phpdocumentor-element-found-in__line">21</span>
  399. </aside>
  400. <code class="phpdocumentor-code phpdocumentor-signature ">
  401. <span class="phpdocumentor-signature__visibility">public</span>
  402. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">moduleValueProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  403. <div class="phpdocumentor-label-line">
  404. </div>
  405. <section>
  406. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  407. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  408. </section>
  409. </article>
  410. <article
  411. class="phpdocumentor-element
  412. -method
  413. -public
  414. "
  415. >
  416. <h4 class="phpdocumentor-element__name" id="method_testRenderToCacheFile">
  417. testRenderToCacheFile()
  418. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderToCacheFile" class="headerlink"><i class="fas fa-link"></i></a>
  419. </h4>
  420. <aside class="phpdocumentor-element-found-in">
  421. <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>
  422. :
  423. <span class="phpdocumentor-element-found-in__line">84</span>
  424. </aside>
  425. <p class="phpdocumentor-summary">coverage of the built-in output modules</p>
  426. <code class="phpdocumentor-code phpdocumentor-signature ">
  427. <span class="phpdocumentor-signature__visibility">public</span>
  428. <span class="phpdocumentor-signature__name">testRenderToCacheFile</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  429. <div class="phpdocumentor-label-line">
  430. </div>
  431. </article>
  432. <article
  433. class="phpdocumentor-element
  434. -method
  435. -public
  436. "
  437. >
  438. <h4 class="phpdocumentor-element__name" id="method_testSaveException">
  439. testSaveException()
  440. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException" class="headerlink"><i class="fas fa-link"></i></a>
  441. </h4>
  442. <aside class="phpdocumentor-element-found-in">
  443. <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>
  444. :
  445. <span class="phpdocumentor-element-found-in__line">55</span>
  446. </aside>
  447. <p class="phpdocumentor-summary">Tests if an exception is thrown when trying to write a cache file to an invalid destination</p>
  448. <code class="phpdocumentor-code phpdocumentor-signature ">
  449. <span class="phpdocumentor-signature__visibility">public</span>
  450. <span class="phpdocumentor-signature__name">testSaveException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  451. <div class="phpdocumentor-label-line">
  452. </div>
  453. </article>
  454. <article
  455. class="phpdocumentor-element
  456. -method
  457. -public
  458. "
  459. >
  460. <h4 class="phpdocumentor-element__name" id="method_testSetModuleValues">
  461. testSetModuleValues()
  462. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#method_testSetModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  463. </h4>
  464. <aside class="phpdocumentor-element-found-in">
  465. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRStringJSONTest.php"><a href="files/tests-output-qrstringjsontest.html"><abbr title="tests/Output/QRStringJSONTest.php">QRStringJSONTest.php</abbr></a></abbr>
  466. :
  467. <span class="phpdocumentor-element-found-in__line">29</span>
  468. </aside>
  469. <p class="phpdocumentor-summary">covers the module values settings</p>
  470. <code class="phpdocumentor-code phpdocumentor-signature ">
  471. <span class="phpdocumentor-signature__visibility">public</span>
  472. <span class="phpdocumentor-signature__name">testSetModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  473. <div class="phpdocumentor-label-line">
  474. </div>
  475. </article>
  476. <article
  477. class="phpdocumentor-element
  478. -method
  479. -public
  480. "
  481. >
  482. <h4 class="phpdocumentor-element__name" id="method_testValidateModuleValues">
  483. testValidateModuleValues()
  484. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  485. </h4>
  486. <aside class="phpdocumentor-element-found-in">
  487. <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>
  488. :
  489. <span class="phpdocumentor-element-found-in__line">67</span>
  490. </aside>
  491. <code class="phpdocumentor-code phpdocumentor-signature ">
  492. <span class="phpdocumentor-signature__visibility">public</span>
  493. <span class="phpdocumentor-signature__name">testValidateModuleValues</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  494. <div class="phpdocumentor-label-line">
  495. </div>
  496. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  497. <dl class="phpdocumentor-argument-list">
  498. <dt class="phpdocumentor-argument-list__entry">
  499. <span class="phpdocumentor-signature__argument__name">$value</span>
  500. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  501. </dt>
  502. <dd class="phpdocumentor-argument-list__definition">
  503. </dd>
  504. <dt class="phpdocumentor-argument-list__entry">
  505. <span class="phpdocumentor-signature__argument__name">$expected</span>
  506. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  507. </dt>
  508. <dd class="phpdocumentor-argument-list__definition">
  509. </dd>
  510. </dl>
  511. <section class="phpdocumentor-attributes">
  512. <h5 class="phpdocumentor-elements__header" id="attributes">
  513. Attributes <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  514. </h5>
  515. <dl class="phpdocumentor-argument-list">
  516. <dt class="phpdocumentor-argument-list__entry">
  517. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  518. </dt>
  519. <dd class="phpdocumentor-argument-list__entry">
  520. &#039;moduleValueProvider&#039;
  521. </dd>
  522. </dl>
  523. </section>
  524. </article>
  525. <article
  526. class="phpdocumentor-element
  527. -method
  528. -protected
  529. "
  530. >
  531. <h4 class="phpdocumentor-element__name" id="method_createBuildDir">
  532. createBuildDir()
  533. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_createBuildDir" 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/BuildDirTrait.php"><a href="files/tests-builddirtrait.html"><abbr title="tests/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  537. :
  538. <span class="phpdocumentor-element-found-in__line">36</span>
  539. </aside>
  540. <p class="phpdocumentor-summary">attempts to create the build dir</p>
  541. <code class="phpdocumentor-code phpdocumentor-signature ">
  542. <span class="phpdocumentor-signature__visibility">protected</span>
  543. <span class="phpdocumentor-signature__name">createBuildDir</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$subPath</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  544. <div class="phpdocumentor-label-line">
  545. </div>
  546. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  547. <dl class="phpdocumentor-argument-list">
  548. <dt class="phpdocumentor-argument-list__entry">
  549. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  550. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  551. </dt>
  552. <dd class="phpdocumentor-argument-list__definition">
  553. </dd>
  554. </dl>
  555. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  556. Tags
  557. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_createBuildDir#tags" class="headerlink"><i class="fas fa-link"></i></a>
  558. </h5>
  559. <dl class="phpdocumentor-tag-list">
  560. <dt class="phpdocumentor-tag-list__entry">
  561. <span class="phpdocumentor-tag__name">throws</span>
  562. </dt>
  563. <dd class="phpdocumentor-tag-list__definition">
  564. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  565. </dd>
  566. </dl>
  567. </article>
  568. <article
  569. class="phpdocumentor-element
  570. -method
  571. -protected
  572. "
  573. >
  574. <h4 class="phpdocumentor-element__name" id="method_getBuildDir">
  575. getBuildDir()
  576. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildDir" class="headerlink"><i class="fas fa-link"></i></a>
  577. </h4>
  578. <aside class="phpdocumentor-element-found-in">
  579. <abbr class="phpdocumentor-element-found-in__file" title="tests/BuildDirTrait.php"><a href="files/tests-builddirtrait.html"><abbr title="tests/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  580. :
  581. <span class="phpdocumentor-element-found-in__line">54</span>
  582. </aside>
  583. <p class="phpdocumentor-summary">returns the full (real) path to the given build path</p>
  584. <code class="phpdocumentor-code phpdocumentor-signature ">
  585. <span class="phpdocumentor-signature__visibility">protected</span>
  586. <span class="phpdocumentor-signature__name">getBuildDir</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$subPath</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  587. <div class="phpdocumentor-label-line">
  588. </div>
  589. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  590. <dl class="phpdocumentor-argument-list">
  591. <dt class="phpdocumentor-argument-list__entry">
  592. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  593. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  594. = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span> </dt>
  595. <dd class="phpdocumentor-argument-list__definition">
  596. </dd>
  597. </dl>
  598. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  599. Tags
  600. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildDir#tags" class="headerlink"><i class="fas fa-link"></i></a>
  601. </h5>
  602. <dl class="phpdocumentor-tag-list">
  603. <dt class="phpdocumentor-tag-list__entry">
  604. <span class="phpdocumentor-tag__name">throws</span>
  605. </dt>
  606. <dd class="phpdocumentor-tag-list__definition">
  607. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  608. </dd>
  609. </dl>
  610. <section>
  611. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  612. <span class="phpdocumentor-signature__response_type">string</span>
  613. </section>
  614. </article>
  615. <article
  616. class="phpdocumentor-element
  617. -method
  618. -protected
  619. "
  620. >
  621. <h4 class="phpdocumentor-element__name" id="method_getBuildFileContent">
  622. getBuildFileContent()
  623. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFileContent" class="headerlink"><i class="fas fa-link"></i></a>
  624. </h4>
  625. <aside class="phpdocumentor-element-found-in">
  626. <abbr class="phpdocumentor-element-found-in__file" title="tests/BuildDirTrait.php"><a href="files/tests-builddirtrait.html"><abbr title="tests/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  627. :
  628. <span class="phpdocumentor-element-found-in__line">88</span>
  629. </aside>
  630. <p class="phpdocumentor-summary">returns the contents of the given build file</p>
  631. <code class="phpdocumentor-code phpdocumentor-signature ">
  632. <span class="phpdocumentor-signature__visibility">protected</span>
  633. <span class="phpdocumentor-signature__name">getBuildFileContent</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fileSubPath</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  634. <div class="phpdocumentor-label-line">
  635. </div>
  636. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  637. <dl class="phpdocumentor-argument-list">
  638. <dt class="phpdocumentor-argument-list__entry">
  639. <span class="phpdocumentor-signature__argument__name">$fileSubPath</span>
  640. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  641. </dt>
  642. <dd class="phpdocumentor-argument-list__definition">
  643. </dd>
  644. </dl>
  645. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  646. Tags
  647. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFileContent#tags" class="headerlink"><i class="fas fa-link"></i></a>
  648. </h5>
  649. <dl class="phpdocumentor-tag-list">
  650. <dt class="phpdocumentor-tag-list__entry">
  651. <span class="phpdocumentor-tag__name">throws</span>
  652. </dt>
  653. <dd class="phpdocumentor-tag-list__definition">
  654. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  655. </dd>
  656. </dl>
  657. <section>
  658. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  659. <span class="phpdocumentor-signature__response_type">string</span>
  660. </section>
  661. </article>
  662. <article
  663. class="phpdocumentor-element
  664. -method
  665. -protected
  666. "
  667. >
  668. <h4 class="phpdocumentor-element__name" id="method_getBuildFilePath">
  669. getBuildFilePath()
  670. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFilePath" class="headerlink"><i class="fas fa-link"></i></a>
  671. </h4>
  672. <aside class="phpdocumentor-element-found-in">
  673. <abbr class="phpdocumentor-element-found-in__file" title="tests/BuildDirTrait.php"><a href="files/tests-builddirtrait.html"><abbr title="tests/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  674. :
  675. <span class="phpdocumentor-element-found-in__line">69</span>
  676. </aside>
  677. <p class="phpdocumentor-summary">returns the full (real) path to the given build file</p>
  678. <code class="phpdocumentor-code phpdocumentor-signature ">
  679. <span class="phpdocumentor-signature__visibility">protected</span>
  680. <span class="phpdocumentor-signature__name">getBuildFilePath</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fileSubPath</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  681. <div class="phpdocumentor-label-line">
  682. </div>
  683. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  684. <dl class="phpdocumentor-argument-list">
  685. <dt class="phpdocumentor-argument-list__entry">
  686. <span class="phpdocumentor-signature__argument__name">$fileSubPath</span>
  687. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  688. </dt>
  689. <dd class="phpdocumentor-argument-list__definition">
  690. </dd>
  691. </dl>
  692. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  693. Tags
  694. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFilePath#tags" class="headerlink"><i class="fas fa-link"></i></a>
  695. </h5>
  696. <dl class="phpdocumentor-tag-list">
  697. <dt class="phpdocumentor-tag-list__entry">
  698. <span class="phpdocumentor-tag__name">throws</span>
  699. </dt>
  700. <dd class="phpdocumentor-tag-list__definition">
  701. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  702. </dd>
  703. </dl>
  704. <section>
  705. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  706. <span class="phpdocumentor-signature__response_type">string</span>
  707. </section>
  708. </article>
  709. <article
  710. class="phpdocumentor-element
  711. -method
  712. -protected
  713. "
  714. >
  715. <h4 class="phpdocumentor-element__name" id="method_getBuildPath">
  716. getBuildPath()
  717. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildPath" class="headerlink"><i class="fas fa-link"></i></a>
  718. </h4>
  719. <aside class="phpdocumentor-element-found-in">
  720. <abbr class="phpdocumentor-element-found-in__file" title="tests/BuildDirTrait.php"><a href="files/tests-builddirtrait.html"><abbr title="tests/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  721. :
  722. <span class="phpdocumentor-element-found-in__line">27</span>
  723. </aside>
  724. <p class="phpdocumentor-summary">returns the full raw path to the build dir</p>
  725. <code class="phpdocumentor-code phpdocumentor-signature ">
  726. <span class="phpdocumentor-signature__visibility">protected</span>
  727. <span class="phpdocumentor-signature__name">getBuildPath</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$subPath</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  728. <div class="phpdocumentor-label-line">
  729. </div>
  730. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  731. <dl class="phpdocumentor-argument-list">
  732. <dt class="phpdocumentor-argument-list__entry">
  733. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  734. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  735. </dt>
  736. <dd class="phpdocumentor-argument-list__definition">
  737. </dd>
  738. </dl>
  739. <section>
  740. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  741. <span class="phpdocumentor-signature__response_type">string</span>
  742. </section>
  743. </article>
  744. <article
  745. class="phpdocumentor-element
  746. -method
  747. -protected
  748. "
  749. >
  750. <h4 class="phpdocumentor-element__name" id="method_getOutputInterface">
  751. getOutputInterface()
  752. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#method_getOutputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  753. </h4>
  754. <aside class="phpdocumentor-element-found-in">
  755. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRStringJSONTest.php"><a href="files/tests-output-qrstringjsontest.html"><abbr title="tests/Output/QRStringJSONTest.php">QRStringJSONTest.php</abbr></a></abbr>
  756. :
  757. <span class="phpdocumentor-element-found-in__line">22</span>
  758. </aside>
  759. <code class="phpdocumentor-code phpdocumentor-signature ">
  760. <span class="phpdocumentor-signature__visibility">protected</span>
  761. <span class="phpdocumentor-signature__name">getOutputInterface</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<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 class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span></code>
  762. <div class="phpdocumentor-label-line">
  763. </div>
  764. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  765. <dl class="phpdocumentor-argument-list">
  766. <dt class="phpdocumentor-argument-list__entry">
  767. <span class="phpdocumentor-signature__argument__name">$options</span>
  768. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  769. </dt>
  770. <dd class="phpdocumentor-argument-list__definition">
  771. </dd>
  772. <dt class="phpdocumentor-argument-list__entry">
  773. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  774. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  775. </dt>
  776. <dd class="phpdocumentor-argument-list__definition">
  777. </dd>
  778. </dl>
  779. <section>
  780. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  781. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  782. </section>
  783. </article>
  784. <article
  785. class="phpdocumentor-element
  786. -method
  787. -protected
  788. "
  789. >
  790. <h4 class="phpdocumentor-element__name" id="method_setUp">
  791. setUp()
  792. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  793. </h4>
  794. <aside class="phpdocumentor-element-found-in">
  795. <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>
  796. :
  797. <span class="phpdocumentor-element-found-in__line">39</span>
  798. </aside>
  799. <p class="phpdocumentor-summary">Attempts to create a directory under /.build and instances several required objects</p>
  800. <code class="phpdocumentor-code phpdocumentor-signature ">
  801. <span class="phpdocumentor-signature__visibility">protected</span>
  802. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  803. <div class="phpdocumentor-label-line">
  804. </div>
  805. </article>
  806. </section>
  807. <div class="phpdocumentor-modal" id="source-view">
  808. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  809. <div class="phpdocumentor-modal-container">
  810. <div class="phpdocumentor-modal-content">
  811. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Output/QRStringJSONTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  812. </div>
  813. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  814. </div>
  815. </div>
  816. <script type="text/javascript">
  817. (function () {
  818. function loadExternalCodeSnippet(el, url, line) {
  819. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  820. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  821. const language = 'php';
  822. const code = document.createElement('code');
  823. code.className = 'language-' + language;
  824. pre.textContent = '';
  825. pre.setAttribute('data-line', line)
  826. code.textContent = 'Loading…';
  827. pre.appendChild(code);
  828. var xhr = new XMLHttpRequest();
  829. xhr.open('GET', src, true);
  830. xhr.onreadystatechange = function () {
  831. if (xhr.readyState !== 4) {
  832. return;
  833. }
  834. if (xhr.status < 400 && xhr.responseText) {
  835. code.textContent = xhr.responseText;
  836. Prism.highlightElement(code);
  837. d=document.getElementsByClassName("line-numbers");
  838. d[0].scrollTop = d[0].children[1].offsetTop;
  839. return;
  840. }
  841. if (xhr.status === 404) {
  842. code.textContent = '✖ Error: File could not be found';
  843. return;
  844. }
  845. if (xhr.status >= 400) {
  846. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  847. return;
  848. }
  849. code.textContent = '✖ Error: An unknown error occurred';
  850. };
  851. xhr.send(null);
  852. });
  853. }
  854. const modalButtons = document.querySelectorAll("[data-modal]");
  855. const openedAsLocalFile = window.location.protocol === 'file:';
  856. if (modalButtons.length > 0 && openedAsLocalFile) {
  857. console.warn(
  858. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  859. 'browsers block XHR requests when a page is opened this way'
  860. );
  861. }
  862. modalButtons.forEach(function (trigger) {
  863. if (openedAsLocalFile) {
  864. trigger.setAttribute("hidden", "hidden");
  865. }
  866. trigger.addEventListener("click", function (event) {
  867. event.preventDefault();
  868. const modal = document.getElementById(trigger.dataset.modal);
  869. if (!modal) {
  870. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  871. return;
  872. }
  873. modal.classList.add("phpdocumentor-modal__open");
  874. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  875. const exits = modal.querySelectorAll("[data-exit-button]");
  876. exits.forEach(function (exit) {
  877. exit.addEventListener("click", function (event) {
  878. event.preventDefault();
  879. modal.classList.remove("phpdocumentor-modal__open");
  880. });
  881. });
  882. });
  883. });
  884. })();
  885. </script>
  886. </article>
  887. </section>
  888. <section class="phpdocumentor-on-this-page__sidebar">
  889. <section class="phpdocumentor-on-this-page__content">
  890. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  891. <ul class="phpdocumentor-list -clean">
  892. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  893. <li>
  894. <ul class="phpdocumentor-list -clean">
  895. <li><a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#toc-constants">Constants</a></li>
  896. <li><a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#toc-properties">Properties</a></li>
  897. <li><a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#toc-methods">Methods</a></li>
  898. </ul>
  899. </li>
  900. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  901. <li>
  902. <ul class="phpdocumentor-list -clean">
  903. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#constant_buildDir">buildDir</a></li>
  904. </ul>
  905. </li>
  906. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  907. <li>
  908. <ul class="phpdocumentor-list -clean">
  909. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix">$matrix</a></li>
  910. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options">$options</a></li>
  911. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface">$outputInterface</a></li>
  912. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#property__buildDir">$_buildDir</a></li>
  913. </ul>
  914. </li>
  915. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  916. <li>
  917. <ul class="phpdocumentor-list -clean">
  918. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-CssColorModuleValueProviderTrait.html#method_moduleValueProvider">moduleValueProvider()</a></li>
  919. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderToCacheFile">testRenderToCacheFile()</a></li>
  920. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException">testSaveException()</a></li>
  921. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#method_testSetModuleValues">testSetModuleValues()</a></li>
  922. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues">testValidateModuleValues()</a></li>
  923. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_createBuildDir">createBuildDir()</a></li>
  924. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildDir">getBuildDir()</a></li>
  925. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFileContent">getBuildFileContent()</a></li>
  926. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFilePath">getBuildFilePath()</a></li>
  927. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildPath">getBuildPath()</a></li>
  928. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#method_getOutputInterface">getOutputInterface()</a></li>
  929. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_setUp">setUp()</a></li>
  930. </ul>
  931. </li>
  932. </ul>
  933. </section>
  934. </section>
  935. </div>
  936. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  937. <section class="phpdocumentor-search-results__dialog">
  938. <header class="phpdocumentor-search-results__header">
  939. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  940. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  941. </header>
  942. <section class="phpdocumentor-search-results__body">
  943. <ul class="phpdocumentor-search-results__entries"></ul>
  944. </section>
  945. </section>
  946. </section>
  947. </div>
  948. <a href="classes/chillerlan-QRCodeTest-Output-QRStringJSONTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  949. </main>
  950. <script>
  951. cssVars({});
  952. </script>
  953. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  954. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  955. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  956. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  957. </body>
  958. </html>