chillerlan-QRCodeTest-Output-QRStringTEXTTest.html 42 KB

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