chillerlan-QRCodeTest-Output-QRFpdfTest.html 61 KB

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