chillerlan-QRCodeTest-Output-QROutputTestAbstract.html 56 KB

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