chillerlan-QRCodeTest-Output-QRFpdfTest.html 60 KB

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