chillerlan-QRCodeTest-Data-ECITest.html 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. <li class="phpdocumentor-topnav__menu-item -menu">
  44. <a href="https://php-qrcode.readthedocs.io">
  45. <span>
  46. User Manual
  47. </span>
  48. </a>
  49. </li>
  50. <li class="phpdocumentor-topnav__menu-item -social">
  51. <a href="https://github.com/chillerlan/php-qrcode">
  52. <span>
  53. <i class="fab fa-github"></i>
  54. </span>
  55. </a>
  56. </li>
  57. </ul>
  58. </nav>
  59. </header>
  60. <main class="phpdocumentor">
  61. <div class="phpdocumentor-section">
  62. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  63. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  64. Menu
  65. </label>
  66. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  71. </h4>
  72. <ul class="phpdocumentor-list">
  73. <li>
  74. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  75. </li>
  76. <li>
  77. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  78. </li>
  79. </ul>
  80. </section>
  81. <section class="phpdocumentor-sidebar__category">
  82. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  83. <h4 class="phpdocumentor-sidebar__root-namespace">
  84. <a href="packages/Application.html" class="">Application</a>
  85. </h4>
  86. </section>
  87. <section class="phpdocumentor-sidebar__category">
  88. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  89. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  92. </section>
  93. <section class="phpdocumentor-sidebar__category">
  94. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  96. </section>
  97. </aside>
  98. <div class="phpdocumentor-column -eight phpdocumentor-content">
  99. <ul class="phpdocumentor-breadcrumbs">
  100. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  101. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  102. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  103. </ul>
  104. <article class="phpdocumentor-element -class">
  105. <h2 class="phpdocumentor-content__title">
  106. ECITest
  107. <span class="phpdocumentor-element__extends">
  108. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  109. </span>
  110. <div class="phpdocumentor-element__package">
  111. in package
  112. <ul class="phpdocumentor-breadcrumbs">
  113. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  114. </ul>
  115. </div>
  116. </h2>
  117. <aside class="phpdocumentor-element-found-in">
  118. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  119. :
  120. <span class="phpdocumentor-element-found-in__line">21</span>
  121. </aside>
  122. <p class="phpdocumentor-summary">Tests the ECI class</p>
  123. <h3 id="toc">
  124. Table of Contents
  125. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  126. </h3>
  127. <dl class="phpdocumentor-table-of-contents">
  128. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  129. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#property_QRData">$QRData</a>
  130. <span>
  131. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a> </span>
  132. </dt>
  133. <dd></dd>
  134. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  135. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#property_testdata">$testdata</a>
  136. <span>
  137. &nbsp;: string </span>
  138. </dt>
  139. <dd></dd>
  140. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  141. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#property_testCharset">$testCharset</a>
  142. <span>
  143. &nbsp;: int </span>
  144. </dt>
  145. <dd></dd>
  146. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  147. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_eciCharsetIdProvider">eciCharsetIdProvider()</a>
  148. <span>
  149. &nbsp;: array&lt;string|int, mixed&gt; </span>
  150. </dt>
  151. <dd></dd>
  152. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  153. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testConvertUnknownEncoding">testConvertUnknownEncoding()</a>
  154. <span>
  155. &nbsp;: void </span>
  156. </dt>
  157. <dd>Tests detection of an unknown character set</dd>
  158. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  159. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testDataModeInstance">testDataModeInstance()</a>
  160. <span>
  161. &nbsp;: void </span>
  162. </dt>
  163. <dd></dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  165. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testDecodeECISegmentFollowedByInvalidModeException">testDecodeECISegmentFollowedByInvalidModeException()</a>
  166. <span>
  167. &nbsp;: void </span>
  168. </dt>
  169. <dd>Tests if and exception is thrown when the ECI segment is followed by a mode that is not 8-bit byte</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  171. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testDecodeSegment">testDecodeSegment()</a>
  172. <span>
  173. &nbsp;: void </span>
  174. </dt>
  175. <dd></dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  177. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testInvalidDataException">testInvalidDataException()</a>
  178. <span>
  179. &nbsp;: void </span>
  180. </dt>
  181. <dd></dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  183. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a>
  184. <span>
  185. &nbsp;: void </span>
  186. </dt>
  187. <dd>since the ECI class only accepts integer values,
  188. we&#039;ll use this test to check for the upper end of the accepted input range</dd>
  189. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  190. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testReadWrite">testReadWrite()</a>
  191. <span>
  192. &nbsp;: void </span>
  193. </dt>
  194. <dd></dd>
  195. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  196. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_unknownEncodingDataProvider">unknownEncodingDataProvider()</a>
  197. <span>
  198. &nbsp;: array&lt;string|int, mixed&gt; </span>
  199. </dt>
  200. <dd></dd>
  201. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  202. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_versionBreakpointProvider">versionBreakpointProvider()</a>
  203. <span>
  204. &nbsp;: array&lt;string|int, mixed&gt; </span>
  205. </dt>
  206. <dd>returns versions within the version breakpoints 1-9, 10-26 and 27-40</dd>
  207. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  208. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_setUp">setUp()</a>
  209. <span>
  210. &nbsp;: void </span>
  211. </dt>
  212. <dd></dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  214. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_getDataSegments">getDataSegments()</a>
  215. <span>
  216. &nbsp;: array&lt;string|int, mixed&gt; </span>
  217. </dt>
  218. <dd></dd>
  219. </dl>
  220. <section class="phpdocumentor-properties">
  221. <h3 class="phpdocumentor-elements__header" id="properties">
  222. Properties
  223. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  224. </h3>
  225. <article
  226. class="
  227. phpdocumentor-element
  228. -property
  229. -protected
  230. "
  231. >
  232. <h4 class="phpdocumentor-element__name" id="property_QRData">
  233. $QRData
  234. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#property_QRData" class="headerlink"><i class="fas fa-link"></i></a>
  235. <span class="phpdocumentor-element__modifiers">
  236. </span>
  237. </h4>
  238. <aside class="phpdocumentor-element-found-in">
  239. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  240. :
  241. <span class="phpdocumentor-element-found-in__line">23</span>
  242. </aside>
  243. <code class="phpdocumentor-code phpdocumentor-signature ">
  244. <span class="phpdocumentor-signature__visibility">protected</span>
  245. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a></span>
  246. <span class="phpdocumentor-signature__name">$QRData</span>
  247. </code>
  248. <section class="phpdocumentor-description"></section>
  249. <section class="phpdocumentor-description"></section>
  250. </article>
  251. <article
  252. class="
  253. phpdocumentor-element
  254. -property
  255. -protected
  256. "
  257. >
  258. <h4 class="phpdocumentor-element__name" id="property_testdata">
  259. $testdata
  260. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#property_testdata" class="headerlink"><i class="fas fa-link"></i></a>
  261. <span class="phpdocumentor-element__modifiers">
  262. </span>
  263. </h4>
  264. <aside class="phpdocumentor-element-found-in">
  265. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  266. :
  267. <span class="phpdocumentor-element-found-in__line">24</span>
  268. </aside>
  269. <code class="phpdocumentor-code phpdocumentor-signature ">
  270. <span class="phpdocumentor-signature__visibility">protected</span>
  271. <span class="phpdocumentor-signature__type">string</span>
  272. <span class="phpdocumentor-signature__name">$testdata</span>
  273. = <span class="phpdocumentor-signature__default-value">&#039;无可奈何燃花作香&#039;</span></code>
  274. <section class="phpdocumentor-description"></section>
  275. <section class="phpdocumentor-description"></section>
  276. </article>
  277. <article
  278. class="
  279. phpdocumentor-element
  280. -property
  281. -private
  282. "
  283. >
  284. <h4 class="phpdocumentor-element__name" id="property_testCharset">
  285. $testCharset
  286. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#property_testCharset" class="headerlink"><i class="fas fa-link"></i></a>
  287. <span class="phpdocumentor-element__modifiers">
  288. </span>
  289. </h4>
  290. <aside class="phpdocumentor-element-found-in">
  291. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  292. :
  293. <span class="phpdocumentor-element-found-in__line">25</span>
  294. </aside>
  295. <code class="phpdocumentor-code phpdocumentor-signature ">
  296. <span class="phpdocumentor-signature__visibility">private</span>
  297. <span class="phpdocumentor-signature__type">int</span>
  298. <span class="phpdocumentor-signature__name">$testCharset</span>
  299. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Common\ECICharset::GB18030</span></code>
  300. <section class="phpdocumentor-description"></section>
  301. <section class="phpdocumentor-description"></section>
  302. </article>
  303. </section>
  304. <section class="phpdocumentor-methods">
  305. <h3 class="phpdocumentor-elements__header" id="methods">
  306. Methods
  307. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  308. </h3>
  309. <article
  310. class="phpdocumentor-element
  311. -method
  312. -public
  313. -static "
  314. >
  315. <h4 class="phpdocumentor-element__name" id="method_eciCharsetIdProvider">
  316. eciCharsetIdProvider()
  317. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_eciCharsetIdProvider" class="headerlink"><i class="fas fa-link"></i></a>
  318. </h4>
  319. <aside class="phpdocumentor-element-found-in">
  320. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  321. :
  322. <span class="phpdocumentor-element-found-in__line">94</span>
  323. </aside>
  324. <code class="phpdocumentor-code phpdocumentor-signature ">
  325. <span class="phpdocumentor-signature__visibility">public</span>
  326. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">eciCharsetIdProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  327. <section class="phpdocumentor-description"></section>
  328. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  329. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  330. &mdash;
  331. </article>
  332. <article
  333. class="phpdocumentor-element
  334. -method
  335. -public
  336. "
  337. >
  338. <h4 class="phpdocumentor-element__name" id="method_testConvertUnknownEncoding">
  339. testConvertUnknownEncoding()
  340. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testConvertUnknownEncoding" class="headerlink"><i class="fas fa-link"></i></a>
  341. </h4>
  342. <aside class="phpdocumentor-element-found-in">
  343. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  344. :
  345. <span class="phpdocumentor-element-found-in__line">148</span>
  346. </aside>
  347. <p class="phpdocumentor-summary">Tests detection of an unknown character set</p>
  348. <code class="phpdocumentor-code phpdocumentor-signature ">
  349. <span class="phpdocumentor-signature__visibility">public</span>
  350. <span class="phpdocumentor-signature__name">testConvertUnknownEncoding</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$id</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  351. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  352. <dl class="phpdocumentor-argument-list">
  353. <dt class="phpdocumentor-argument-list__entry">
  354. <span class="phpdocumentor-signature__argument__name">$id</span>
  355. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  356. </dt>
  357. <dd class="phpdocumentor-argument-list__definition">
  358. <section class="phpdocumentor-description"></section>
  359. </dd>
  360. <dt class="phpdocumentor-argument-list__entry">
  361. <span class="phpdocumentor-signature__argument__name">$data</span>
  362. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  363. </dt>
  364. <dd class="phpdocumentor-argument-list__definition">
  365. <section class="phpdocumentor-description"></section>
  366. </dd>
  367. </dl>
  368. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  369. Tags
  370. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  371. </h5>
  372. <dl class="phpdocumentor-tag-list">
  373. <dt class="phpdocumentor-tag-list__entry">
  374. <span class="phpdocumentor-tag__name">dataProvider</span>
  375. </dt>
  376. <dd class="phpdocumentor-tag-list__definition">
  377. <section class="phpdocumentor-description"><p>unknownEncodingDataProvider</p>
  378. </section>
  379. </dd>
  380. </dl>
  381. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  382. <span class="phpdocumentor-signature__response_type">void</span>
  383. &mdash;
  384. </article>
  385. <article
  386. class="phpdocumentor-element
  387. -method
  388. -public
  389. "
  390. >
  391. <h4 class="phpdocumentor-element__name" id="method_testDataModeInstance">
  392. testDataModeInstance()
  393. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testDataModeInstance" class="headerlink"><i class="fas fa-link"></i></a>
  394. </h4>
  395. <aside class="phpdocumentor-element-found-in">
  396. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  397. :
  398. <span class="phpdocumentor-element-found-in__line">39</span>
  399. </aside>
  400. <code class="phpdocumentor-code phpdocumentor-signature ">
  401. <span class="phpdocumentor-signature__visibility">public</span>
  402. <span class="phpdocumentor-signature__name">testDataModeInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  403. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  404. Tags
  405. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  406. </h5>
  407. <dl class="phpdocumentor-tag-list">
  408. <dt class="phpdocumentor-tag-list__entry">
  409. <span class="phpdocumentor-tag__name">inheritDoc</span>
  410. </dt>
  411. <dd class="phpdocumentor-tag-list__definition">
  412. </dd>
  413. </dl>
  414. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  415. <span class="phpdocumentor-signature__response_type">void</span>
  416. &mdash;
  417. </article>
  418. <article
  419. class="phpdocumentor-element
  420. -method
  421. -public
  422. "
  423. >
  424. <h4 class="phpdocumentor-element__name" id="method_testDecodeECISegmentFollowedByInvalidModeException">
  425. testDecodeECISegmentFollowedByInvalidModeException()
  426. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testDecodeECISegmentFollowedByInvalidModeException" class="headerlink"><i class="fas fa-link"></i></a>
  427. </h4>
  428. <aside class="phpdocumentor-element-found-in">
  429. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  430. :
  431. <span class="phpdocumentor-element-found-in__line">120</span>
  432. </aside>
  433. <p class="phpdocumentor-summary">Tests if and exception is thrown when the ECI segment is followed by a mode that is not 8-bit byte</p>
  434. <code class="phpdocumentor-code phpdocumentor-signature ">
  435. <span class="phpdocumentor-signature__visibility">public</span>
  436. <span class="phpdocumentor-signature__name">testDecodeECISegmentFollowedByInvalidModeException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  437. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  438. <span class="phpdocumentor-signature__response_type">void</span>
  439. &mdash;
  440. </article>
  441. <article
  442. class="phpdocumentor-element
  443. -method
  444. -public
  445. "
  446. >
  447. <h4 class="phpdocumentor-element__name" id="method_testDecodeSegment">
  448. testDecodeSegment()
  449. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testDecodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  450. </h4>
  451. <aside class="phpdocumentor-element-found-in">
  452. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  453. :
  454. <span class="phpdocumentor-element-found-in__line">56</span>
  455. </aside>
  456. <code class="phpdocumentor-code phpdocumentor-signature ">
  457. <span class="phpdocumentor-signature__visibility">public</span>
  458. <span class="phpdocumentor-signature__name">testDecodeSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  459. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  460. <dl class="phpdocumentor-argument-list">
  461. <dt class="phpdocumentor-argument-list__entry">
  462. <span class="phpdocumentor-signature__argument__name">$version</span>
  463. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  464. </dt>
  465. <dd class="phpdocumentor-argument-list__definition">
  466. <section class="phpdocumentor-description"></section>
  467. </dd>
  468. </dl>
  469. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  470. Tags
  471. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  472. </h5>
  473. <dl class="phpdocumentor-tag-list">
  474. <dt class="phpdocumentor-tag-list__entry">
  475. <span class="phpdocumentor-tag__name">inheritDoc</span>
  476. </dt>
  477. <dd class="phpdocumentor-tag-list__definition">
  478. </dd>
  479. <dt class="phpdocumentor-tag-list__entry">
  480. <span class="phpdocumentor-tag__name">dataProvider</span>
  481. </dt>
  482. <dd class="phpdocumentor-tag-list__definition">
  483. <section class="phpdocumentor-description"><p>versionBreakpointProvider</p>
  484. </section>
  485. </dd>
  486. </dl>
  487. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  488. <span class="phpdocumentor-signature__response_type">void</span>
  489. &mdash;
  490. </article>
  491. <article
  492. class="phpdocumentor-element
  493. -method
  494. -public
  495. "
  496. >
  497. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataException">
  498. testInvalidDataException()
  499. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testInvalidDataException" class="headerlink"><i class="fas fa-link"></i></a>
  500. </h4>
  501. <aside class="phpdocumentor-element-found-in">
  502. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  503. :
  504. <span class="phpdocumentor-element-found-in__line">74</span>
  505. </aside>
  506. <code class="phpdocumentor-code phpdocumentor-signature ">
  507. <span class="phpdocumentor-signature__visibility">public</span>
  508. <span class="phpdocumentor-signature__name">testInvalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  509. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  510. Tags
  511. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  512. </h5>
  513. <dl class="phpdocumentor-tag-list">
  514. <dt class="phpdocumentor-tag-list__entry">
  515. <span class="phpdocumentor-tag__name">inheritDoc</span>
  516. </dt>
  517. <dd class="phpdocumentor-tag-list__definition">
  518. </dd>
  519. </dl>
  520. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  521. <span class="phpdocumentor-signature__response_type">void</span>
  522. &mdash;
  523. </article>
  524. <article
  525. class="phpdocumentor-element
  526. -method
  527. -public
  528. "
  529. >
  530. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataOnEmptyException">
  531. testInvalidDataOnEmptyException()
  532. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testInvalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  533. </h4>
  534. <aside class="phpdocumentor-element-found-in">
  535. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  536. :
  537. <span class="phpdocumentor-element-found-in__line">87</span>
  538. </aside>
  539. <p class="phpdocumentor-summary">since the ECI class only accepts integer values,
  540. we&#039;ll use this test to check for the upper end of the accepted input range</p>
  541. <code class="phpdocumentor-code phpdocumentor-signature ">
  542. <span class="phpdocumentor-signature__visibility">public</span>
  543. <span class="phpdocumentor-signature__name">testInvalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  544. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  545. Tags
  546. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  547. </h5>
  548. <dl class="phpdocumentor-tag-list">
  549. <dt class="phpdocumentor-tag-list__entry">
  550. <span class="phpdocumentor-tag__name">inheritDoc</span>
  551. </dt>
  552. <dd class="phpdocumentor-tag-list__definition">
  553. </dd>
  554. </dl>
  555. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  556. <span class="phpdocumentor-signature__response_type">void</span>
  557. &mdash;
  558. </article>
  559. <article
  560. class="phpdocumentor-element
  561. -method
  562. -public
  563. "
  564. >
  565. <h4 class="phpdocumentor-element__name" id="method_testReadWrite">
  566. testReadWrite()
  567. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_testReadWrite" class="headerlink"><i class="fas fa-link"></i></a>
  568. </h4>
  569. <aside class="phpdocumentor-element-found-in">
  570. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  571. :
  572. <span class="phpdocumentor-element-found-in__line">108</span>
  573. </aside>
  574. <code class="phpdocumentor-code phpdocumentor-signature ">
  575. <span class="phpdocumentor-signature__visibility">public</span>
  576. <span class="phpdocumentor-signature__name">testReadWrite</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$id</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lengthInBits</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  577. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  578. <dl class="phpdocumentor-argument-list">
  579. <dt class="phpdocumentor-argument-list__entry">
  580. <span class="phpdocumentor-signature__argument__name">$id</span>
  581. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  582. </dt>
  583. <dd class="phpdocumentor-argument-list__definition">
  584. <section class="phpdocumentor-description"></section>
  585. </dd>
  586. <dt class="phpdocumentor-argument-list__entry">
  587. <span class="phpdocumentor-signature__argument__name">$lengthInBits</span>
  588. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  589. </dt>
  590. <dd class="phpdocumentor-argument-list__definition">
  591. <section class="phpdocumentor-description"></section>
  592. </dd>
  593. </dl>
  594. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  595. Tags
  596. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  597. </h5>
  598. <dl class="phpdocumentor-tag-list">
  599. <dt class="phpdocumentor-tag-list__entry">
  600. <span class="phpdocumentor-tag__name">dataProvider</span>
  601. </dt>
  602. <dd class="phpdocumentor-tag-list__definition">
  603. <section class="phpdocumentor-description"><p>eciCharsetIdProvider</p>
  604. </section>
  605. </dd>
  606. </dl>
  607. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  608. <span class="phpdocumentor-signature__response_type">void</span>
  609. &mdash;
  610. </article>
  611. <article
  612. class="phpdocumentor-element
  613. -method
  614. -public
  615. "
  616. >
  617. <h4 class="phpdocumentor-element__name" id="method_unknownEncodingDataProvider">
  618. unknownEncodingDataProvider()
  619. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_unknownEncodingDataProvider" class="headerlink"><i class="fas fa-link"></i></a>
  620. </h4>
  621. <aside class="phpdocumentor-element-found-in">
  622. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  623. :
  624. <span class="phpdocumentor-element-found-in__line">136</span>
  625. </aside>
  626. <code class="phpdocumentor-code phpdocumentor-signature ">
  627. <span class="phpdocumentor-signature__visibility">public</span>
  628. <span class="phpdocumentor-signature__name">unknownEncodingDataProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  629. <section class="phpdocumentor-description"></section>
  630. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  631. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  632. &mdash;
  633. </article>
  634. <article
  635. class="phpdocumentor-element
  636. -method
  637. -public
  638. -static "
  639. >
  640. <h4 class="phpdocumentor-element__name" id="method_versionBreakpointProvider">
  641. versionBreakpointProvider()
  642. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_versionBreakpointProvider" class="headerlink"><i class="fas fa-link"></i></a>
  643. </h4>
  644. <aside class="phpdocumentor-element-found-in">
  645. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  646. :
  647. <span class="phpdocumentor-element-found-in__line">48</span>
  648. </aside>
  649. <p class="phpdocumentor-summary">returns versions within the version breakpoints 1-9, 10-26 and 27-40</p>
  650. <code class="phpdocumentor-code phpdocumentor-signature ">
  651. <span class="phpdocumentor-signature__visibility">public</span>
  652. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">versionBreakpointProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  653. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  654. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  655. &mdash;
  656. </article>
  657. <article
  658. class="phpdocumentor-element
  659. -method
  660. -protected
  661. "
  662. >
  663. <h4 class="phpdocumentor-element__name" id="method_setUp">
  664. setUp()
  665. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  666. </h4>
  667. <aside class="phpdocumentor-element-found-in">
  668. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  669. :
  670. <span class="phpdocumentor-element-found-in__line">27</span>
  671. </aside>
  672. <code class="phpdocumentor-code phpdocumentor-signature ">
  673. <span class="phpdocumentor-signature__visibility">protected</span>
  674. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  675. <section class="phpdocumentor-description"></section>
  676. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  677. <span class="phpdocumentor-signature__response_type">void</span>
  678. &mdash;
  679. </article>
  680. <article
  681. class="phpdocumentor-element
  682. -method
  683. -private
  684. "
  685. >
  686. <h4 class="phpdocumentor-element__name" id="method_getDataSegments">
  687. getDataSegments()
  688. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#method_getDataSegments" class="headerlink"><i class="fas fa-link"></i></a>
  689. </h4>
  690. <aside class="phpdocumentor-element-found-in">
  691. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/ECITest.php"><a href="files/tests-data-ecitest.html"><abbr title="tests/Data/ECITest.php">ECITest.php</abbr></a></abbr>
  692. :
  693. <span class="phpdocumentor-element-found-in__line">31</span>
  694. </aside>
  695. <code class="phpdocumentor-code phpdocumentor-signature ">
  696. <span class="phpdocumentor-signature__visibility">private</span>
  697. <span class="phpdocumentor-signature__name">getDataSegments</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  698. <section class="phpdocumentor-description"></section>
  699. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  700. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  701. &mdash;
  702. </article>
  703. </section>
  704. <script type="text/javascript">
  705. function loadExternalCodeSnippets(line) {
  706. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  707. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  708. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  709. var language = 'php';
  710. var code = document.createElement('code');
  711. code.className = 'language-' + language;
  712. pre.textContent = '';
  713. pre.setAttribute('data-line', line)
  714. code.textContent = 'Loading…';
  715. pre.appendChild(code);
  716. var xhr = new XMLHttpRequest();
  717. xhr.open('GET', src, true);
  718. xhr.onreadystatechange = function () {
  719. if (xhr.readyState == 4) {
  720. if (xhr.status < 400 && xhr.responseText) {
  721. code.textContent = xhr.responseText;
  722. Prism.highlightElement(code);
  723. }
  724. else if (xhr.status >= 400) {
  725. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  726. }
  727. else {
  728. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  729. }
  730. }
  731. };
  732. xhr.send(null);
  733. });
  734. }
  735. var modals = document.querySelectorAll("[data-modal]");
  736. modals.forEach(function (trigger) {
  737. trigger.addEventListener("click", function (event) {
  738. //event.preventDefault();
  739. const modal = document.getElementById(trigger.dataset.modal);
  740. modal.classList.add("phpdocumentor-modal__open");
  741. loadExternalCodeSnippets(trigger.dataset.line)
  742. const exits = modal.querySelectorAll("[data-exit-button]");
  743. exits.forEach(function (exit) {
  744. exit.addEventListener("click", function (event) {
  745. event.preventDefault();
  746. modal.classList.remove("phpdocumentor-modal__open");
  747. });
  748. });
  749. });
  750. });
  751. </script>
  752. </article>
  753. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  754. <section class="phpdocumentor-search-results__dialog">
  755. <header class="phpdocumentor-search-results__header">
  756. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  757. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  758. </header>
  759. <section class="phpdocumentor-search-results__body">
  760. <ul class="phpdocumentor-search-results__entries"></ul>
  761. </section>
  762. </section>
  763. </section>
  764. </div>
  765. </div>
  766. <a href="classes/chillerlan-QRCodeTest-Data-ECITest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  767. </main>
  768. <script>
  769. cssVars({});
  770. </script>
  771. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  772. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  773. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  774. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  775. </body>
  776. </html>