chillerlan-QRCodeTest-Output-QRStringJSONTest.html 59 KB

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