chillerlan-QRCodeTest-Output-QRGdImagePNGTest.html 46 KB

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