chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345
  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. QRGdImageBMPTest
  119. <span class="phpdocumentor-element__extends">
  120. extends <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Output\QRGdImageTestAbstract">QRGdImageTestAbstract</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. </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/QRGdImageBMPTest.php"><a href="files/tests-output-qrgdimagebmptest.html"><abbr title="tests/Output/QRGdImageBMPTest.php">QRGdImageBMPTest.php</abbr></a></abbr>
  134. :
  135. <span class="phpdocumentor-element-found-in__line">21</span>
  136. </aside>
  137. <p class="phpdocumentor-summary">Tests the QRGdImage output module</p>
  138. <h3 id="toc">
  139. Table of Contents
  140. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.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-QRGdImageBMPTest.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-QRGdImageBMPTest.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. </dl>
  174. <h4 id="toc-methods">
  175. Methods
  176. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  177. </h4>
  178. <dl class="phpdocumentor-table-of-contents">
  179. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  180. <a class="" href="classes/chillerlan-QRCodeTest-Output-RGBArrayModuleValueProviderTrait.html#method_moduleValueProvider">moduleValueProvider()</a>
  181. <span>
  182. &nbsp;: array&lt;string|int, mixed&gt; </span>
  183. </dt>
  184. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  185. <a class="" href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_testBase64MimeType">testBase64MimeType()</a>
  186. <span>
  187. &nbsp;: void </span>
  188. </dt>
  189. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  190. <a class="" href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.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-QRGdImageTestAbstract.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-QRGdImageBMPTest.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-QRGdImageTestAbstract.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-QRGdImageBMPTest.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">33</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-QRGdImageBMPTest.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">31</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">29</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">30</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. </section>
  360. <section class="phpdocumentor-methods">
  361. <h3 class="phpdocumentor-elements__header" id="methods">
  362. Methods
  363. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  364. </h3>
  365. <article
  366. class="phpdocumentor-element
  367. -method
  368. -public
  369. -static "
  370. >
  371. <h4 class="phpdocumentor-element__name" id="method_moduleValueProvider">
  372. moduleValueProvider()
  373. <a href="classes/chillerlan-QRCodeTest-Output-RGBArrayModuleValueProviderTrait.html#method_moduleValueProvider" class="headerlink"><i class="fas fa-link"></i></a>
  374. </h4>
  375. <aside class="phpdocumentor-element-found-in">
  376. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/RGBArrayModuleValueProviderTrait.php"><a href="files/tests-output-rgbarraymodulevalueprovidertrait.html"><abbr title="tests/Output/RGBArrayModuleValueProviderTrait.php">RGBArrayModuleValueProviderTrait.php</abbr></a></abbr>
  377. :
  378. <span class="phpdocumentor-element-found-in__line">20</span>
  379. </aside>
  380. <code class="phpdocumentor-code phpdocumentor-signature ">
  381. <span class="phpdocumentor-signature__visibility">public</span>
  382. <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>
  383. <div class="phpdocumentor-label-line">
  384. </div>
  385. <section>
  386. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  387. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  388. </section>
  389. </article>
  390. <article
  391. class="phpdocumentor-element
  392. -method
  393. -public
  394. "
  395. >
  396. <h4 class="phpdocumentor-element__name" id="method_testBase64MimeType">
  397. testBase64MimeType()
  398. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_testBase64MimeType" class="headerlink"><i class="fas fa-link"></i></a>
  399. </h4>
  400. <aside class="phpdocumentor-element-found-in">
  401. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRGdImageTestAbstract.php"><a href="files/tests-output-qrgdimagetestabstract.html"><abbr title="tests/Output/QRGdImageTestAbstract.php">QRGdImageTestAbstract.php</abbr></a></abbr>
  402. :
  403. <span class="phpdocumentor-element-found-in__line">61</span>
  404. </aside>
  405. <code class="phpdocumentor-code phpdocumentor-signature ">
  406. <span class="phpdocumentor-signature__visibility">public</span>
  407. <span class="phpdocumentor-signature__name">testBase64MimeType</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  408. <div class="phpdocumentor-label-line">
  409. </div>
  410. </article>
  411. <article
  412. class="phpdocumentor-element
  413. -method
  414. -public
  415. "
  416. >
  417. <h4 class="phpdocumentor-element__name" id="method_testOutputGetResource">
  418. testOutputGetResource()
  419. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_testOutputGetResource" class="headerlink"><i class="fas fa-link"></i></a>
  420. </h4>
  421. <aside class="phpdocumentor-element-found-in">
  422. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRGdImageTestAbstract.php"><a href="files/tests-output-qrgdimagetestabstract.html"><abbr title="tests/Output/QRGdImageTestAbstract.php">QRGdImageTestAbstract.php</abbr></a></abbr>
  423. :
  424. <span class="phpdocumentor-element-found-in__line">54</span>
  425. </aside>
  426. <code class="phpdocumentor-code phpdocumentor-signature ">
  427. <span class="phpdocumentor-signature__visibility">public</span>
  428. <span class="phpdocumentor-signature__name">testOutputGetResource</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  429. <div class="phpdocumentor-label-line">
  430. </div>
  431. </article>
  432. <article
  433. class="phpdocumentor-element
  434. -method
  435. -public
  436. "
  437. >
  438. <h4 class="phpdocumentor-element__name" id="method_testRenderToCacheFile">
  439. testRenderToCacheFile()
  440. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderToCacheFile" class="headerlink"><i class="fas fa-link"></i></a>
  441. </h4>
  442. <aside class="phpdocumentor-element-found-in">
  443. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  444. :
  445. <span class="phpdocumentor-element-found-in__line">80</span>
  446. </aside>
  447. <p class="phpdocumentor-summary">coverage of the built-in output modules</p>
  448. <code class="phpdocumentor-code phpdocumentor-signature ">
  449. <span class="phpdocumentor-signature__visibility">public</span>
  450. <span class="phpdocumentor-signature__name">testRenderToCacheFile</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  451. <div class="phpdocumentor-label-line">
  452. </div>
  453. </article>
  454. <article
  455. class="phpdocumentor-element
  456. -method
  457. -public
  458. "
  459. >
  460. <h4 class="phpdocumentor-element__name" id="method_testSaveException">
  461. testSaveException()
  462. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException" class="headerlink"><i class="fas fa-link"></i></a>
  463. </h4>
  464. <aside class="phpdocumentor-element-found-in">
  465. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QROutputTestAbstract.php"><a href="files/tests-output-qroutputtestabstract.html"><abbr title="tests/Output/QROutputTestAbstract.php">QROutputTestAbstract.php</abbr></a></abbr>
  466. :
  467. <span class="phpdocumentor-element-found-in__line">54</span>
  468. </aside>
  469. <p class="phpdocumentor-summary">Tests if an exception is thrown when trying to write a cache file to an invalid destination</p>
  470. <code class="phpdocumentor-code phpdocumentor-signature ">
  471. <span class="phpdocumentor-signature__visibility">public</span>
  472. <span class="phpdocumentor-signature__name">testSaveException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  473. <div class="phpdocumentor-label-line">
  474. </div>
  475. </article>
  476. <article
  477. class="phpdocumentor-element
  478. -method
  479. -public
  480. "
  481. >
  482. <h4 class="phpdocumentor-element__name" id="method_testSetModuleValues">
  483. testSetModuleValues()
  484. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_testSetModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  485. </h4>
  486. <aside class="phpdocumentor-element-found-in">
  487. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRGdImageTestAbstract.php"><a href="files/tests-output-qrgdimagetestabstract.html"><abbr title="tests/Output/QRGdImageTestAbstract.php">QRGdImageTestAbstract.php</abbr></a></abbr>
  488. :
  489. <span class="phpdocumentor-element-found-in__line">40</span>
  490. </aside>
  491. <p class="phpdocumentor-summary">covers the module values settings</p>
  492. <code class="phpdocumentor-code phpdocumentor-signature ">
  493. <span class="phpdocumentor-signature__visibility">public</span>
  494. <span class="phpdocumentor-signature__name">testSetModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  495. <div class="phpdocumentor-label-line">
  496. </div>
  497. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  498. Tags
  499. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_testSetModuleValues#tags" class="headerlink"><i class="fas fa-link"></i></a>
  500. </h5>
  501. <dl class="phpdocumentor-tag-list">
  502. <dt class="phpdocumentor-tag-list__entry">
  503. <span class="phpdocumentor-tag__name">inheritDoc</span>
  504. </dt>
  505. <dd class="phpdocumentor-tag-list__definition">
  506. </dd>
  507. </dl>
  508. </article>
  509. <article
  510. class="phpdocumentor-element
  511. -method
  512. -public
  513. "
  514. >
  515. <h4 class="phpdocumentor-element__name" id="method_testValidateModuleValues">
  516. testValidateModuleValues()
  517. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  518. </h4>
  519. <aside class="phpdocumentor-element-found-in">
  520. <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>
  521. :
  522. <span class="phpdocumentor-element-found-in__line">63</span>
  523. </aside>
  524. <code class="phpdocumentor-code phpdocumentor-signature ">
  525. <span class="phpdocumentor-signature__visibility">public</span>
  526. <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>
  527. <div class="phpdocumentor-label-line">
  528. </div>
  529. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  530. <dl class="phpdocumentor-argument-list">
  531. <dt class="phpdocumentor-argument-list__entry">
  532. <span class="phpdocumentor-signature__argument__name">$value</span>
  533. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  534. </dt>
  535. <dd class="phpdocumentor-argument-list__definition">
  536. </dd>
  537. <dt class="phpdocumentor-argument-list__entry">
  538. <span class="phpdocumentor-signature__argument__name">$expected</span>
  539. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  540. </dt>
  541. <dd class="phpdocumentor-argument-list__definition">
  542. </dd>
  543. </dl>
  544. <section class="phpdocumentor-attributes">
  545. <h5 class="phpdocumentor-elements__header" id="attributes">
  546. Attributes <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  547. </h5>
  548. <dl class="phpdocumentor-argument-list">
  549. <dt class="phpdocumentor-argument-list__entry">
  550. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  551. </dt>
  552. <dd class="phpdocumentor-argument-list__entry">
  553. &#039;moduleValueProvider&#039;
  554. </dd>
  555. </dl>
  556. </section>
  557. </article>
  558. <article
  559. class="phpdocumentor-element
  560. -method
  561. -protected
  562. "
  563. >
  564. <h4 class="phpdocumentor-element__name" id="method_createBuildDir">
  565. createBuildDir()
  566. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_createBuildDir" class="headerlink"><i class="fas fa-link"></i></a>
  567. </h4>
  568. <aside class="phpdocumentor-element-found-in">
  569. <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>
  570. :
  571. <span class="phpdocumentor-element-found-in__line">35</span>
  572. </aside>
  573. <p class="phpdocumentor-summary">attempts to create the build dir</p>
  574. <code class="phpdocumentor-code phpdocumentor-signature ">
  575. <span class="phpdocumentor-signature__visibility">protected</span>
  576. <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>
  577. <div class="phpdocumentor-label-line">
  578. </div>
  579. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  580. <dl class="phpdocumentor-argument-list">
  581. <dt class="phpdocumentor-argument-list__entry">
  582. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  583. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  584. </dt>
  585. <dd class="phpdocumentor-argument-list__definition">
  586. </dd>
  587. </dl>
  588. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  589. Tags
  590. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_createBuildDir#tags" class="headerlink"><i class="fas fa-link"></i></a>
  591. </h5>
  592. <dl class="phpdocumentor-tag-list">
  593. <dt class="phpdocumentor-tag-list__entry">
  594. <span class="phpdocumentor-tag__name">throws</span>
  595. </dt>
  596. <dd class="phpdocumentor-tag-list__definition">
  597. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  598. </dd>
  599. </dl>
  600. </article>
  601. <article
  602. class="phpdocumentor-element
  603. -method
  604. -protected
  605. "
  606. >
  607. <h4 class="phpdocumentor-element__name" id="method_getBuildDir">
  608. getBuildDir()
  609. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildDir" class="headerlink"><i class="fas fa-link"></i></a>
  610. </h4>
  611. <aside class="phpdocumentor-element-found-in">
  612. <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>
  613. :
  614. <span class="phpdocumentor-element-found-in__line">53</span>
  615. </aside>
  616. <p class="phpdocumentor-summary">returns the full (real) path to the given build path</p>
  617. <code class="phpdocumentor-code phpdocumentor-signature ">
  618. <span class="phpdocumentor-signature__visibility">protected</span>
  619. <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>
  620. <div class="phpdocumentor-label-line">
  621. </div>
  622. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  623. <dl class="phpdocumentor-argument-list">
  624. <dt class="phpdocumentor-argument-list__entry">
  625. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  626. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  627. = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span> </dt>
  628. <dd class="phpdocumentor-argument-list__definition">
  629. </dd>
  630. </dl>
  631. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  632. Tags
  633. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildDir#tags" class="headerlink"><i class="fas fa-link"></i></a>
  634. </h5>
  635. <dl class="phpdocumentor-tag-list">
  636. <dt class="phpdocumentor-tag-list__entry">
  637. <span class="phpdocumentor-tag__name">throws</span>
  638. </dt>
  639. <dd class="phpdocumentor-tag-list__definition">
  640. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  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_getBuildFileContent">
  655. getBuildFileContent()
  656. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFileContent" 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">85</span>
  662. </aside>
  663. <p class="phpdocumentor-summary">returns the contents of 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">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>
  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. <section>
  679. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  680. <span class="phpdocumentor-signature__response_type">string</span>
  681. </section>
  682. </article>
  683. <article
  684. class="phpdocumentor-element
  685. -method
  686. -protected
  687. "
  688. >
  689. <h4 class="phpdocumentor-element__name" id="method_getBuildFilePath">
  690. getBuildFilePath()
  691. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFilePath" class="headerlink"><i class="fas fa-link"></i></a>
  692. </h4>
  693. <aside class="phpdocumentor-element-found-in">
  694. <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>
  695. :
  696. <span class="phpdocumentor-element-found-in__line">68</span>
  697. </aside>
  698. <p class="phpdocumentor-summary">returns the full (real) path to the given build file</p>
  699. <code class="phpdocumentor-code phpdocumentor-signature ">
  700. <span class="phpdocumentor-signature__visibility">protected</span>
  701. <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>
  702. <div class="phpdocumentor-label-line">
  703. </div>
  704. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  705. <dl class="phpdocumentor-argument-list">
  706. <dt class="phpdocumentor-argument-list__entry">
  707. <span class="phpdocumentor-signature__argument__name">$fileSubPath</span>
  708. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  709. </dt>
  710. <dd class="phpdocumentor-argument-list__definition">
  711. </dd>
  712. </dl>
  713. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  714. Tags
  715. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFilePath#tags" class="headerlink"><i class="fas fa-link"></i></a>
  716. </h5>
  717. <dl class="phpdocumentor-tag-list">
  718. <dt class="phpdocumentor-tag-list__entry">
  719. <span class="phpdocumentor-tag__name">throws</span>
  720. </dt>
  721. <dd class="phpdocumentor-tag-list__definition">
  722. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  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_getBuildPath">
  737. getBuildPath()
  738. <a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildPath" 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/BuildDirTrait.php"><a href="files/tests-builddirtrait.html"><abbr title="tests/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  742. :
  743. <span class="phpdocumentor-element-found-in__line">26</span>
  744. </aside>
  745. <p class="phpdocumentor-summary">returns the full raw path to the build dir</p>
  746. <code class="phpdocumentor-code phpdocumentor-signature ">
  747. <span class="phpdocumentor-signature__visibility">protected</span>
  748. <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>
  749. <div class="phpdocumentor-label-line">
  750. </div>
  751. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  752. <dl class="phpdocumentor-argument-list">
  753. <dt class="phpdocumentor-argument-list__entry">
  754. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  755. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  756. </dt>
  757. <dd class="phpdocumentor-argument-list__definition">
  758. </dd>
  759. </dl>
  760. <section>
  761. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  762. <span class="phpdocumentor-signature__response_type">string</span>
  763. </section>
  764. </article>
  765. <article
  766. class="phpdocumentor-element
  767. -method
  768. -protected
  769. "
  770. >
  771. <h4 class="phpdocumentor-element__name" id="method_getOutputInterface">
  772. getOutputInterface()
  773. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html#method_getOutputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  774. </h4>
  775. <aside class="phpdocumentor-element-found-in">
  776. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRGdImageBMPTest.php"><a href="files/tests-output-qrgdimagebmptest.html"><abbr title="tests/Output/QRGdImageBMPTest.php">QRGdImageBMPTest.php</abbr></a></abbr>
  777. :
  778. <span class="phpdocumentor-element-found-in__line">23</span>
  779. </aside>
  780. <code class="phpdocumentor-code phpdocumentor-signature ">
  781. <span class="phpdocumentor-signature__visibility">protected</span>
  782. <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>
  783. <div class="phpdocumentor-label-line">
  784. </div>
  785. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  786. <dl class="phpdocumentor-argument-list">
  787. <dt class="phpdocumentor-argument-list__entry">
  788. <span class="phpdocumentor-signature__argument__name">$options</span>
  789. : <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>
  790. </dt>
  791. <dd class="phpdocumentor-argument-list__definition">
  792. </dd>
  793. <dt class="phpdocumentor-argument-list__entry">
  794. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  795. : <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>
  796. </dt>
  797. <dd class="phpdocumentor-argument-list__definition">
  798. </dd>
  799. </dl>
  800. <section>
  801. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  802. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  803. </section>
  804. </article>
  805. <article
  806. class="phpdocumentor-element
  807. -method
  808. -protected
  809. "
  810. >
  811. <h4 class="phpdocumentor-element__name" id="method_setUp">
  812. setUp()
  813. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  814. </h4>
  815. <aside class="phpdocumentor-element-found-in">
  816. <abbr class="phpdocumentor-element-found-in__file" title="tests/Output/QRGdImageTestAbstract.php"><a href="files/tests-output-qrgdimagetestabstract.html"><abbr title="tests/Output/QRGdImageTestAbstract.php">QRGdImageTestAbstract.php</abbr></a></abbr>
  817. :
  818. <span class="phpdocumentor-element-found-in__line">28</span>
  819. </aside>
  820. <p class="phpdocumentor-summary">Attempts to create a directory under /.build and instances several required objects</p>
  821. <code class="phpdocumentor-code phpdocumentor-signature ">
  822. <span class="phpdocumentor-signature__visibility">protected</span>
  823. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  824. <div class="phpdocumentor-label-line">
  825. </div>
  826. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  827. Tags
  828. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_setUp#tags" class="headerlink"><i class="fas fa-link"></i></a>
  829. </h5>
  830. <dl class="phpdocumentor-tag-list">
  831. <dt class="phpdocumentor-tag-list__entry">
  832. <span class="phpdocumentor-tag__name">inheritDoc</span>
  833. </dt>
  834. <dd class="phpdocumentor-tag-list__definition">
  835. </dd>
  836. </dl>
  837. </article>
  838. </section>
  839. <div class="phpdocumentor-modal" id="source-view">
  840. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  841. <div class="phpdocumentor-modal-container">
  842. <div class="phpdocumentor-modal-content">
  843. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Output/QRGdImageBMPTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  844. </div>
  845. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  846. </div>
  847. </div>
  848. <script type="text/javascript">
  849. (function () {
  850. function loadExternalCodeSnippet(el, url, line) {
  851. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  852. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  853. const language = 'php';
  854. const code = document.createElement('code');
  855. code.className = 'language-' + language;
  856. pre.textContent = '';
  857. pre.setAttribute('data-line', line)
  858. code.textContent = 'Loading…';
  859. pre.appendChild(code);
  860. var xhr = new XMLHttpRequest();
  861. xhr.open('GET', src, true);
  862. xhr.onreadystatechange = function () {
  863. if (xhr.readyState !== 4) {
  864. return;
  865. }
  866. if (xhr.status < 400 && xhr.responseText) {
  867. code.textContent = xhr.responseText;
  868. Prism.highlightElement(code);
  869. return;
  870. }
  871. if (xhr.status === 404) {
  872. code.textContent = '✖ Error: File could not be found';
  873. return;
  874. }
  875. if (xhr.status >= 400) {
  876. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  877. return;
  878. }
  879. code.textContent = '✖ Error: An unknown error occurred';
  880. };
  881. xhr.send(null);
  882. });
  883. }
  884. const modalButtons = document.querySelectorAll("[data-modal]");
  885. const openedAsLocalFile = window.location.protocol === 'file:';
  886. if (modalButtons.length > 0 && openedAsLocalFile) {
  887. console.warn(
  888. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  889. 'browsers block XHR requests when a page is opened this way'
  890. );
  891. }
  892. modalButtons.forEach(function (trigger) {
  893. if (openedAsLocalFile) {
  894. trigger.setAttribute("hidden", "hidden");
  895. }
  896. trigger.addEventListener("click", function (event) {
  897. event.preventDefault();
  898. const modal = document.getElementById(trigger.dataset.modal);
  899. if (!modal) {
  900. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  901. return;
  902. }
  903. modal.classList.add("phpdocumentor-modal__open");
  904. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  905. const exits = modal.querySelectorAll("[data-exit-button]");
  906. exits.forEach(function (exit) {
  907. exit.addEventListener("click", function (event) {
  908. event.preventDefault();
  909. modal.classList.remove("phpdocumentor-modal__open");
  910. });
  911. });
  912. });
  913. });
  914. })();
  915. </script>
  916. </article>
  917. </section>
  918. <section class="phpdocumentor-on-this-page__sidebar">
  919. <section class="phpdocumentor-on-this-page__content">
  920. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  921. <ul class="phpdocumentor-list -clean">
  922. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  923. <li>
  924. <ul class="phpdocumentor-list -clean">
  925. <li><a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html#toc-constants">Constants</a></li>
  926. <li><a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html#toc-properties">Properties</a></li>
  927. <li><a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html#toc-methods">Methods</a></li>
  928. </ul>
  929. </li>
  930. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  931. <li>
  932. <ul class="phpdocumentor-list -clean">
  933. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#constant_buildDir">buildDir</a></li>
  934. </ul>
  935. </li>
  936. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  937. <li>
  938. <ul class="phpdocumentor-list -clean">
  939. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix">$matrix</li>
  940. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options">$options</li>
  941. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface">$outputInterface</li>
  942. </ul>
  943. </li>
  944. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  945. <li>
  946. <ul class="phpdocumentor-list -clean">
  947. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-RGBArrayModuleValueProviderTrait.html#method_moduleValueProvider">moduleValueProvider()</a></li>
  948. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_testBase64MimeType">testBase64MimeType()</a></li>
  949. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_testOutputGetResource">testOutputGetResource()</a></li>
  950. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderToCacheFile">testRenderToCacheFile()</a></li>
  951. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException">testSaveException()</a></li>
  952. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_testSetModuleValues">testSetModuleValues()</a></li>
  953. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues">testValidateModuleValues()</a></li>
  954. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_createBuildDir">createBuildDir()</a></li>
  955. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildDir">getBuildDir()</a></li>
  956. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFileContent">getBuildFileContent()</a></li>
  957. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildFilePath">getBuildFilePath()</a></li>
  958. <li class=""><a href="classes/chillerlan-QRCodeTest-BuildDirTrait.html#method_getBuildPath">getBuildPath()</a></li>
  959. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html#method_getOutputInterface">getOutputInterface()</a></li>
  960. <li class=""><a href="classes/chillerlan-QRCodeTest-Output-QRGdImageTestAbstract.html#method_setUp">setUp()</a></li>
  961. </ul>
  962. </li>
  963. </ul>
  964. </section>
  965. </section>
  966. </div>
  967. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  968. <section class="phpdocumentor-search-results__dialog">
  969. <header class="phpdocumentor-search-results__header">
  970. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  971. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  972. </header>
  973. <section class="phpdocumentor-search-results__body">
  974. <ul class="phpdocumentor-search-results__entries"></ul>
  975. </section>
  976. </section>
  977. </section>
  978. </div>
  979. <a href="classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  980. </main>
  981. <script>
  982. cssVars({});
  983. </script>
  984. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  985. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  986. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  987. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  988. </body>
  989. </html>