chillerlan-QRCodeTest-Output-QRStringTextTest.html 59 KB

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