chillerlan-QRCodeTest-Common-VersionTest.html 32 KB

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