chillerlan-QRCodeTest-Output-QRStringJSONTest.html 42 KB

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