chillerlan-QRCodeTest-QRCodeTest.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  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. </ul>
  105. <article class="phpdocumentor-element -class">
  106. <h2 class="phpdocumentor-content__title">
  107. QRCodeTest
  108. <span class="phpdocumentor-element__extends">
  109. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  110. </span>
  111. <div class="phpdocumentor-element__package">
  112. in package
  113. <ul class="phpdocumentor-breadcrumbs">
  114. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  115. </ul>
  116. </div>
  117. </h2>
  118. <div class="phpdocumentor-label-line">
  119. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  120. </div>
  121. <aside class="phpdocumentor-element-found-in">
  122. <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>
  123. :
  124. <span class="phpdocumentor-element-found-in__line">22</span>
  125. </aside>
  126. <p class="phpdocumentor-summary">Tests basic functions of the QRCode class</p>
  127. <h3 id="toc">
  128. Table of Contents
  129. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  130. </h3>
  131. <h4 id="toc-properties">
  132. Properties
  133. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  134. </h4>
  135. <dl class="phpdocumentor-table-of-contents">
  136. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  137. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_builddir">$builddir</a>
  138. <span>
  139. &nbsp;: string </span>
  140. </dt>
  141. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  142. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_options">$options</a>
  143. <span>
  144. &nbsp;: <a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  145. </dt>
  146. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  147. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_qrcode">$qrcode</a>
  148. <span>
  149. &nbsp;: <a href="classes/chillerlan-QRCode-QRCode.html"><abbr title="\chillerlan\QRCode\QRCode">QRCode</abbr></a> </span>
  150. </dt>
  151. </dl>
  152. <h4 id="toc-methods">
  153. Methods
  154. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  155. </h4>
  156. <dl class="phpdocumentor-table-of-contents">
  157. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  158. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotExistsException">testInitCustomOutputInterfaceNotExistsException()</a>
  159. <span>
  160. &nbsp;: void </span>
  161. </dt>
  162. <dd>tests if an exception is thrown if the given output class does not exist</dd>
  163. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  164. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotImplementsException">testInitCustomOutputInterfaceNotImplementsException()</a>
  165. <span>
  166. &nbsp;: void </span>
  167. </dt>
  168. <dd>tests if an exception is thrown if the given output class does not implement QROutputInterface</dd>
  169. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  170. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitOutputInterfaceException">testInitOutputInterfaceException()</a>
  171. <span>
  172. &nbsp;: void </span>
  173. </dt>
  174. <dd>tests if an exception is thrown when an invalid (built-in) output type is specified</dd>
  175. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  176. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testRenderToCacheFile">testRenderToCacheFile()</a>
  177. <span>
  178. &nbsp;: void </span>
  179. </dt>
  180. <dd>Tests if a cache file is properly saved in the given path</dd>
  181. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  182. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testSaveException">testSaveException()</a>
  183. <span>
  184. &nbsp;: void </span>
  185. </dt>
  186. <dd>Tests if an exception is thrown when trying to write a cache file to an invalid destination</dd>
  187. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  188. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_setUp">setUp()</a>
  189. <span>
  190. &nbsp;: void </span>
  191. </dt>
  192. <dd>invoke test instances</dd>
  193. </dl>
  194. <section class="phpdocumentor-properties">
  195. <h3 class="phpdocumentor-elements__header" id="properties">
  196. Properties
  197. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  198. </h3>
  199. <article
  200. class="
  201. phpdocumentor-element
  202. -property
  203. -private
  204. "
  205. >
  206. <h4 class="phpdocumentor-element__name" id="property_builddir">
  207. $builddir
  208. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_builddir" class="headerlink"><i class="fas fa-link"></i></a>
  209. <span class="phpdocumentor-element__modifiers">
  210. </span>
  211. </h4>
  212. <aside class="phpdocumentor-element-found-in">
  213. <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>
  214. :
  215. <span class="phpdocumentor-element-found-in__line">26</span>
  216. </aside>
  217. <code class="phpdocumentor-code phpdocumentor-signature ">
  218. <span class="phpdocumentor-signature__visibility">private</span>
  219. <span class="phpdocumentor-signature__type">string</span>
  220. <span class="phpdocumentor-signature__name">$builddir</span>
  221. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/../.build/output_test&#039;</span></code>
  222. </article>
  223. <article
  224. class="
  225. phpdocumentor-element
  226. -property
  227. -private
  228. "
  229. >
  230. <h4 class="phpdocumentor-element__name" id="property_options">
  231. $options
  232. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  233. <span class="phpdocumentor-element__modifiers">
  234. </span>
  235. </h4>
  236. <aside class="phpdocumentor-element-found-in">
  237. <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>
  238. :
  239. <span class="phpdocumentor-element-found-in__line">25</span>
  240. </aside>
  241. <code class="phpdocumentor-code phpdocumentor-signature ">
  242. <span class="phpdocumentor-signature__visibility">private</span>
  243. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  244. <span class="phpdocumentor-signature__name">$options</span>
  245. </code>
  246. </article>
  247. <article
  248. class="
  249. phpdocumentor-element
  250. -property
  251. -private
  252. "
  253. >
  254. <h4 class="phpdocumentor-element__name" id="property_qrcode">
  255. $qrcode
  256. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_qrcode" class="headerlink"><i class="fas fa-link"></i></a>
  257. <span class="phpdocumentor-element__modifiers">
  258. </span>
  259. </h4>
  260. <aside class="phpdocumentor-element-found-in">
  261. <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>
  262. :
  263. <span class="phpdocumentor-element-found-in__line">24</span>
  264. </aside>
  265. <code class="phpdocumentor-code phpdocumentor-signature ">
  266. <span class="phpdocumentor-signature__visibility">private</span>
  267. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QRCode.html"><abbr title="\chillerlan\QRCode\QRCode">QRCode</abbr></a></span>
  268. <span class="phpdocumentor-signature__name">$qrcode</span>
  269. </code>
  270. </article>
  271. </section>
  272. <section class="phpdocumentor-methods">
  273. <h3 class="phpdocumentor-elements__header" id="methods">
  274. Methods
  275. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  276. </h3>
  277. <article
  278. class="phpdocumentor-element
  279. -method
  280. -public
  281. "
  282. >
  283. <h4 class="phpdocumentor-element__name" id="method_testInitCustomOutputInterfaceNotExistsException">
  284. testInitCustomOutputInterfaceNotExistsException()
  285. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotExistsException" class="headerlink"><i class="fas fa-link"></i></a>
  286. </h4>
  287. <aside class="phpdocumentor-element-found-in">
  288. <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>
  289. :
  290. <span class="phpdocumentor-element-found-in__line">51</span>
  291. </aside>
  292. <p class="phpdocumentor-summary">tests if an exception is thrown if the given output class does not exist</p>
  293. <code class="phpdocumentor-code phpdocumentor-signature ">
  294. <span class="phpdocumentor-signature__visibility">public</span>
  295. <span class="phpdocumentor-signature__name">testInitCustomOutputInterfaceNotExistsException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  296. <div class="phpdocumentor-label-line">
  297. </div>
  298. </article>
  299. <article
  300. class="phpdocumentor-element
  301. -method
  302. -public
  303. "
  304. >
  305. <h4 class="phpdocumentor-element__name" id="method_testInitCustomOutputInterfaceNotImplementsException">
  306. testInitCustomOutputInterfaceNotImplementsException()
  307. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotImplementsException" class="headerlink"><i class="fas fa-link"></i></a>
  308. </h4>
  309. <aside class="phpdocumentor-element-found-in">
  310. <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>
  311. :
  312. <span class="phpdocumentor-element-found-in__line">63</span>
  313. </aside>
  314. <p class="phpdocumentor-summary">tests if an exception is thrown if the given output class does not implement QROutputInterface</p>
  315. <code class="phpdocumentor-code phpdocumentor-signature ">
  316. <span class="phpdocumentor-signature__visibility">public</span>
  317. <span class="phpdocumentor-signature__name">testInitCustomOutputInterfaceNotImplementsException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  318. <div class="phpdocumentor-label-line">
  319. </div>
  320. </article>
  321. <article
  322. class="phpdocumentor-element
  323. -method
  324. -public
  325. "
  326. >
  327. <h4 class="phpdocumentor-element__name" id="method_testInitOutputInterfaceException">
  328. testInitOutputInterfaceException()
  329. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitOutputInterfaceException" class="headerlink"><i class="fas fa-link"></i></a>
  330. </h4>
  331. <aside class="phpdocumentor-element-found-in">
  332. <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>
  333. :
  334. <span class="phpdocumentor-element-found-in__line">39</span>
  335. </aside>
  336. <p class="phpdocumentor-summary">tests if an exception is thrown when an invalid (built-in) output type is specified</p>
  337. <code class="phpdocumentor-code phpdocumentor-signature ">
  338. <span class="phpdocumentor-signature__visibility">public</span>
  339. <span class="phpdocumentor-signature__name">testInitOutputInterfaceException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  340. <div class="phpdocumentor-label-line">
  341. </div>
  342. </article>
  343. <article
  344. class="phpdocumentor-element
  345. -method
  346. -public
  347. "
  348. >
  349. <h4 class="phpdocumentor-element__name" id="method_testRenderToCacheFile">
  350. testRenderToCacheFile()
  351. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testRenderToCacheFile" class="headerlink"><i class="fas fa-link"></i></a>
  352. </h4>
  353. <aside class="phpdocumentor-element-found-in">
  354. <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>
  355. :
  356. <span class="phpdocumentor-element-found-in__line">88</span>
  357. </aside>
  358. <p class="phpdocumentor-summary">Tests if a cache file is properly saved in the given path</p>
  359. <code class="phpdocumentor-code phpdocumentor-signature ">
  360. <span class="phpdocumentor-signature__visibility">public</span>
  361. <span class="phpdocumentor-signature__name">testRenderToCacheFile</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  362. <div class="phpdocumentor-label-line">
  363. </div>
  364. </article>
  365. <article
  366. class="phpdocumentor-element
  367. -method
  368. -public
  369. "
  370. >
  371. <h4 class="phpdocumentor-element__name" id="method_testSaveException">
  372. testSaveException()
  373. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testSaveException" class="headerlink"><i class="fas fa-link"></i></a>
  374. </h4>
  375. <aside class="phpdocumentor-element-found-in">
  376. <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>
  377. :
  378. <span class="phpdocumentor-element-found-in__line">76</span>
  379. </aside>
  380. <p class="phpdocumentor-summary">Tests if an exception is thrown when trying to write a cache file to an invalid destination</p>
  381. <code class="phpdocumentor-code phpdocumentor-signature ">
  382. <span class="phpdocumentor-signature__visibility">public</span>
  383. <span class="phpdocumentor-signature__name">testSaveException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  384. <div class="phpdocumentor-label-line">
  385. </div>
  386. </article>
  387. <article
  388. class="phpdocumentor-element
  389. -method
  390. -protected
  391. "
  392. >
  393. <h4 class="phpdocumentor-element__name" id="method_setUp">
  394. setUp()
  395. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  396. </h4>
  397. <aside class="phpdocumentor-element-found-in">
  398. <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>
  399. :
  400. <span class="phpdocumentor-element-found-in__line">31</span>
  401. </aside>
  402. <p class="phpdocumentor-summary">invoke test instances</p>
  403. <code class="phpdocumentor-code phpdocumentor-signature ">
  404. <span class="phpdocumentor-signature__visibility">protected</span>
  405. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  406. <div class="phpdocumentor-label-line">
  407. </div>
  408. </article>
  409. </section>
  410. <div class="phpdocumentor-modal" id="source-view">
  411. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  412. <div class="phpdocumentor-modal-container">
  413. <div class="phpdocumentor-modal-content">
  414. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/QRCodeTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  415. </div>
  416. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  417. </div>
  418. </div>
  419. <script type="text/javascript">
  420. (function () {
  421. function loadExternalCodeSnippet(el, url, line) {
  422. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  423. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  424. const language = 'php';
  425. const code = document.createElement('code');
  426. code.className = 'language-' + language;
  427. pre.textContent = '';
  428. pre.setAttribute('data-line', line)
  429. code.textContent = 'Loading…';
  430. pre.appendChild(code);
  431. var xhr = new XMLHttpRequest();
  432. xhr.open('GET', src, true);
  433. xhr.onreadystatechange = function () {
  434. if (xhr.readyState !== 4) {
  435. return;
  436. }
  437. if (xhr.status < 400 && xhr.responseText) {
  438. code.textContent = xhr.responseText;
  439. Prism.highlightElement(code);
  440. return;
  441. }
  442. if (xhr.status === 404) {
  443. code.textContent = '✖ Error: File could not be found';
  444. return;
  445. }
  446. if (xhr.status >= 400) {
  447. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  448. return;
  449. }
  450. code.textContent = '✖ Error: An unknown error occurred';
  451. };
  452. xhr.send(null);
  453. });
  454. }
  455. const modalButtons = document.querySelectorAll("[data-modal]");
  456. const openedAsLocalFile = window.location.protocol === 'file:';
  457. if (modalButtons.length > 0 && openedAsLocalFile) {
  458. console.warn(
  459. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  460. 'browsers block XHR requests when a page is opened this way'
  461. );
  462. }
  463. modalButtons.forEach(function (trigger) {
  464. if (openedAsLocalFile) {
  465. trigger.setAttribute("hidden", "hidden");
  466. }
  467. trigger.addEventListener("click", function (event) {
  468. event.preventDefault();
  469. const modal = document.getElementById(trigger.dataset.modal);
  470. if (!modal) {
  471. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  472. return;
  473. }
  474. modal.classList.add("phpdocumentor-modal__open");
  475. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  476. const exits = modal.querySelectorAll("[data-exit-button]");
  477. exits.forEach(function (exit) {
  478. exit.addEventListener("click", function (event) {
  479. event.preventDefault();
  480. modal.classList.remove("phpdocumentor-modal__open");
  481. });
  482. });
  483. });
  484. });
  485. })();
  486. </script>
  487. </article>
  488. </section>
  489. <section class="phpdocumentor-on-this-page__sidebar">
  490. <section class="phpdocumentor-on-this-page__content">
  491. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  492. <ul class="phpdocumentor-list -clean">
  493. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  494. <li>
  495. <ul class="phpdocumentor-list -clean">
  496. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-properties">Properties</a></li>
  497. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-methods">Methods</a></li>
  498. </ul>
  499. </li>
  500. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  501. <li>
  502. <ul class="phpdocumentor-list -clean">
  503. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_builddir">$builddir<a href="classes/chillerlan-QRCodeTest-QRCodeTest.html"></li>
  504. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_options">$options<a href="classes/chillerlan-QRCodeTest-QRCodeTest.html"></li>
  505. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_qrcode">$qrcode<a href="classes/chillerlan-QRCodeTest-QRCodeTest.html"></li>
  506. </ul>
  507. </li>
  508. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  509. <li>
  510. <ul class="phpdocumentor-list -clean">
  511. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotExistsException">testInitCustomOutputInterfaceNotExistsException()</a></li>
  512. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitCustomOutputInterfaceNotImplementsException">testInitCustomOutputInterfaceNotImplementsException()</a></li>
  513. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testInitOutputInterfaceException">testInitOutputInterfaceException()</a></li>
  514. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testRenderToCacheFile">testRenderToCacheFile()</a></li>
  515. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_testSaveException">testSaveException()</a></li>
  516. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_setUp">setUp()</a></li>
  517. </ul>
  518. </li>
  519. </ul>
  520. </section>
  521. </section>
  522. </div>
  523. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  524. <section class="phpdocumentor-search-results__dialog">
  525. <header class="phpdocumentor-search-results__header">
  526. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  527. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  528. </header>
  529. <section class="phpdocumentor-search-results__body">
  530. <ul class="phpdocumentor-search-results__entries"></ul>
  531. </section>
  532. </section>
  533. </section>
  534. </div>
  535. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  536. </main>
  537. <script>
  538. cssVars({});
  539. </script>
  540. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  541. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  542. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  543. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  544. </body>
  545. </html>