chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448
  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">&#039;&#039;</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">&#039;&#039;</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>