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