chillerlan-QRCodeTest-Common-VersionTest.html 27 KB

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