chillerlan-QRCodeTest-QRCodeTest.html 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257
  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. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  111. </ul>
  112. <article class="phpdocumentor-element -class">
  113. <h2 class="phpdocumentor-content__title">
  114. QRCodeTest
  115. <span class="phpdocumentor-element__extends">
  116. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  117. </span>
  118. <div class="phpdocumentor-element__package">
  119. in package
  120. <ul class="phpdocumentor-breadcrumbs">
  121. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  122. </ul>
  123. </div>
  124. <span class="phpdocumentor-element__extends">
  125. uses
  126. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html"><abbr title="\chillerlan\QRCodeTest\Traits\BuildDirTrait">BuildDirTrait</abbr></a> </span>
  127. </h2>
  128. <div class="phpdocumentor-label-line">
  129. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  130. </div>
  131. <aside class="phpdocumentor-element-found-in">
  132. <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>
  133. :
  134. <span class="phpdocumentor-element-found-in__line">25</span>
  135. </aside>
  136. <p class="phpdocumentor-summary">Tests basic functions of the QRCode class</p>
  137. <h3 id="toc">
  138. Table of Contents
  139. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  140. </h3>
  141. <h4 id="toc-constants">
  142. Constants
  143. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  144. </h4>
  145. <dl class="phpdocumentor-table-of-contents">
  146. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  147. <a class="" href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#constant__buildDir">_buildDir</a>
  148. <span>
  149. &nbsp;= __DIR__ . &#039;/../../.build/&#039; </span>
  150. </dt>
  151. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  152. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#constant_buildDir">buildDir</a>
  153. <span>
  154. &nbsp;= &#039;output-test&#039; </span>
  155. </dt>
  156. </dl>
  157. <h4 id="toc-properties">
  158. Properties
  159. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  160. </h4>
  161. <dl class="phpdocumentor-table-of-contents">
  162. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  163. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_options">$options</a>
  164. <span>
  165. &nbsp;: <a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  166. </dt>
  167. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  168. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_qrcode">$qrcode</a>
  169. <span>
  170. &nbsp;: <a href="classes/chillerlan-QRCode-QRCode.html"><abbr title="\chillerlan\QRCode\QRCode">QRCode</abbr></a> </span>
  171. </dt>
  172. </dl>
  173. <h4 id="toc-methods">
  174. Methods
  175. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  176. </h4>
  177. <dl class="phpdocumentor-table-of-contents">
  178. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  179. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_addEciSegment">addEciSegment()</a>
  180. <span>
  181. &nbsp;: void </span>
  182. </dt>
  183. <dd>Tests adding and decoding an ECI sequence</dd>
  184. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  185. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_addEciSegmentInvalidCharsetException">addEciSegmentInvalidCharsetException()</a>
  186. <span>
  187. &nbsp;: void </span>
  188. </dt>
  189. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  190. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_initCustomOutputInterfaceNotExistsException">initCustomOutputInterfaceNotExistsException()</a>
  191. <span>
  192. &nbsp;: void </span>
  193. </dt>
  194. <dd>tests if an exception is thrown if the given output class does not exist</dd>
  195. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  196. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_initCustomOutputInterfaceNotImplementsException">initCustomOutputInterfaceNotImplementsException()</a>
  197. <span>
  198. &nbsp;: void </span>
  199. </dt>
  200. <dd>tests if an exception is thrown if the given output class does not implement QROutputInterface</dd>
  201. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  202. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_renderToCacheFile">renderToCacheFile()</a>
  203. <span>
  204. &nbsp;: void </span>
  205. </dt>
  206. <dd>Tests if a cache file is properly saved in the given path</dd>
  207. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  208. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_saveException">saveException()</a>
  209. <span>
  210. &nbsp;: void </span>
  211. </dt>
  212. <dd>Tests if an exception is thrown when trying to write a cache file to an invalid destination</dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  214. <a class="" href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_createBuildDir">createBuildDir()</a>
  215. <span>
  216. &nbsp;: void </span>
  217. </dt>
  218. <dd>attempts to create the build dir</dd>
  219. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  220. <a class="" href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildDir">getBuildDir()</a>
  221. <span>
  222. &nbsp;: string </span>
  223. </dt>
  224. <dd>returns the full (real) path to the given build path</dd>
  225. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  226. <a class="" href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildFileContent">getBuildFileContent()</a>
  227. <span>
  228. &nbsp;: string </span>
  229. </dt>
  230. <dd>returns the contents of the given build file</dd>
  231. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  232. <a class="" href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildFilePath">getBuildFilePath()</a>
  233. <span>
  234. &nbsp;: string </span>
  235. </dt>
  236. <dd>returns the full (real) path to the given build file</dd>
  237. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  238. <a class="" href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildPath">getBuildPath()</a>
  239. <span>
  240. &nbsp;: string </span>
  241. </dt>
  242. <dd>returns the full raw path to the build dir</dd>
  243. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  244. <a class="" href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_setUp">setUp()</a>
  245. <span>
  246. &nbsp;: void </span>
  247. </dt>
  248. <dd>invoke test instances</dd>
  249. </dl>
  250. <section class="phpdocumentor-constants">
  251. <h3 class="phpdocumentor-elements__header" id="constants">
  252. Constants
  253. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  254. </h3>
  255. <article class="phpdocumentor-element -constant -protected ">
  256. <h4 class="phpdocumentor-element__name" id="constant__buildDir">
  257. _buildDir
  258. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#constant__buildDir" class="headerlink"><i class="fas fa-link"></i></a>
  259. </h4>
  260. <aside class="phpdocumentor-element-found-in">
  261. <abbr class="phpdocumentor-element-found-in__file" title="tests/Traits/BuildDirTrait.php"><a href="files/tests-traits-builddirtrait.html"><abbr title="tests/Traits/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  262. :
  263. <span class="phpdocumentor-element-found-in__line">22</span>
  264. </aside>
  265. <code class="phpdocumentor-signature phpdocumentor-code ">
  266. <span class="phpdocumentor-signature__visibility">protected</span>
  267. <span class="phpdocumentor-signature__type">mixed</span>
  268. <span class="phpdocumentor-signature__name">_buildDir</span>
  269. = <span class="phpdocumentor-signature__default-value">__DIR__ . &#039;/../../.build/&#039;</span>
  270. </code>
  271. </article>
  272. <article class="phpdocumentor-element -constant -private ">
  273. <h4 class="phpdocumentor-element__name" id="constant_buildDir">
  274. buildDir
  275. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#constant_buildDir" class="headerlink"><i class="fas fa-link"></i></a>
  276. </h4>
  277. <aside class="phpdocumentor-element-found-in">
  278. <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>
  279. :
  280. <span class="phpdocumentor-element-found-in__line">31</span>
  281. </aside>
  282. <code class="phpdocumentor-signature phpdocumentor-code ">
  283. <span class="phpdocumentor-signature__visibility">private</span>
  284. <span class="phpdocumentor-signature__type">mixed</span>
  285. <span class="phpdocumentor-signature__name">buildDir</span>
  286. = <span class="phpdocumentor-signature__default-value">&#039;output-test&#039;</span>
  287. </code>
  288. </article>
  289. </section>
  290. <section class="phpdocumentor-properties">
  291. <h3 class="phpdocumentor-elements__header" id="properties">
  292. Properties
  293. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  294. </h3>
  295. <article
  296. class="
  297. phpdocumentor-element
  298. -property
  299. -private
  300. "
  301. >
  302. <h4 class="phpdocumentor-element__name" id="property_options">
  303. $options
  304. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  305. <span class="phpdocumentor-element__modifiers">
  306. </span>
  307. </h4>
  308. <aside class="phpdocumentor-element-found-in">
  309. <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>
  310. :
  311. <span class="phpdocumentor-element-found-in__line">29</span>
  312. </aside>
  313. <code class="phpdocumentor-code phpdocumentor-signature ">
  314. <span class="phpdocumentor-signature__visibility">private</span>
  315. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  316. <span class="phpdocumentor-signature__name">$options</span>
  317. </code>
  318. </article>
  319. <article
  320. class="
  321. phpdocumentor-element
  322. -property
  323. -private
  324. "
  325. >
  326. <h4 class="phpdocumentor-element__name" id="property_qrcode">
  327. $qrcode
  328. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_qrcode" class="headerlink"><i class="fas fa-link"></i></a>
  329. <span class="phpdocumentor-element__modifiers">
  330. </span>
  331. </h4>
  332. <aside class="phpdocumentor-element-found-in">
  333. <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>
  334. :
  335. <span class="phpdocumentor-element-found-in__line">28</span>
  336. </aside>
  337. <code class="phpdocumentor-code phpdocumentor-signature ">
  338. <span class="phpdocumentor-signature__visibility">private</span>
  339. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-QRCode.html"><abbr title="\chillerlan\QRCode\QRCode">QRCode</abbr></a></span>
  340. <span class="phpdocumentor-signature__name">$qrcode</span>
  341. </code>
  342. </article>
  343. </section>
  344. <section class="phpdocumentor-methods">
  345. <h3 class="phpdocumentor-elements__header" id="methods">
  346. Methods
  347. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  348. </h3>
  349. <article
  350. class="phpdocumentor-element
  351. -method
  352. -public
  353. "
  354. >
  355. <h4 class="phpdocumentor-element__name" id="method_addEciSegment">
  356. addEciSegment()
  357. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_addEciSegment" class="headerlink"><i class="fas fa-link"></i></a>
  358. </h4>
  359. <aside class="phpdocumentor-element-found-in">
  360. <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>
  361. :
  362. <span class="phpdocumentor-element-found-in__line">100</span>
  363. </aside>
  364. <p class="phpdocumentor-summary">Tests adding and decoding an ECI sequence</p>
  365. <code class="phpdocumentor-code phpdocumentor-signature ">
  366. <span class="phpdocumentor-signature__visibility">public</span>
  367. <span class="phpdocumentor-signature__name">addEciSegment</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  368. <div class="phpdocumentor-label-line">
  369. </div>
  370. <section class="phpdocumentor-attributes">
  371. <h5 class="phpdocumentor-elements__header" id="attributes">
  372. Attributes <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_addEciSegment#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  373. </h5>
  374. <dl class="phpdocumentor-argument-list">
  375. <dt class="phpdocumentor-argument-list__entry">
  376. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  377. </dt>
  378. </dl>
  379. </section>
  380. </article>
  381. <article
  382. class="phpdocumentor-element
  383. -method
  384. -public
  385. "
  386. >
  387. <h4 class="phpdocumentor-element__name" id="method_addEciSegmentInvalidCharsetException">
  388. addEciSegmentInvalidCharsetException()
  389. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_addEciSegmentInvalidCharsetException" class="headerlink"><i class="fas fa-link"></i></a>
  390. </h4>
  391. <aside class="phpdocumentor-element-found-in">
  392. <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>
  393. :
  394. <span class="phpdocumentor-element-found-in__line">116</span>
  395. </aside>
  396. <code class="phpdocumentor-code phpdocumentor-signature ">
  397. <span class="phpdocumentor-signature__visibility">public</span>
  398. <span class="phpdocumentor-signature__name">addEciSegmentInvalidCharsetException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  399. <div class="phpdocumentor-label-line">
  400. </div>
  401. <section class="phpdocumentor-attributes">
  402. <h5 class="phpdocumentor-elements__header" id="attributes">
  403. Attributes <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_addEciSegmentInvalidCharsetException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  404. </h5>
  405. <dl class="phpdocumentor-argument-list">
  406. <dt class="phpdocumentor-argument-list__entry">
  407. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  408. </dt>
  409. </dl>
  410. </section>
  411. </article>
  412. <article
  413. class="phpdocumentor-element
  414. -method
  415. -public
  416. "
  417. >
  418. <h4 class="phpdocumentor-element__name" id="method_initCustomOutputInterfaceNotExistsException">
  419. initCustomOutputInterfaceNotExistsException()
  420. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_initCustomOutputInterfaceNotExistsException" class="headerlink"><i class="fas fa-link"></i></a>
  421. </h4>
  422. <aside class="phpdocumentor-element-found-in">
  423. <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>
  424. :
  425. <span class="phpdocumentor-element-found-in__line">46</span>
  426. </aside>
  427. <p class="phpdocumentor-summary">tests if an exception is thrown if the given output class does not exist</p>
  428. <code class="phpdocumentor-code phpdocumentor-signature ">
  429. <span class="phpdocumentor-signature__visibility">public</span>
  430. <span class="phpdocumentor-signature__name">initCustomOutputInterfaceNotExistsException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  431. <div class="phpdocumentor-label-line">
  432. </div>
  433. <section class="phpdocumentor-attributes">
  434. <h5 class="phpdocumentor-elements__header" id="attributes">
  435. Attributes <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_initCustomOutputInterfaceNotExistsException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  436. </h5>
  437. <dl class="phpdocumentor-argument-list">
  438. <dt class="phpdocumentor-argument-list__entry">
  439. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  440. </dt>
  441. </dl>
  442. </section>
  443. </article>
  444. <article
  445. class="phpdocumentor-element
  446. -method
  447. -public
  448. "
  449. >
  450. <h4 class="phpdocumentor-element__name" id="method_initCustomOutputInterfaceNotImplementsException">
  451. initCustomOutputInterfaceNotImplementsException()
  452. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_initCustomOutputInterfaceNotImplementsException" class="headerlink"><i class="fas fa-link"></i></a>
  453. </h4>
  454. <aside class="phpdocumentor-element-found-in">
  455. <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>
  456. :
  457. <span class="phpdocumentor-element-found-in__line">59</span>
  458. </aside>
  459. <p class="phpdocumentor-summary">tests if an exception is thrown if the given output class does not implement QROutputInterface</p>
  460. <code class="phpdocumentor-code phpdocumentor-signature ">
  461. <span class="phpdocumentor-signature__visibility">public</span>
  462. <span class="phpdocumentor-signature__name">initCustomOutputInterfaceNotImplementsException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  463. <div class="phpdocumentor-label-line">
  464. </div>
  465. <section class="phpdocumentor-attributes">
  466. <h5 class="phpdocumentor-elements__header" id="attributes">
  467. Attributes <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_initCustomOutputInterfaceNotImplementsException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  468. </h5>
  469. <dl class="phpdocumentor-argument-list">
  470. <dt class="phpdocumentor-argument-list__entry">
  471. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  472. </dt>
  473. </dl>
  474. </section>
  475. </article>
  476. <article
  477. class="phpdocumentor-element
  478. -method
  479. -public
  480. "
  481. >
  482. <h4 class="phpdocumentor-element__name" id="method_renderToCacheFile">
  483. renderToCacheFile()
  484. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_renderToCacheFile" class="headerlink"><i class="fas fa-link"></i></a>
  485. </h4>
  486. <aside class="phpdocumentor-element-found-in">
  487. <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>
  488. :
  489. <span class="phpdocumentor-element-found-in__line">85</span>
  490. </aside>
  491. <p class="phpdocumentor-summary">Tests if a cache file is properly saved in the given path</p>
  492. <code class="phpdocumentor-code phpdocumentor-signature ">
  493. <span class="phpdocumentor-signature__visibility">public</span>
  494. <span class="phpdocumentor-signature__name">renderToCacheFile</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  495. <div class="phpdocumentor-label-line">
  496. </div>
  497. <section class="phpdocumentor-attributes">
  498. <h5 class="phpdocumentor-elements__header" id="attributes">
  499. Attributes <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_renderToCacheFile#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  500. </h5>
  501. <dl class="phpdocumentor-argument-list">
  502. <dt class="phpdocumentor-argument-list__entry">
  503. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  504. </dt>
  505. </dl>
  506. </section>
  507. </article>
  508. <article
  509. class="phpdocumentor-element
  510. -method
  511. -public
  512. "
  513. >
  514. <h4 class="phpdocumentor-element__name" id="method_saveException">
  515. saveException()
  516. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_saveException" class="headerlink"><i class="fas fa-link"></i></a>
  517. </h4>
  518. <aside class="phpdocumentor-element-found-in">
  519. <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>
  520. :
  521. <span class="phpdocumentor-element-found-in__line">72</span>
  522. </aside>
  523. <p class="phpdocumentor-summary">Tests if an exception is thrown when trying to write a cache file to an invalid destination</p>
  524. <code class="phpdocumentor-code phpdocumentor-signature ">
  525. <span class="phpdocumentor-signature__visibility">public</span>
  526. <span class="phpdocumentor-signature__name">saveException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  527. <div class="phpdocumentor-label-line">
  528. </div>
  529. <section class="phpdocumentor-attributes">
  530. <h5 class="phpdocumentor-elements__header" id="attributes">
  531. Attributes <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_saveException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  532. </h5>
  533. <dl class="phpdocumentor-argument-list">
  534. <dt class="phpdocumentor-argument-list__entry">
  535. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  536. </dt>
  537. </dl>
  538. </section>
  539. </article>
  540. <article
  541. class="phpdocumentor-element
  542. -method
  543. -protected
  544. "
  545. >
  546. <h4 class="phpdocumentor-element__name" id="method_createBuildDir">
  547. createBuildDir()
  548. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_createBuildDir" class="headerlink"><i class="fas fa-link"></i></a>
  549. </h4>
  550. <aside class="phpdocumentor-element-found-in">
  551. <abbr class="phpdocumentor-element-found-in__file" title="tests/Traits/BuildDirTrait.php"><a href="files/tests-traits-builddirtrait.html"><abbr title="tests/Traits/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  552. :
  553. <span class="phpdocumentor-element-found-in__line">36</span>
  554. </aside>
  555. <p class="phpdocumentor-summary">attempts to create the build dir</p>
  556. <code class="phpdocumentor-code phpdocumentor-signature ">
  557. <span class="phpdocumentor-signature__visibility">protected</span>
  558. <span class="phpdocumentor-signature__name">createBuildDir</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$subPath</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  559. <div class="phpdocumentor-label-line">
  560. </div>
  561. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  562. <dl class="phpdocumentor-argument-list">
  563. <dt class="phpdocumentor-argument-list__entry">
  564. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  565. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  566. </dt>
  567. <dd class="phpdocumentor-argument-list__definition">
  568. </dd>
  569. </dl>
  570. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  571. Tags
  572. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_createBuildDir#tags" class="headerlink"><i class="fas fa-link"></i></a>
  573. </h5>
  574. <dl class="phpdocumentor-tag-list">
  575. <dt class="phpdocumentor-tag-list__entry">
  576. <span class="phpdocumentor-tag__name">throws</span>
  577. </dt>
  578. <dd class="phpdocumentor-tag-list__definition">
  579. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  580. </dd>
  581. </dl>
  582. </article>
  583. <article
  584. class="phpdocumentor-element
  585. -method
  586. -protected
  587. "
  588. >
  589. <h4 class="phpdocumentor-element__name" id="method_getBuildDir">
  590. getBuildDir()
  591. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildDir" class="headerlink"><i class="fas fa-link"></i></a>
  592. </h4>
  593. <aside class="phpdocumentor-element-found-in">
  594. <abbr class="phpdocumentor-element-found-in__file" title="tests/Traits/BuildDirTrait.php"><a href="files/tests-traits-builddirtrait.html"><abbr title="tests/Traits/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  595. :
  596. <span class="phpdocumentor-element-found-in__line">54</span>
  597. </aside>
  598. <p class="phpdocumentor-summary">returns the full (real) path to the given build path</p>
  599. <code class="phpdocumentor-code phpdocumentor-signature ">
  600. <span class="phpdocumentor-signature__visibility">protected</span>
  601. <span class="phpdocumentor-signature__name">getBuildDir</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$subPath</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">''</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  602. <div class="phpdocumentor-label-line">
  603. </div>
  604. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  605. <dl class="phpdocumentor-argument-list">
  606. <dt class="phpdocumentor-argument-list__entry">
  607. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  608. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  609. = <span class="phpdocumentor-signature__argument__default-value">''</span> </dt>
  610. <dd class="phpdocumentor-argument-list__definition">
  611. </dd>
  612. </dl>
  613. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  614. Tags
  615. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildDir#tags" class="headerlink"><i class="fas fa-link"></i></a>
  616. </h5>
  617. <dl class="phpdocumentor-tag-list">
  618. <dt class="phpdocumentor-tag-list__entry">
  619. <span class="phpdocumentor-tag__name">throws</span>
  620. </dt>
  621. <dd class="phpdocumentor-tag-list__definition">
  622. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  623. </dd>
  624. </dl>
  625. <section>
  626. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  627. <span class="phpdocumentor-signature__response_type">string</span>
  628. </section>
  629. </article>
  630. <article
  631. class="phpdocumentor-element
  632. -method
  633. -protected
  634. "
  635. >
  636. <h4 class="phpdocumentor-element__name" id="method_getBuildFileContent">
  637. getBuildFileContent()
  638. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildFileContent" class="headerlink"><i class="fas fa-link"></i></a>
  639. </h4>
  640. <aside class="phpdocumentor-element-found-in">
  641. <abbr class="phpdocumentor-element-found-in__file" title="tests/Traits/BuildDirTrait.php"><a href="files/tests-traits-builddirtrait.html"><abbr title="tests/Traits/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  642. :
  643. <span class="phpdocumentor-element-found-in__line">88</span>
  644. </aside>
  645. <p class="phpdocumentor-summary">returns the contents of the given build file</p>
  646. <code class="phpdocumentor-code phpdocumentor-signature ">
  647. <span class="phpdocumentor-signature__visibility">protected</span>
  648. <span class="phpdocumentor-signature__name">getBuildFileContent</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fileSubPath</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  649. <div class="phpdocumentor-label-line">
  650. </div>
  651. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  652. <dl class="phpdocumentor-argument-list">
  653. <dt class="phpdocumentor-argument-list__entry">
  654. <span class="phpdocumentor-signature__argument__name">$fileSubPath</span>
  655. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  656. </dt>
  657. <dd class="phpdocumentor-argument-list__definition">
  658. </dd>
  659. </dl>
  660. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  661. Tags
  662. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildFileContent#tags" class="headerlink"><i class="fas fa-link"></i></a>
  663. </h5>
  664. <dl class="phpdocumentor-tag-list">
  665. <dt class="phpdocumentor-tag-list__entry">
  666. <span class="phpdocumentor-tag__name">throws</span>
  667. </dt>
  668. <dd class="phpdocumentor-tag-list__definition">
  669. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  670. </dd>
  671. </dl>
  672. <section>
  673. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  674. <span class="phpdocumentor-signature__response_type">string</span>
  675. </section>
  676. </article>
  677. <article
  678. class="phpdocumentor-element
  679. -method
  680. -protected
  681. "
  682. >
  683. <h4 class="phpdocumentor-element__name" id="method_getBuildFilePath">
  684. getBuildFilePath()
  685. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildFilePath" class="headerlink"><i class="fas fa-link"></i></a>
  686. </h4>
  687. <aside class="phpdocumentor-element-found-in">
  688. <abbr class="phpdocumentor-element-found-in__file" title="tests/Traits/BuildDirTrait.php"><a href="files/tests-traits-builddirtrait.html"><abbr title="tests/Traits/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  689. :
  690. <span class="phpdocumentor-element-found-in__line">69</span>
  691. </aside>
  692. <p class="phpdocumentor-summary">returns the full (real) path to the given build file</p>
  693. <code class="phpdocumentor-code phpdocumentor-signature ">
  694. <span class="phpdocumentor-signature__visibility">protected</span>
  695. <span class="phpdocumentor-signature__name">getBuildFilePath</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fileSubPath</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  696. <div class="phpdocumentor-label-line">
  697. </div>
  698. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  699. <dl class="phpdocumentor-argument-list">
  700. <dt class="phpdocumentor-argument-list__entry">
  701. <span class="phpdocumentor-signature__argument__name">$fileSubPath</span>
  702. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  703. </dt>
  704. <dd class="phpdocumentor-argument-list__definition">
  705. </dd>
  706. </dl>
  707. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  708. Tags
  709. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildFilePath#tags" class="headerlink"><i class="fas fa-link"></i></a>
  710. </h5>
  711. <dl class="phpdocumentor-tag-list">
  712. <dt class="phpdocumentor-tag-list__entry">
  713. <span class="phpdocumentor-tag__name">throws</span>
  714. </dt>
  715. <dd class="phpdocumentor-tag-list__definition">
  716. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  717. </dd>
  718. </dl>
  719. <section>
  720. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  721. <span class="phpdocumentor-signature__response_type">string</span>
  722. </section>
  723. </article>
  724. <article
  725. class="phpdocumentor-element
  726. -method
  727. -protected
  728. "
  729. >
  730. <h4 class="phpdocumentor-element__name" id="method_getBuildPath">
  731. getBuildPath()
  732. <a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildPath" class="headerlink"><i class="fas fa-link"></i></a>
  733. </h4>
  734. <aside class="phpdocumentor-element-found-in">
  735. <abbr class="phpdocumentor-element-found-in__file" title="tests/Traits/BuildDirTrait.php"><a href="files/tests-traits-builddirtrait.html"><abbr title="tests/Traits/BuildDirTrait.php">BuildDirTrait.php</abbr></a></abbr>
  736. :
  737. <span class="phpdocumentor-element-found-in__line">27</span>
  738. </aside>
  739. <p class="phpdocumentor-summary">returns the full raw path to the build dir</p>
  740. <code class="phpdocumentor-code phpdocumentor-signature ">
  741. <span class="phpdocumentor-signature__visibility">protected</span>
  742. <span class="phpdocumentor-signature__name">getBuildPath</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$subPath</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  743. <div class="phpdocumentor-label-line">
  744. </div>
  745. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  746. <dl class="phpdocumentor-argument-list">
  747. <dt class="phpdocumentor-argument-list__entry">
  748. <span class="phpdocumentor-signature__argument__name">$subPath</span>
  749. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  750. </dt>
  751. <dd class="phpdocumentor-argument-list__definition">
  752. </dd>
  753. </dl>
  754. <section>
  755. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  756. <span class="phpdocumentor-signature__response_type">string</span>
  757. </section>
  758. </article>
  759. <article
  760. class="phpdocumentor-element
  761. -method
  762. -protected
  763. "
  764. >
  765. <h4 class="phpdocumentor-element__name" id="method_setUp">
  766. setUp()
  767. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  768. </h4>
  769. <aside class="phpdocumentor-element-found-in">
  770. <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>
  771. :
  772. <span class="phpdocumentor-element-found-in__line">36</span>
  773. </aside>
  774. <p class="phpdocumentor-summary">invoke test instances</p>
  775. <code class="phpdocumentor-code phpdocumentor-signature ">
  776. <span class="phpdocumentor-signature__visibility">protected</span>
  777. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  778. <div class="phpdocumentor-label-line">
  779. </div>
  780. </article>
  781. </section>
  782. <div class="phpdocumentor-modal" id="source-view">
  783. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  784. <div class="phpdocumentor-modal-container">
  785. <div class="phpdocumentor-modal-content">
  786. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/QRCodeTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  787. </div>
  788. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  789. </div>
  790. </div>
  791. <script type="text/javascript">
  792. (function () {
  793. function loadExternalCodeSnippet(el, url, line) {
  794. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  795. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  796. const language = 'php';
  797. const code = document.createElement('code');
  798. code.className = 'language-' + language;
  799. pre.textContent = '';
  800. pre.setAttribute('data-line', line)
  801. code.textContent = 'Loading…';
  802. pre.appendChild(code);
  803. var xhr = new XMLHttpRequest();
  804. xhr.open('GET', src, true);
  805. xhr.onreadystatechange = function () {
  806. if (xhr.readyState !== 4) {
  807. return;
  808. }
  809. if (xhr.status < 400 && xhr.responseText) {
  810. code.textContent = xhr.responseText;
  811. Prism.highlightElement(code);
  812. d=document.getElementsByClassName("line-numbers");
  813. d[0].scrollTop = d[0].children[1].offsetTop;
  814. return;
  815. }
  816. if (xhr.status === 404) {
  817. code.textContent = '✖ Error: File could not be found';
  818. return;
  819. }
  820. if (xhr.status >= 400) {
  821. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  822. return;
  823. }
  824. code.textContent = '✖ Error: An unknown error occurred';
  825. };
  826. xhr.send(null);
  827. });
  828. }
  829. const modalButtons = document.querySelectorAll("[data-modal]");
  830. const openedAsLocalFile = window.location.protocol === 'file:';
  831. if (modalButtons.length > 0 && openedAsLocalFile) {
  832. console.warn(
  833. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  834. 'browsers block XHR requests when a page is opened this way'
  835. );
  836. }
  837. modalButtons.forEach(function (trigger) {
  838. if (openedAsLocalFile) {
  839. trigger.setAttribute("hidden", "hidden");
  840. }
  841. trigger.addEventListener("click", function (event) {
  842. event.preventDefault();
  843. const modal = document.getElementById(trigger.dataset.modal);
  844. if (!modal) {
  845. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  846. return;
  847. }
  848. modal.classList.add("phpdocumentor-modal__open");
  849. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  850. const exits = modal.querySelectorAll("[data-exit-button]");
  851. exits.forEach(function (exit) {
  852. exit.addEventListener("click", function (event) {
  853. event.preventDefault();
  854. modal.classList.remove("phpdocumentor-modal__open");
  855. });
  856. });
  857. });
  858. });
  859. })();
  860. </script>
  861. </article>
  862. </section>
  863. <section class="phpdocumentor-on-this-page__sidebar">
  864. <section class="phpdocumentor-on-this-page__content">
  865. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  866. <ul class="phpdocumentor-list -clean">
  867. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  868. <li>
  869. <ul class="phpdocumentor-list -clean">
  870. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-constants">Constants</a></li>
  871. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-properties">Properties</a></li>
  872. <li><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#toc-methods">Methods</a></li>
  873. </ul>
  874. </li>
  875. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  876. <li>
  877. <ul class="phpdocumentor-list -clean">
  878. <li class=""><a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#constant__buildDir">_buildDir</a></li>
  879. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#constant_buildDir">buildDir</a></li>
  880. </ul>
  881. </li>
  882. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  883. <li>
  884. <ul class="phpdocumentor-list -clean">
  885. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_options">$options</a></li>
  886. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#property_qrcode">$qrcode</a></li>
  887. </ul>
  888. </li>
  889. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  890. <li>
  891. <ul class="phpdocumentor-list -clean">
  892. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_addEciSegment">addEciSegment()</a></li>
  893. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_addEciSegmentInvalidCharsetException">addEciSegmentInvalidCharsetException()</a></li>
  894. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_initCustomOutputInterfaceNotExistsException">initCustomOutputInterfaceNotExistsException()</a></li>
  895. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_initCustomOutputInterfaceNotImplementsException">initCustomOutputInterfaceNotImplementsException()</a></li>
  896. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_renderToCacheFile">renderToCacheFile()</a></li>
  897. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_saveException">saveException()</a></li>
  898. <li class=""><a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_createBuildDir">createBuildDir()</a></li>
  899. <li class=""><a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildDir">getBuildDir()</a></li>
  900. <li class=""><a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildFileContent">getBuildFileContent()</a></li>
  901. <li class=""><a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildFilePath">getBuildFilePath()</a></li>
  902. <li class=""><a href="classes/chillerlan-QRCodeTest-Traits-BuildDirTrait.html#method_getBuildPath">getBuildPath()</a></li>
  903. <li class=""><a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#method_setUp">setUp()</a></li>
  904. </ul>
  905. </li>
  906. </ul>
  907. </section>
  908. </section>
  909. </div>
  910. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  911. <section class="phpdocumentor-search-results__dialog">
  912. <header class="phpdocumentor-search-results__header">
  913. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  914. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  915. </header>
  916. <section class="phpdocumentor-search-results__body">
  917. <ul class="phpdocumentor-search-results__entries"></ul>
  918. </section>
  919. </section>
  920. </section>
  921. </div>
  922. <a href="classes/chillerlan-QRCodeTest-QRCodeTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  923. </main>
  924. <script>
  925. cssVars({});
  926. </script>
  927. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  928. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  929. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  930. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  931. </body>
  932. </html>