chillerlan-QRCodeTest-Data-HanziTest.html 53 KB

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