chillerlan-QRCodeTest-Output-QRStringJSONTest.html 58 KB

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