chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html 67 KB

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