chillerlan-QRCodeTest-Output-QRStringTEXTTest.html 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  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. </section>
  82. <section class="phpdocumentor-sidebar__category">
  83. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  84. <h4 class="phpdocumentor-sidebar__root-namespace">
  85. <a href="packages/Application.html" class="">Application</a>
  86. </h4>
  87. </section>
  88. <section class="phpdocumentor-sidebar__category">
  89. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  92. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  93. </section>
  94. <section class="phpdocumentor-sidebar__category">
  95. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  96. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  97. </section>
  98. </aside>
  99. <div class="phpdocumentor-column -nine phpdocumentor-content">
  100. <section>
  101. <ul class="phpdocumentor-breadcrumbs">
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  103. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  104. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-output.html">Output</a></li>
  105. </ul>
  106. <article class="phpdocumentor-element -class">
  107. <h2 class="phpdocumentor-content__title">
  108. QRStringTEXTTest
  109. <span class="phpdocumentor-element__extends">
  110. extends <a href="classes/chillerlan-QRCodeTest-Output-QRStringTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Output\QRStringTestAbstract">QRStringTestAbstract</abbr></a>
  111. </span>
  112. <div class="phpdocumentor-element__package">
  113. in package
  114. <ul class="phpdocumentor-breadcrumbs">
  115. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  116. </ul>
  117. </div>
  118. </h2>
  119. <div class="phpdocumentor-label-line">
  120. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  121. </div>
  122. <aside class="phpdocumentor-element-found-in">
  123. <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>
  124. :
  125. <span class="phpdocumentor-element-found-in__line">19</span>
  126. </aside>
  127. <p class="phpdocumentor-summary">Tests the QRString output module</p>
  128. <h3 id="toc">
  129. Table of Contents
  130. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  131. </h3>
  132. <h4 id="toc-properties">
  133. Properties
  134. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  135. </h4>
  136. <dl class="phpdocumentor-table-of-contents">
  137. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  138. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_builddir">$builddir</a>
  139. <span>
  140. &nbsp;: string </span>
  141. </dt>
  142. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  143. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_FQN">$FQN</a>
  144. <span>
  145. &nbsp;: string </span>
  146. </dt>
  147. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  148. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix">$matrix</a>
  149. <span>
  150. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  151. </dt>
  152. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  153. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options">$options</a>
  154. <span>
  155. &nbsp;: <a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>|<abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  156. </dt>
  157. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  158. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface">$outputInterface</a>
  159. <span>
  160. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  161. </dt>
  162. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  163. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#property_type">$type</a>
  164. <span>
  165. &nbsp;: string </span>
  166. </dt>
  167. </dl>
  168. <h4 id="toc-methods">
  169. Methods
  170. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  171. </h4>
  172. <dl class="phpdocumentor-table-of-contents">
  173. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  174. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_moduleValueProvider">moduleValueProvider()</a>
  175. <span>
  176. &nbsp;: array&lt;string|int, mixed&gt; </span>
  177. </dt>
  178. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  179. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testInstance">testInstance()</a>
  180. <span>
  181. &nbsp;: void </span>
  182. </dt>
  183. <dd>Validate the instance of the interface</dd>
  184. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  185. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderToCacheFile">testRenderToCacheFile()</a>
  186. <span>
  187. &nbsp;: void </span>
  188. </dt>
  189. <dd>coverage of the built-in output modules</dd>
  190. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  191. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException">testSaveException()</a>
  192. <span>
  193. &nbsp;: void </span>
  194. </dt>
  195. <dd>Tests if an exception is thrown when trying to write a cache file to an invalid destination</dd>
  196. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  197. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#method_testSetModuleValues">testSetModuleValues()</a>
  198. <span>
  199. &nbsp;: void </span>
  200. </dt>
  201. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  202. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues">testValidateModuleValues()</a>
  203. <span>
  204. &nbsp;: void </span>
  205. </dt>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  207. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_setUp">setUp()</a>
  208. <span>
  209. &nbsp;: void </span>
  210. </dt>
  211. <dd>Attempts to create a directory under /.build and instances several required objects</dd>
  212. </dl>
  213. <section class="phpdocumentor-properties">
  214. <h3 class="phpdocumentor-elements__header" id="properties">
  215. Properties
  216. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  217. </h3>
  218. <article
  219. class="
  220. phpdocumentor-element
  221. -property
  222. -protected
  223. "
  224. >
  225. <h4 class="phpdocumentor-element__name" id="property_builddir">
  226. $builddir
  227. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_builddir" class="headerlink"><i class="fas fa-link"></i></a>
  228. <span class="phpdocumentor-element__modifiers">
  229. </span>
  230. </h4>
  231. <aside class="phpdocumentor-element-found-in">
  232. <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>
  233. :
  234. <span class="phpdocumentor-element-found-in__line">31</span>
  235. </aside>
  236. <code class="phpdocumentor-code phpdocumentor-signature ">
  237. <span class="phpdocumentor-signature__visibility">protected</span>
  238. <span class="phpdocumentor-signature__type">string</span>
  239. <span class="phpdocumentor-signature__name">$builddir</span>
  240. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/../../.build/output_test&#039;</span></code>
  241. </article>
  242. <article
  243. class="
  244. phpdocumentor-element
  245. -property
  246. -protected
  247. "
  248. >
  249. <h4 class="phpdocumentor-element__name" id="property_FQN">
  250. $FQN
  251. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_FQN" class="headerlink"><i class="fas fa-link"></i></a>
  252. <span class="phpdocumentor-element__modifiers">
  253. </span>
  254. </h4>
  255. <aside class="phpdocumentor-element-found-in">
  256. <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>
  257. :
  258. <span class="phpdocumentor-element-found-in__line">32</span>
  259. </aside>
  260. <code class="phpdocumentor-code phpdocumentor-signature ">
  261. <span class="phpdocumentor-signature__visibility">protected</span>
  262. <span class="phpdocumentor-signature__type">string</span>
  263. <span class="phpdocumentor-signature__name">$FQN</span>
  264. </code>
  265. </article>
  266. <article
  267. class="
  268. phpdocumentor-element
  269. -property
  270. -protected
  271. "
  272. >
  273. <h4 class="phpdocumentor-element__name" id="property_matrix">
  274. $matrix
  275. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  276. <span class="phpdocumentor-element__modifiers">
  277. </span>
  278. </h4>
  279. <aside class="phpdocumentor-element-found-in">
  280. <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>
  281. :
  282. <span class="phpdocumentor-element-found-in__line">30</span>
  283. </aside>
  284. <code class="phpdocumentor-code phpdocumentor-signature ">
  285. <span class="phpdocumentor-signature__visibility">protected</span>
  286. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  287. <span class="phpdocumentor-signature__name">$matrix</span>
  288. </code>
  289. </article>
  290. <article
  291. class="
  292. phpdocumentor-element
  293. -property
  294. -protected
  295. "
  296. >
  297. <h4 class="phpdocumentor-element__name" id="property_options">
  298. $options
  299. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  300. <span class="phpdocumentor-element__modifiers">
  301. </span>
  302. </h4>
  303. <aside class="phpdocumentor-element-found-in">
  304. <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>
  305. :
  306. <span class="phpdocumentor-element-found-in__line">28</span>
  307. </aside>
  308. <code class="phpdocumentor-code phpdocumentor-signature ">
  309. <span class="phpdocumentor-signature__visibility">protected</span>
  310. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>|<abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  311. <span class="phpdocumentor-signature__name">$options</span>
  312. </code>
  313. </article>
  314. <article
  315. class="
  316. phpdocumentor-element
  317. -property
  318. -protected
  319. "
  320. >
  321. <h4 class="phpdocumentor-element__name" id="property_outputInterface">
  322. $outputInterface
  323. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  324. <span class="phpdocumentor-element__modifiers">
  325. </span>
  326. </h4>
  327. <aside class="phpdocumentor-element-found-in">
  328. <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>
  329. :
  330. <span class="phpdocumentor-element-found-in__line">29</span>
  331. </aside>
  332. <code class="phpdocumentor-code phpdocumentor-signature ">
  333. <span class="phpdocumentor-signature__visibility">protected</span>
  334. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  335. <span class="phpdocumentor-signature__name">$outputInterface</span>
  336. </code>
  337. </article>
  338. <article
  339. class="
  340. phpdocumentor-element
  341. -property
  342. -protected
  343. "
  344. >
  345. <h4 class="phpdocumentor-element__name" id="property_type">
  346. $type
  347. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#property_type" class="headerlink"><i class="fas fa-link"></i></a>
  348. <span class="phpdocumentor-element__modifiers">
  349. </span>
  350. </h4>
  351. <aside class="phpdocumentor-element-found-in">
  352. <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>
  353. :
  354. <span class="phpdocumentor-element-found-in__line">21</span>
  355. </aside>
  356. <code class="phpdocumentor-code phpdocumentor-signature ">
  357. <span class="phpdocumentor-signature__visibility">protected</span>
  358. <span class="phpdocumentor-signature__type">string</span>
  359. <span class="phpdocumentor-signature__name">$type</span>
  360. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Output\QROutputInterface::STRING_TEXT</span></code>
  361. </article>
  362. </section>
  363. <section class="phpdocumentor-methods">
  364. <h3 class="phpdocumentor-elements__header" id="methods">
  365. Methods
  366. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  367. </h3>
  368. <article
  369. class="phpdocumentor-element
  370. -method
  371. -public
  372. -abstract -static "
  373. >
  374. <h4 class="phpdocumentor-element__name" id="method_moduleValueProvider">
  375. moduleValueProvider()
  376. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_moduleValueProvider" class="headerlink"><i class="fas fa-link"></i></a>
  377. </h4>
  378. <aside class="phpdocumentor-element-found-in">
  379. <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>
  380. :
  381. <span class="phpdocumentor-element-found-in__line">68</span>
  382. </aside>
  383. <code class="phpdocumentor-code phpdocumentor-signature ">
  384. <span class="phpdocumentor-signature__visibility">public</span>
  385. <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>
  386. <div class="phpdocumentor-label-line">
  387. </div>
  388. <section>
  389. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  390. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  391. </section>
  392. </article>
  393. <article
  394. class="phpdocumentor-element
  395. -method
  396. -public
  397. "
  398. >
  399. <h4 class="phpdocumentor-element__name" id="method_testInstance">
  400. testInstance()
  401. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testInstance" class="headerlink"><i class="fas fa-link"></i></a>
  402. </h4>
  403. <aside class="phpdocumentor-element-found-in">
  404. <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>
  405. :
  406. <span class="phpdocumentor-element-found-in__line">53</span>
  407. </aside>
  408. <p class="phpdocumentor-summary">Validate the instance of the interface</p>
  409. <code class="phpdocumentor-code phpdocumentor-signature ">
  410. <span class="phpdocumentor-signature__visibility">public</span>
  411. <span class="phpdocumentor-signature__name">testInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  412. <div class="phpdocumentor-label-line">
  413. </div>
  414. </article>
  415. <article
  416. class="phpdocumentor-element
  417. -method
  418. -public
  419. "
  420. >
  421. <h4 class="phpdocumentor-element__name" id="method_testRenderToCacheFile">
  422. testRenderToCacheFile()
  423. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderToCacheFile" class="headerlink"><i class="fas fa-link"></i></a>
  424. </h4>
  425. <aside class="phpdocumentor-element-found-in">
  426. <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>
  427. :
  428. <span class="phpdocumentor-element-found-in__line">93</span>
  429. </aside>
  430. <p class="phpdocumentor-summary">coverage of the built-in output modules</p>
  431. <code class="phpdocumentor-code phpdocumentor-signature ">
  432. <span class="phpdocumentor-signature__visibility">public</span>
  433. <span class="phpdocumentor-signature__name">testRenderToCacheFile</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  434. <div class="phpdocumentor-label-line">
  435. </div>
  436. </article>
  437. <article
  438. class="phpdocumentor-element
  439. -method
  440. -public
  441. "
  442. >
  443. <h4 class="phpdocumentor-element__name" id="method_testSaveException">
  444. testSaveException()
  445. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException" class="headerlink"><i class="fas fa-link"></i></a>
  446. </h4>
  447. <aside class="phpdocumentor-element-found-in">
  448. <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>
  449. :
  450. <span class="phpdocumentor-element-found-in__line">60</span>
  451. </aside>
  452. <p class="phpdocumentor-summary">Tests if an exception is thrown when trying to write a cache file to an invalid destination</p>
  453. <code class="phpdocumentor-code phpdocumentor-signature ">
  454. <span class="phpdocumentor-signature__visibility">public</span>
  455. <span class="phpdocumentor-signature__name">testSaveException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  456. <div class="phpdocumentor-label-line">
  457. </div>
  458. </article>
  459. <article
  460. class="phpdocumentor-element
  461. -method
  462. -public
  463. "
  464. >
  465. <h4 class="phpdocumentor-element__name" id="method_testSetModuleValues">
  466. testSetModuleValues()
  467. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#method_testSetModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  468. </h4>
  469. <aside class="phpdocumentor-element-found-in">
  470. <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>
  471. :
  472. <span class="phpdocumentor-element-found-in__line">26</span>
  473. </aside>
  474. <code class="phpdocumentor-code phpdocumentor-signature ">
  475. <span class="phpdocumentor-signature__visibility">public</span>
  476. <span class="phpdocumentor-signature__name">testSetModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  477. <div class="phpdocumentor-label-line">
  478. </div>
  479. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  480. Tags
  481. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#method_testSetModuleValues#tags" class="headerlink"><i class="fas fa-link"></i></a>
  482. </h5>
  483. <dl class="phpdocumentor-tag-list">
  484. <dt class="phpdocumentor-tag-list__entry">
  485. <span class="phpdocumentor-tag__name">inheritDoc</span>
  486. </dt>
  487. <dd class="phpdocumentor-tag-list__definition">
  488. </dd>
  489. </dl>
  490. </article>
  491. <article
  492. class="phpdocumentor-element
  493. -method
  494. -public
  495. "
  496. >
  497. <h4 class="phpdocumentor-element__name" id="method_testValidateModuleValues">
  498. testValidateModuleValues()
  499. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  500. </h4>
  501. <aside class="phpdocumentor-element-found-in">
  502. <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>
  503. :
  504. <span class="phpdocumentor-element-found-in__line">76</span>
  505. </aside>
  506. <code class="phpdocumentor-code phpdocumentor-signature ">
  507. <span class="phpdocumentor-signature__visibility">public</span>
  508. <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>
  509. <div class="phpdocumentor-label-line">
  510. </div>
  511. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  512. <dl class="phpdocumentor-argument-list">
  513. <dt class="phpdocumentor-argument-list__entry">
  514. <span class="phpdocumentor-signature__argument__name">$value</span>
  515. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  516. </dt>
  517. <dd class="phpdocumentor-argument-list__definition">
  518. </dd>
  519. <dt class="phpdocumentor-argument-list__entry">
  520. <span class="phpdocumentor-signature__argument__name">$expected</span>
  521. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  522. </dt>
  523. <dd class="phpdocumentor-argument-list__definition">
  524. </dd>
  525. </dl>
  526. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  527. Tags
  528. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues#tags" class="headerlink"><i class="fas fa-link"></i></a>
  529. </h5>
  530. <dl class="phpdocumentor-tag-list">
  531. <dt class="phpdocumentor-tag-list__entry">
  532. <span class="phpdocumentor-tag__name">dataProvider</span>
  533. </dt>
  534. <dd class="phpdocumentor-tag-list__definition">
  535. <section class="phpdocumentor-description"><p>moduleValueProvider</p>
  536. </section>
  537. </dd>
  538. </dl>
  539. </article>
  540. <article
  541. class="phpdocumentor-element
  542. -method
  543. -protected
  544. "
  545. >
  546. <h4 class="phpdocumentor-element__name" id="method_setUp">
  547. setUp()
  548. <a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  549. </h4>
  550. <aside class="phpdocumentor-element-found-in">
  551. <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>
  552. :
  553. <span class="phpdocumentor-element-found-in__line">38</span>
  554. </aside>
  555. <p class="phpdocumentor-summary">Attempts to create a directory under /.build and instances several required objects</p>
  556. <code class="phpdocumentor-code phpdocumentor-signature ">
  557. <span class="phpdocumentor-signature__visibility">protected</span>
  558. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  559. <div class="phpdocumentor-label-line">
  560. </div>
  561. </article>
  562. </section>
  563. <div class="phpdocumentor-modal" id="source-view">
  564. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  565. <div class="phpdocumentor-modal-container">
  566. <div class="phpdocumentor-modal-content">
  567. <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>
  568. </div>
  569. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  570. </div>
  571. </div>
  572. <script type="text/javascript">
  573. (function () {
  574. function loadExternalCodeSnippet(el, url, line) {
  575. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  576. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  577. const language = 'php';
  578. const code = document.createElement('code');
  579. code.className = 'language-' + language;
  580. pre.textContent = '';
  581. pre.setAttribute('data-line', line)
  582. code.textContent = 'Loading…';
  583. pre.appendChild(code);
  584. var xhr = new XMLHttpRequest();
  585. xhr.open('GET', src, true);
  586. xhr.onreadystatechange = function () {
  587. if (xhr.readyState !== 4) {
  588. return;
  589. }
  590. if (xhr.status < 400 && xhr.responseText) {
  591. code.textContent = xhr.responseText;
  592. Prism.highlightElement(code);
  593. return;
  594. }
  595. if (xhr.status === 404) {
  596. code.textContent = '✖ Error: File could not be found';
  597. return;
  598. }
  599. if (xhr.status >= 400) {
  600. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  601. return;
  602. }
  603. code.textContent = '✖ Error: An unknown error occurred';
  604. };
  605. xhr.send(null);
  606. });
  607. }
  608. const modalButtons = document.querySelectorAll("[data-modal]");
  609. const openedAsLocalFile = window.location.protocol === 'file:';
  610. if (modalButtons.length > 0 && openedAsLocalFile) {
  611. console.warn(
  612. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  613. 'browsers block XHR requests when a page is opened this way'
  614. );
  615. }
  616. modalButtons.forEach(function (trigger) {
  617. if (openedAsLocalFile) {
  618. trigger.setAttribute("hidden", "hidden");
  619. }
  620. trigger.addEventListener("click", function (event) {
  621. event.preventDefault();
  622. const modal = document.getElementById(trigger.dataset.modal);
  623. if (!modal) {
  624. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  625. return;
  626. }
  627. modal.classList.add("phpdocumentor-modal__open");
  628. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  629. const exits = modal.querySelectorAll("[data-exit-button]");
  630. exits.forEach(function (exit) {
  631. exit.addEventListener("click", function (event) {
  632. event.preventDefault();
  633. modal.classList.remove("phpdocumentor-modal__open");
  634. });
  635. });
  636. });
  637. });
  638. })();
  639. </script>
  640. </article>
  641. </section>
  642. <section class="phpdocumentor-on-this-page__sidebar">
  643. <section class="phpdocumentor-on-this-page__content">
  644. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  645. <ul class="phpdocumentor-list -clean">
  646. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  647. <li>
  648. <ul class="phpdocumentor-list -clean">
  649. <li><a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#toc-properties">Properties</a></li>
  650. <li><a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#toc-methods">Methods</a></li>
  651. </ul>
  652. </li>
  653. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  654. <li>
  655. <ul class="phpdocumentor-list -clean">
  656. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_builddir">$builddir<a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html"></li>
  657. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_FQN">$FQN<a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html"></li>
  658. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_matrix">$matrix<a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html"></li>
  659. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_options">$options<a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html"></li>
  660. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#property_outputInterface">$outputInterface<a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html"></li>
  661. <li><a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#property_type">$type<a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html"></li>
  662. </ul>
  663. </li>
  664. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  665. <li>
  666. <ul class="phpdocumentor-list -clean">
  667. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_moduleValueProvider">moduleValueProvider()</a></li>
  668. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testInstance">testInstance()</a></li>
  669. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testRenderToCacheFile">testRenderToCacheFile()</a></li>
  670. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testSaveException">testSaveException()</a></li>
  671. <li><a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#method_testSetModuleValues">testSetModuleValues()</a></li>
  672. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_testValidateModuleValues">testValidateModuleValues()</a></li>
  673. <li><a href="classes/chillerlan-QRCodeTest-Output-QROutputTestAbstract.html#method_setUp">setUp()</a></li>
  674. </ul>
  675. </li>
  676. </ul>
  677. </section>
  678. </section>
  679. </div>
  680. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  681. <section class="phpdocumentor-search-results__dialog">
  682. <header class="phpdocumentor-search-results__header">
  683. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  684. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  685. </header>
  686. <section class="phpdocumentor-search-results__body">
  687. <ul class="phpdocumentor-search-results__entries"></ul>
  688. </section>
  689. </section>
  690. </section>
  691. </div>
  692. <a href="classes/chillerlan-QRCodeTest-Output-QRStringTEXTTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  693. </main>
  694. <script>
  695. cssVars({});
  696. </script>
  697. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  698. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  699. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  700. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  701. </body>
  702. </html>