chillerlan-QRCodeTest-Common-VersionTest.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. </ul>
  59. </nav>
  60. </header>
  61. <main class="phpdocumentor">
  62. <div class="phpdocumentor-section">
  63. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  64. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  65. Menu
  66. </label>
  67. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  68. <section class="phpdocumentor-sidebar__category">
  69. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  70. <h4 class="phpdocumentor-sidebar__root-namespace">
  71. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  72. </h4>
  73. <ul class="phpdocumentor-list">
  74. <li>
  75. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  76. </li>
  77. <li>
  78. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  79. </li>
  80. </ul>
  81. </section>
  82. <section class="phpdocumentor-sidebar__category">
  83. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  84. <h4 class="phpdocumentor-sidebar__root-namespace">
  85. <a href="packages/Application.html" class="">Application</a>
  86. </h4>
  87. </section>
  88. <section class="phpdocumentor-sidebar__category">
  89. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  92. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  93. </section>
  94. <section class="phpdocumentor-sidebar__category">
  95. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  96. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  97. </section>
  98. </aside>
  99. <div class="phpdocumentor-column -nine phpdocumentor-content">
  100. <section>
  101. <ul class="phpdocumentor-breadcrumbs">
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  103. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  104. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-common.html">Common</a></li>
  105. </ul>
  106. <article class="phpdocumentor-element -class">
  107. <h2 class="phpdocumentor-content__title">
  108. VersionTest
  109. <span class="phpdocumentor-element__extends">
  110. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  111. </span>
  112. <div class="phpdocumentor-element__package">
  113. in package
  114. <ul class="phpdocumentor-breadcrumbs">
  115. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  116. </ul>
  117. </div>
  118. </h2>
  119. <div class="phpdocumentor-label-line">
  120. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  121. </div>
  122. <aside class="phpdocumentor-element-found-in">
  123. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/VersionTest.php"><a href="files/tests-common-versiontest.html"><abbr title="tests/Common/VersionTest.php">VersionTest.php</abbr></a></abbr>
  124. :
  125. <span class="phpdocumentor-element-found-in__line">21</span>
  126. </aside>
  127. <p class="phpdocumentor-summary">Version coverage test</p>
  128. <h3 id="toc">
  129. Table of Contents
  130. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  131. </h3>
  132. <h4 id="toc-properties">
  133. Properties
  134. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  135. </h4>
  136. <dl class="phpdocumentor-table-of-contents">
  137. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  138. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#property_version">$version</a>
  139. <span>
  140. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a> </span>
  141. </dt>
  142. </dl>
  143. <h4 id="toc-methods">
  144. Methods
  145. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  146. </h4>
  147. <dl class="phpdocumentor-table-of-contents">
  148. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  149. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testConstructInvalidVersion">testConstructInvalidVersion()</a>
  150. <span>
  151. &nbsp;: void </span>
  152. </dt>
  153. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  154. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetAlignmentPattern">testGetAlignmentPattern()</a>
  155. <span>
  156. &nbsp;: void </span>
  157. </dt>
  158. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  159. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetDimension">testGetDimension()</a>
  160. <span>
  161. &nbsp;: void </span>
  162. </dt>
  163. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  164. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetRSBlocks">testGetRSBlocks()</a>
  165. <span>
  166. &nbsp;: void </span>
  167. </dt>
  168. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  169. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetTotalCodewords">testGetTotalCodewords()</a>
  170. <span>
  171. &nbsp;: void </span>
  172. </dt>
  173. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  174. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetVersionNumber">testGetVersionNumber()</a>
  175. <span>
  176. &nbsp;: void </span>
  177. </dt>
  178. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  179. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetVersionPattern">testGetVersionPattern()</a>
  180. <span>
  181. &nbsp;: void </span>
  182. </dt>
  183. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  184. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testToString">testToString()</a>
  185. <span>
  186. &nbsp;: void </span>
  187. </dt>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  189. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_setUp">setUp()</a>
  190. <span>
  191. &nbsp;: void </span>
  192. </dt>
  193. </dl>
  194. <section class="phpdocumentor-properties">
  195. <h3 class="phpdocumentor-elements__header" id="properties">
  196. Properties
  197. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.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_version">
  207. $version
  208. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#property_version" 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/Common/VersionTest.php"><a href="files/tests-common-versiontest.html"><abbr title="tests/Common/VersionTest.php">VersionTest.php</abbr></a></abbr>
  214. :
  215. <span class="phpdocumentor-element-found-in__line">23</span>
  216. </aside>
  217. <code class="phpdocumentor-code phpdocumentor-signature ">
  218. <span class="phpdocumentor-signature__visibility">private</span>
  219. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  220. <span class="phpdocumentor-signature__name">$version</span>
  221. </code>
  222. </article>
  223. </section>
  224. <section class="phpdocumentor-methods">
  225. <h3 class="phpdocumentor-elements__header" id="methods">
  226. Methods
  227. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  228. </h3>
  229. <article
  230. class="phpdocumentor-element
  231. -method
  232. -public
  233. "
  234. >
  235. <h4 class="phpdocumentor-element__name" id="method_testConstructInvalidVersion">
  236. testConstructInvalidVersion()
  237. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testConstructInvalidVersion" class="headerlink"><i class="fas fa-link"></i></a>
  238. </h4>
  239. <aside class="phpdocumentor-element-found-in">
  240. <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>
  241. :
  242. <span class="phpdocumentor-element-found-in__line">59</span>
  243. </aside>
  244. <code class="phpdocumentor-code phpdocumentor-signature ">
  245. <span class="phpdocumentor-signature__visibility">public</span>
  246. <span class="phpdocumentor-signature__name">testConstructInvalidVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  247. <div class="phpdocumentor-label-line">
  248. </div>
  249. </article>
  250. <article
  251. class="phpdocumentor-element
  252. -method
  253. -public
  254. "
  255. >
  256. <h4 class="phpdocumentor-element__name" id="method_testGetAlignmentPattern">
  257. testGetAlignmentPattern()
  258. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetAlignmentPattern" 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/Common/VersionTest.php"><a href="files/tests-common-versiontest.html"><abbr title="tests/Common/VersionTest.php">VersionTest.php</abbr></a></abbr>
  262. :
  263. <span class="phpdocumentor-element-found-in__line">47</span>
  264. </aside>
  265. <code class="phpdocumentor-code phpdocumentor-signature ">
  266. <span class="phpdocumentor-signature__visibility">public</span>
  267. <span class="phpdocumentor-signature__name">testGetAlignmentPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  268. <div class="phpdocumentor-label-line">
  269. </div>
  270. </article>
  271. <article
  272. class="phpdocumentor-element
  273. -method
  274. -public
  275. "
  276. >
  277. <h4 class="phpdocumentor-element__name" id="method_testGetDimension">
  278. testGetDimension()
  279. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetDimension" class="headerlink"><i class="fas fa-link"></i></a>
  280. </h4>
  281. <aside class="phpdocumentor-element-found-in">
  282. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/VersionTest.php"><a href="files/tests-common-versiontest.html"><abbr title="tests/Common/VersionTest.php">VersionTest.php</abbr></a></abbr>
  283. :
  284. <span class="phpdocumentor-element-found-in__line">37</span>
  285. </aside>
  286. <code class="phpdocumentor-code phpdocumentor-signature ">
  287. <span class="phpdocumentor-signature__visibility">public</span>
  288. <span class="phpdocumentor-signature__name">testGetDimension</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  289. <div class="phpdocumentor-label-line">
  290. </div>
  291. </article>
  292. <article
  293. class="phpdocumentor-element
  294. -method
  295. -public
  296. "
  297. >
  298. <h4 class="phpdocumentor-element__name" id="method_testGetRSBlocks">
  299. testGetRSBlocks()
  300. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetRSBlocks" class="headerlink"><i class="fas fa-link"></i></a>
  301. </h4>
  302. <aside class="phpdocumentor-element-found-in">
  303. <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>
  304. :
  305. <span class="phpdocumentor-element-found-in__line">51</span>
  306. </aside>
  307. <code class="phpdocumentor-code phpdocumentor-signature ">
  308. <span class="phpdocumentor-signature__visibility">public</span>
  309. <span class="phpdocumentor-signature__name">testGetRSBlocks</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  310. <div class="phpdocumentor-label-line">
  311. </div>
  312. </article>
  313. <article
  314. class="phpdocumentor-element
  315. -method
  316. -public
  317. "
  318. >
  319. <h4 class="phpdocumentor-element__name" id="method_testGetTotalCodewords">
  320. testGetTotalCodewords()
  321. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetTotalCodewords" class="headerlink"><i class="fas fa-link"></i></a>
  322. </h4>
  323. <aside class="phpdocumentor-element-found-in">
  324. <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>
  325. :
  326. <span class="phpdocumentor-element-found-in__line">55</span>
  327. </aside>
  328. <code class="phpdocumentor-code phpdocumentor-signature ">
  329. <span class="phpdocumentor-signature__visibility">public</span>
  330. <span class="phpdocumentor-signature__name">testGetTotalCodewords</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  331. <div class="phpdocumentor-label-line">
  332. </div>
  333. </article>
  334. <article
  335. class="phpdocumentor-element
  336. -method
  337. -public
  338. "
  339. >
  340. <h4 class="phpdocumentor-element__name" id="method_testGetVersionNumber">
  341. testGetVersionNumber()
  342. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetVersionNumber" class="headerlink"><i class="fas fa-link"></i></a>
  343. </h4>
  344. <aside class="phpdocumentor-element-found-in">
  345. <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>
  346. :
  347. <span class="phpdocumentor-element-found-in__line">33</span>
  348. </aside>
  349. <code class="phpdocumentor-code phpdocumentor-signature ">
  350. <span class="phpdocumentor-signature__visibility">public</span>
  351. <span class="phpdocumentor-signature__name">testGetVersionNumber</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  352. <div class="phpdocumentor-label-line">
  353. </div>
  354. </article>
  355. <article
  356. class="phpdocumentor-element
  357. -method
  358. -public
  359. "
  360. >
  361. <h4 class="phpdocumentor-element__name" id="method_testGetVersionPattern">
  362. testGetVersionPattern()
  363. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetVersionPattern" class="headerlink"><i class="fas fa-link"></i></a>
  364. </h4>
  365. <aside class="phpdocumentor-element-found-in">
  366. <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>
  367. :
  368. <span class="phpdocumentor-element-found-in__line">41</span>
  369. </aside>
  370. <code class="phpdocumentor-code phpdocumentor-signature ">
  371. <span class="phpdocumentor-signature__visibility">public</span>
  372. <span class="phpdocumentor-signature__name">testGetVersionPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  373. <div class="phpdocumentor-label-line">
  374. </div>
  375. </article>
  376. <article
  377. class="phpdocumentor-element
  378. -method
  379. -public
  380. "
  381. >
  382. <h4 class="phpdocumentor-element__name" id="method_testToString">
  383. testToString()
  384. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testToString" class="headerlink"><i class="fas fa-link"></i></a>
  385. </h4>
  386. <aside class="phpdocumentor-element-found-in">
  387. <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>
  388. :
  389. <span class="phpdocumentor-element-found-in__line">29</span>
  390. </aside>
  391. <code class="phpdocumentor-code phpdocumentor-signature ">
  392. <span class="phpdocumentor-signature__visibility">public</span>
  393. <span class="phpdocumentor-signature__name">testToString</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  394. <div class="phpdocumentor-label-line">
  395. </div>
  396. </article>
  397. <article
  398. class="phpdocumentor-element
  399. -method
  400. -protected
  401. "
  402. >
  403. <h4 class="phpdocumentor-element__name" id="method_setUp">
  404. setUp()
  405. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  406. </h4>
  407. <aside class="phpdocumentor-element-found-in">
  408. <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>
  409. :
  410. <span class="phpdocumentor-element-found-in__line">25</span>
  411. </aside>
  412. <code class="phpdocumentor-code phpdocumentor-signature ">
  413. <span class="phpdocumentor-signature__visibility">protected</span>
  414. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  415. <div class="phpdocumentor-label-line">
  416. </div>
  417. </article>
  418. </section>
  419. <div class="phpdocumentor-modal" id="source-view">
  420. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  421. <div class="phpdocumentor-modal-container">
  422. <div class="phpdocumentor-modal-content">
  423. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Common/VersionTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  424. </div>
  425. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  426. </div>
  427. </div>
  428. <script type="text/javascript">
  429. (function () {
  430. function loadExternalCodeSnippet(el, url, line) {
  431. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  432. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  433. const language = 'php';
  434. const code = document.createElement('code');
  435. code.className = 'language-' + language;
  436. pre.textContent = '';
  437. pre.setAttribute('data-line', line)
  438. code.textContent = 'Loading…';
  439. pre.appendChild(code);
  440. var xhr = new XMLHttpRequest();
  441. xhr.open('GET', src, true);
  442. xhr.onreadystatechange = function () {
  443. if (xhr.readyState !== 4) {
  444. return;
  445. }
  446. if (xhr.status < 400 && xhr.responseText) {
  447. code.textContent = xhr.responseText;
  448. Prism.highlightElement(code);
  449. return;
  450. }
  451. if (xhr.status === 404) {
  452. code.textContent = '✖ Error: File could not be found';
  453. return;
  454. }
  455. if (xhr.status >= 400) {
  456. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  457. return;
  458. }
  459. code.textContent = '✖ Error: An unknown error occurred';
  460. };
  461. xhr.send(null);
  462. });
  463. }
  464. const modalButtons = document.querySelectorAll("[data-modal]");
  465. const openedAsLocalFile = window.location.protocol === 'file:';
  466. if (modalButtons.length > 0 && openedAsLocalFile) {
  467. console.warn(
  468. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  469. 'browsers block XHR requests when a page is opened this way'
  470. );
  471. }
  472. modalButtons.forEach(function (trigger) {
  473. if (openedAsLocalFile) {
  474. trigger.setAttribute("hidden", "hidden");
  475. }
  476. trigger.addEventListener("click", function (event) {
  477. event.preventDefault();
  478. const modal = document.getElementById(trigger.dataset.modal);
  479. if (!modal) {
  480. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  481. return;
  482. }
  483. modal.classList.add("phpdocumentor-modal__open");
  484. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  485. const exits = modal.querySelectorAll("[data-exit-button]");
  486. exits.forEach(function (exit) {
  487. exit.addEventListener("click", function (event) {
  488. event.preventDefault();
  489. modal.classList.remove("phpdocumentor-modal__open");
  490. });
  491. });
  492. });
  493. });
  494. })();
  495. </script>
  496. </article>
  497. </section>
  498. <section class="phpdocumentor-on-this-page__sidebar">
  499. <section class="phpdocumentor-on-this-page__content">
  500. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  501. <ul class="phpdocumentor-list -clean">
  502. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  503. <li>
  504. <ul class="phpdocumentor-list -clean">
  505. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#toc-properties">Properties</a></li>
  506. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#toc-methods">Methods</a></li>
  507. </ul>
  508. </li>
  509. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  510. <li>
  511. <ul class="phpdocumentor-list -clean">
  512. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#property_version">$version<a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html"></li>
  513. </ul>
  514. </li>
  515. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  516. <li>
  517. <ul class="phpdocumentor-list -clean">
  518. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testConstructInvalidVersion">testConstructInvalidVersion()</a></li>
  519. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetAlignmentPattern">testGetAlignmentPattern()</a></li>
  520. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetDimension">testGetDimension()</a></li>
  521. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetRSBlocks">testGetRSBlocks()</a></li>
  522. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetTotalCodewords">testGetTotalCodewords()</a></li>
  523. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetVersionNumber">testGetVersionNumber()</a></li>
  524. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testGetVersionPattern">testGetVersionPattern()</a></li>
  525. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_testToString">testToString()</a></li>
  526. <li><a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#method_setUp">setUp()</a></li>
  527. </ul>
  528. </li>
  529. </ul>
  530. </section>
  531. </section>
  532. </div>
  533. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  534. <section class="phpdocumentor-search-results__dialog">
  535. <header class="phpdocumentor-search-results__header">
  536. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  537. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  538. </header>
  539. <section class="phpdocumentor-search-results__body">
  540. <ul class="phpdocumentor-search-results__entries"></ul>
  541. </section>
  542. </section>
  543. </section>
  544. </div>
  545. <a href="classes/chillerlan-QRCodeTest-Common-VersionTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  546. </main>
  547. <script>
  548. cssVars({});
  549. </script>
  550. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  551. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  552. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  553. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  554. </body>
  555. </html>