chillerlan-QRCodeTest-QRCodeTest.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  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=Source+Sans+Pro:wght@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/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. <li class="phpdocumentor-topnav__menu-item -menu">
  44. <a href="https://php-qrcode.readthedocs.io">
  45. <span>
  46. User Manual
  47. </span>
  48. </a>
  49. </li>
  50. <li class="phpdocumentor-topnav__menu-item -social">
  51. <a href="https://github.com/chillerlan/php-qrcode">
  52. <span>
  53. <i class="fab fa-github"></i>
  54. </span>
  55. </a>
  56. </li>
  57. </ul>
  58. </nav>
  59. </header>
  60. <main class="phpdocumentor">
  61. <div class="phpdocumentor-section">
  62. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  63. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  64. Menu
  65. </label>
  66. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  71. </h4>
  72. <ul class="phpdocumentor-list">
  73. <li>
  74. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  75. </li>
  76. <li>
  77. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  78. </li>
  79. </ul>
  80. </section>
  81. <section class="phpdocumentor-sidebar__category">
  82. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  83. <h4 class="phpdocumentor-sidebar__root-namespace">
  84. <a href="packages/Application.html" class="">Application</a>
  85. </h4>
  86. </section>
  87. <section class="phpdocumentor-sidebar__category">
  88. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  89. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  92. </section>
  93. <section class="phpdocumentor-sidebar__category">
  94. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  96. </section>
  97. </aside>
  98. <div class="phpdocumentor-column -eight phpdocumentor-content">
  99. <ul class="phpdocumentor-breadcrumbs">
  100. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  101. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  102. </ul>
  103. <article class="phpdocumentor-element -class">
  104. <h2 class="phpdocumentor-content__title">
  105. QRCodeTest
  106. <span class="phpdocumentor-element__extends">
  107. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  108. </span>
  109. <div class="phpdocumentor-element__package">
  110. in package
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  113. </ul>
  114. </div>
  115. </h2>
  116. <aside class="phpdocumentor-element-found-in">
  117. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  118. :
  119. <span class="phpdocumentor-element-found-in__line">22</span>
  120. </aside>
  121. <p class="phpdocumentor-summary">Tests basic functions of the QRCode class</p>
  122. <h3 id="toc">
  123. Table of Contents
  124. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  125. </h3>
  126. <dl class="phpdocumentor-table-of-contents">
  127. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  128. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_builddir">$builddir</a>
  129. <span>
  130. &nbsp;: string </span>
  131. </dt>
  132. <dd></dd>
  133. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  134. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_options">$options</a>
  135. <span>
  136. &nbsp;: <a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  137. </dt>
  138. <dd></dd>
  139. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  140. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_qrcode">$qrcode</a>
  141. <span>
  142. &nbsp;: <a href="classes/chillerlan-QRCode-QRCode.html"><abbr title="\chillerlan\QRCode\QRCode">QRCode</abbr></a> </span>
  143. </dt>
  144. <dd></dd>
  145. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  146. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotExistsException">testInitCustomOutputInterfaceNotExistsException()</a>
  147. <span>
  148. &nbsp;: void </span>
  149. </dt>
  150. <dd>tests if an exception is thrown if the given output class does not exist</dd>
  151. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  152. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotImplementsException">testInitCustomOutputInterfaceNotImplementsException()</a>
  153. <span>
  154. &nbsp;: void </span>
  155. </dt>
  156. <dd>tests if an exception is thrown if the given output class does not implement QROutputInterface</dd>
  157. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  158. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitOutputInterfaceException">testInitOutputInterfaceException()</a>
  159. <span>
  160. &nbsp;: void </span>
  161. </dt>
  162. <dd>tests if an exception is thrown when an invalid (built-in) output type is specified</dd>
  163. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  164. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testRenderToCacheFile">testRenderToCacheFile()</a>
  165. <span>
  166. &nbsp;: void </span>
  167. </dt>
  168. <dd>Tests if a cache file is properly saved in the given path</dd>
  169. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  170. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testSaveException">testSaveException()</a>
  171. <span>
  172. &nbsp;: void </span>
  173. </dt>
  174. <dd>Tests if an exception is thrown when trying to write a cache file to an invalid destination</dd>
  175. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  176. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_setUp">setUp()</a>
  177. <span>
  178. &nbsp;: void </span>
  179. </dt>
  180. <dd>invoke test instances</dd>
  181. </dl>
  182. <section class="phpdocumentor-properties">
  183. <h3 class="phpdocumentor-elements__header" id="properties">
  184. Properties
  185. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  186. </h3>
  187. <article
  188. class="
  189. phpdocumentor-element
  190. -property
  191. -private
  192. "
  193. >
  194. <h4 class="phpdocumentor-element__name" id="property_builddir">
  195. $builddir
  196. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_builddir" class="headerlink"><i class="fas fa-link"></i></a>
  197. <span class="phpdocumentor-element__modifiers">
  198. </span>
  199. </h4>
  200. <aside class="phpdocumentor-element-found-in">
  201. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  202. :
  203. <span class="phpdocumentor-element-found-in__line">26</span>
  204. </aside>
  205. <code class="phpdocumentor-code phpdocumentor-signature ">
  206. <span class="phpdocumentor-signature__visibility">private</span>
  207. <span class="phpdocumentor-signature__type">string</span>
  208. <span class="phpdocumentor-signature__name">$builddir</span>
  209. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/../.build/output_test&#039;</span></code>
  210. <section class="phpdocumentor-description"></section>
  211. <section class="phpdocumentor-description"></section>
  212. </article>
  213. <article
  214. class="
  215. phpdocumentor-element
  216. -property
  217. -private
  218. "
  219. >
  220. <h4 class="phpdocumentor-element__name" id="property_options">
  221. $options
  222. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  223. <span class="phpdocumentor-element__modifiers">
  224. </span>
  225. </h4>
  226. <aside class="phpdocumentor-element-found-in">
  227. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  228. :
  229. <span class="phpdocumentor-element-found-in__line">25</span>
  230. </aside>
  231. <code class="phpdocumentor-code phpdocumentor-signature ">
  232. <span class="phpdocumentor-signature__visibility">private</span>
  233. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  234. <span class="phpdocumentor-signature__name">$options</span>
  235. </code>
  236. <section class="phpdocumentor-description"></section>
  237. <section class="phpdocumentor-description"></section>
  238. </article>
  239. <article
  240. class="
  241. phpdocumentor-element
  242. -property
  243. -private
  244. "
  245. >
  246. <h4 class="phpdocumentor-element__name" id="property_qrcode">
  247. $qrcode
  248. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_qrcode" class="headerlink"><i class="fas fa-link"></i></a>
  249. <span class="phpdocumentor-element__modifiers">
  250. </span>
  251. </h4>
  252. <aside class="phpdocumentor-element-found-in">
  253. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  254. :
  255. <span class="phpdocumentor-element-found-in__line">24</span>
  256. </aside>
  257. <code class="phpdocumentor-code phpdocumentor-signature ">
  258. <span class="phpdocumentor-signature__visibility">private</span>
  259. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QRCode.html"><abbr title="\chillerlan\QRCode\QRCode">QRCode</abbr></a></span>
  260. <span class="phpdocumentor-signature__name">$qrcode</span>
  261. </code>
  262. <section class="phpdocumentor-description"></section>
  263. <section class="phpdocumentor-description"></section>
  264. </article>
  265. </section>
  266. <section class="phpdocumentor-methods">
  267. <h3 class="phpdocumentor-elements__header" id="methods">
  268. Methods
  269. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  270. </h3>
  271. <article
  272. class="phpdocumentor-element
  273. -method
  274. -public
  275. "
  276. >
  277. <h4 class="phpdocumentor-element__name" id="method_testInitCustomOutputInterfaceNotExistsException">
  278. testInitCustomOutputInterfaceNotExistsException()
  279. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotExistsException" class="headerlink"><i class="fas fa-link"></i></a>
  280. </h4>
  281. <aside class="phpdocumentor-element-found-in">
  282. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  283. :
  284. <span class="phpdocumentor-element-found-in__line">51</span>
  285. </aside>
  286. <p class="phpdocumentor-summary">tests if an exception is thrown if the given output class does not exist</p>
  287. <code class="phpdocumentor-code phpdocumentor-signature ">
  288. <span class="phpdocumentor-signature__visibility">public</span>
  289. <span class="phpdocumentor-signature__name">testInitCustomOutputInterfaceNotExistsException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  290. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  291. <span class="phpdocumentor-signature__response_type">void</span>
  292. &mdash;
  293. </article>
  294. <article
  295. class="phpdocumentor-element
  296. -method
  297. -public
  298. "
  299. >
  300. <h4 class="phpdocumentor-element__name" id="method_testInitCustomOutputInterfaceNotImplementsException">
  301. testInitCustomOutputInterfaceNotImplementsException()
  302. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotImplementsException" class="headerlink"><i class="fas fa-link"></i></a>
  303. </h4>
  304. <aside class="phpdocumentor-element-found-in">
  305. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  306. :
  307. <span class="phpdocumentor-element-found-in__line">63</span>
  308. </aside>
  309. <p class="phpdocumentor-summary">tests if an exception is thrown if the given output class does not implement QROutputInterface</p>
  310. <code class="phpdocumentor-code phpdocumentor-signature ">
  311. <span class="phpdocumentor-signature__visibility">public</span>
  312. <span class="phpdocumentor-signature__name">testInitCustomOutputInterfaceNotImplementsException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  313. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  314. <span class="phpdocumentor-signature__response_type">void</span>
  315. &mdash;
  316. </article>
  317. <article
  318. class="phpdocumentor-element
  319. -method
  320. -public
  321. "
  322. >
  323. <h4 class="phpdocumentor-element__name" id="method_testInitOutputInterfaceException">
  324. testInitOutputInterfaceException()
  325. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitOutputInterfaceException" class="headerlink"><i class="fas fa-link"></i></a>
  326. </h4>
  327. <aside class="phpdocumentor-element-found-in">
  328. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  329. :
  330. <span class="phpdocumentor-element-found-in__line">39</span>
  331. </aside>
  332. <p class="phpdocumentor-summary">tests if an exception is thrown when an invalid (built-in) output type is specified</p>
  333. <code class="phpdocumentor-code phpdocumentor-signature ">
  334. <span class="phpdocumentor-signature__visibility">public</span>
  335. <span class="phpdocumentor-signature__name">testInitOutputInterfaceException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  336. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  337. <span class="phpdocumentor-signature__response_type">void</span>
  338. &mdash;
  339. </article>
  340. <article
  341. class="phpdocumentor-element
  342. -method
  343. -public
  344. "
  345. >
  346. <h4 class="phpdocumentor-element__name" id="method_testRenderToCacheFile">
  347. testRenderToCacheFile()
  348. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testRenderToCacheFile" class="headerlink"><i class="fas fa-link"></i></a>
  349. </h4>
  350. <aside class="phpdocumentor-element-found-in">
  351. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  352. :
  353. <span class="phpdocumentor-element-found-in__line">88</span>
  354. </aside>
  355. <p class="phpdocumentor-summary">Tests if a cache file is properly saved in the given path</p>
  356. <code class="phpdocumentor-code phpdocumentor-signature ">
  357. <span class="phpdocumentor-signature__visibility">public</span>
  358. <span class="phpdocumentor-signature__name">testRenderToCacheFile</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  359. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  360. <span class="phpdocumentor-signature__response_type">void</span>
  361. &mdash;
  362. </article>
  363. <article
  364. class="phpdocumentor-element
  365. -method
  366. -public
  367. "
  368. >
  369. <h4 class="phpdocumentor-element__name" id="method_testSaveException">
  370. testSaveException()
  371. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testSaveException" class="headerlink"><i class="fas fa-link"></i></a>
  372. </h4>
  373. <aside class="phpdocumentor-element-found-in">
  374. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  375. :
  376. <span class="phpdocumentor-element-found-in__line">76</span>
  377. </aside>
  378. <p class="phpdocumentor-summary">Tests if an exception is thrown when trying to write a cache file to an invalid destination</p>
  379. <code class="phpdocumentor-code phpdocumentor-signature ">
  380. <span class="phpdocumentor-signature__visibility">public</span>
  381. <span class="phpdocumentor-signature__name">testSaveException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  382. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  383. <span class="phpdocumentor-signature__response_type">void</span>
  384. &mdash;
  385. </article>
  386. <article
  387. class="phpdocumentor-element
  388. -method
  389. -protected
  390. "
  391. >
  392. <h4 class="phpdocumentor-element__name" id="method_setUp">
  393. setUp()
  394. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  395. </h4>
  396. <aside class="phpdocumentor-element-found-in">
  397. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRCodeTest.php"><a href="files/tests-qrcodetest.html"><abbr title="tests/QRCodeTest.php">QRCodeTest.php</abbr></a></abbr>
  398. :
  399. <span class="phpdocumentor-element-found-in__line">31</span>
  400. </aside>
  401. <p class="phpdocumentor-summary">invoke test instances</p>
  402. <code class="phpdocumentor-code phpdocumentor-signature ">
  403. <span class="phpdocumentor-signature__visibility">protected</span>
  404. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  405. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  406. <span class="phpdocumentor-signature__response_type">void</span>
  407. &mdash;
  408. </article>
  409. </section>
  410. <script type="text/javascript">
  411. function loadExternalCodeSnippets(line) {
  412. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  413. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  414. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  415. var language = 'php';
  416. var code = document.createElement('code');
  417. code.className = 'language-' + language;
  418. pre.textContent = '';
  419. pre.setAttribute('data-line', line)
  420. code.textContent = 'Loading…';
  421. pre.appendChild(code);
  422. var xhr = new XMLHttpRequest();
  423. xhr.open('GET', src, true);
  424. xhr.onreadystatechange = function () {
  425. if (xhr.readyState == 4) {
  426. if (xhr.status < 400 && xhr.responseText) {
  427. code.textContent = xhr.responseText;
  428. Prism.highlightElement(code);
  429. }
  430. else if (xhr.status >= 400) {
  431. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  432. }
  433. else {
  434. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  435. }
  436. }
  437. };
  438. xhr.send(null);
  439. });
  440. }
  441. var modals = document.querySelectorAll("[data-modal]");
  442. modals.forEach(function (trigger) {
  443. trigger.addEventListener("click", function (event) {
  444. //event.preventDefault();
  445. const modal = document.getElementById(trigger.dataset.modal);
  446. modal.classList.add("phpdocumentor-modal__open");
  447. loadExternalCodeSnippets(trigger.dataset.line)
  448. const exits = modal.querySelectorAll("[data-exit-button]");
  449. exits.forEach(function (exit) {
  450. exit.addEventListener("click", function (event) {
  451. event.preventDefault();
  452. modal.classList.remove("phpdocumentor-modal__open");
  453. });
  454. });
  455. });
  456. });
  457. </script>
  458. </article>
  459. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  460. <section class="phpdocumentor-search-results__dialog">
  461. <header class="phpdocumentor-search-results__header">
  462. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  463. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  464. </header>
  465. <section class="phpdocumentor-search-results__body">
  466. <ul class="phpdocumentor-search-results__entries"></ul>
  467. </section>
  468. </section>
  469. </section>
  470. </div>
  471. </div>
  472. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  473. </main>
  474. <script>
  475. cssVars({});
  476. </script>
  477. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  478. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  479. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  480. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  481. </body>
  482. </html>