chillerlan-QRCodeTest-Data-KanjiTest.html 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233
  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. KanjiTest
  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/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  105. :
  106. <span class="phpdocumentor-element-found-in__line">20</span>
  107. </aside>
  108. <p class="phpdocumentor-summary">Tests the Kanji 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-KanjiTest.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-KanjiTest.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-KanjiTest.html#method_kanjiProvider">kanjiProvider()</a>
  140. <span>
  141. &nbsp;: array&lt;string|int, mixed&gt; </span>
  142. </dt>
  143. <dd>lists the valid SJIS kanj</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-KanjiTest.html#method_stringValidateProvider">stringValidateProvider()</a>
  152. <span>
  153. &nbsp;: array&lt;string|int, mixed&gt; </span>
  154. </dt>
  155. <dd>isKanji() should pass on Kanji/SJIS 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_testBinaryStringInvalid">testBinaryStringInvalid()</a>
  158. <span>
  159. &nbsp;: void </span>
  160. </dt>
  161. <dd>Tests if a binary string is properly validated as false</dd>
  162. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  163. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testCodeLengthOverflowException">testCodeLengthOverflowException()</a>
  164. <span>
  165. &nbsp;: void </span>
  166. </dt>
  167. <dd>Tests if an exception is thrown on data overflow</dd>
  168. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  169. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDataModeInstance">testDataModeInstance()</a>
  170. <span>
  171. &nbsp;: void </span>
  172. </dt>
  173. <dd>Verifies the QRDataModeInterface instance</dd>
  174. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  175. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment">testDecodeSegment()</a>
  176. <span>
  177. &nbsp;: void </span>
  178. </dt>
  179. <dd>Tests decoding a data segment from a given BitBuffer</dd>
  180. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  181. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a>
  182. <span>
  183. &nbsp;: void </span>
  184. </dt>
  185. <dd>Tests getting the minimum QR version for the given data</dd>
  186. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  187. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a>
  188. <span>
  189. &nbsp;: void </span>
  190. </dt>
  191. <dd>Tests if an exception is thrown when the data exceeds the maximum version while auto detecting</dd>
  192. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  193. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a>
  194. <span>
  195. &nbsp;: void </span>
  196. </dt>
  197. <dd>Tests initializing the data matrix</dd>
  198. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  199. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInstance">testInstance()</a>
  200. <span>
  201. &nbsp;: void </span>
  202. </dt>
  203. <dd>Verifies the QRData instance</dd>
  204. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  205. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException">testInvalidDataException()</a>
  206. <span>
  207. &nbsp;: void </span>
  208. </dt>
  209. <dd>Tests if an exception is thrown when an invalid character is encountered</dd>
  210. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  211. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a>
  212. <span>
  213. &nbsp;: void </span>
  214. </dt>
  215. <dd>Tests if an exception is thrown if the given string is empty</dd>
  216. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  217. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_testValidateSJIS">testValidateSJIS()</a>
  218. <span>
  219. &nbsp;: void </span>
  220. </dt>
  221. <dd></dd>
  222. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  223. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString">testValidateString()</a>
  224. <span>
  225. &nbsp;: void </span>
  226. </dt>
  227. <dd>Tests if a string is properly validated for the respective data mode</dd>
  228. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  229. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a>
  230. <span>
  231. &nbsp;: array&lt;string|int, mixed&gt; </span>
  232. </dt>
  233. <dd>returns versions within the version breakpoints 1-9, 10-26 and 27-40</dd>
  234. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  235. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a>
  236. <span>
  237. &nbsp;: void </span>
  238. </dt>
  239. <dd></dd>
  240. </dl>
  241. <section class="phpdocumentor-properties">
  242. <h3 class="phpdocumentor-elements__header" id="properties">
  243. Properties
  244. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  245. </h3>
  246. <article
  247. class="
  248. phpdocumentor-element
  249. -property
  250. -protected
  251. "
  252. >
  253. <h4 class="phpdocumentor-element__name" id="property_FQN">
  254. $FQN
  255. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#property_FQN" class="headerlink"><i class="fas fa-link"></i></a>
  256. <span class="phpdocumentor-element__modifiers">
  257. </span>
  258. </h4>
  259. <aside class="phpdocumentor-element-found-in">
  260. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  261. :
  262. <span class="phpdocumentor-element-found-in__line">22</span>
  263. </aside>
  264. <code class="phpdocumentor-code phpdocumentor-signature ">
  265. <span class="phpdocumentor-signature__visibility">protected</span>
  266. <span class="phpdocumentor-signature__type">string</span>
  267. <span class="phpdocumentor-signature__name">$FQN</span>
  268. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Data\Kanji::class</span></code>
  269. <section class="phpdocumentor-description"></section>
  270. <section class="phpdocumentor-description"></section>
  271. </article>
  272. <article
  273. class="
  274. phpdocumentor-element
  275. -property
  276. -protected
  277. "
  278. >
  279. <h4 class="phpdocumentor-element__name" id="property_QRData">
  280. $QRData
  281. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData" class="headerlink"><i class="fas fa-link"></i></a>
  282. <span class="phpdocumentor-element__modifiers">
  283. </span>
  284. </h4>
  285. <aside class="phpdocumentor-element-found-in">
  286. <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>
  287. :
  288. <span class="phpdocumentor-element-found-in__line">28</span>
  289. </aside>
  290. <code class="phpdocumentor-code phpdocumentor-signature ">
  291. <span class="phpdocumentor-signature__visibility">protected</span>
  292. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a></span>
  293. <span class="phpdocumentor-signature__name">$QRData</span>
  294. </code>
  295. <section class="phpdocumentor-description"></section>
  296. <section class="phpdocumentor-description"></section>
  297. </article>
  298. <article
  299. class="
  300. phpdocumentor-element
  301. -property
  302. -protected
  303. "
  304. >
  305. <h4 class="phpdocumentor-element__name" id="property_reflection">
  306. $reflection
  307. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_reflection" class="headerlink"><i class="fas fa-link"></i></a>
  308. <span class="phpdocumentor-element__modifiers">
  309. </span>
  310. </h4>
  311. <aside class="phpdocumentor-element-found-in">
  312. <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>
  313. :
  314. <span class="phpdocumentor-element-found-in__line">27</span>
  315. </aside>
  316. <code class="phpdocumentor-code phpdocumentor-signature ">
  317. <span class="phpdocumentor-signature__visibility">protected</span>
  318. <span class="phpdocumentor-signature__type"><abbr title="\ReflectionClass">ReflectionClass</abbr></span>
  319. <span class="phpdocumentor-signature__name">$reflection</span>
  320. </code>
  321. <section class="phpdocumentor-description"></section>
  322. <section class="phpdocumentor-description"></section>
  323. </article>
  324. <article
  325. class="
  326. phpdocumentor-element
  327. -property
  328. -protected
  329. "
  330. >
  331. <h4 class="phpdocumentor-element__name" id="property_testdata">
  332. $testdata
  333. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#property_testdata" class="headerlink"><i class="fas fa-link"></i></a>
  334. <span class="phpdocumentor-element__modifiers">
  335. </span>
  336. </h4>
  337. <aside class="phpdocumentor-element-found-in">
  338. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  339. :
  340. <span class="phpdocumentor-element-found-in__line">23</span>
  341. </aside>
  342. <code class="phpdocumentor-code phpdocumentor-signature ">
  343. <span class="phpdocumentor-signature__visibility">protected</span>
  344. <span class="phpdocumentor-signature__type">string</span>
  345. <span class="phpdocumentor-signature__name">$testdata</span>
  346. = <span class="phpdocumentor-signature__default-value">&#039;漂う花の香り&#039;</span></code>
  347. <section class="phpdocumentor-description"></section>
  348. <section class="phpdocumentor-description"></section>
  349. </article>
  350. </section>
  351. <section class="phpdocumentor-methods">
  352. <h3 class="phpdocumentor-elements__header" id="methods">
  353. Methods
  354. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  355. </h3>
  356. <article
  357. class="phpdocumentor-element
  358. -method
  359. -public
  360. "
  361. >
  362. <h4 class="phpdocumentor-element__name" id="method_kanjiProvider">
  363. kanjiProvider()
  364. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_kanjiProvider" class="headerlink"><i class="fas fa-link"></i></a>
  365. </h4>
  366. <aside class="phpdocumentor-element-found-in">
  367. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  368. :
  369. <span class="phpdocumentor-element-found-in__line">42</span>
  370. </aside>
  371. <p class="phpdocumentor-summary">lists the valid SJIS kanj</p>
  372. <code class="phpdocumentor-code phpdocumentor-signature ">
  373. <span class="phpdocumentor-signature__visibility">public</span>
  374. <span class="phpdocumentor-signature__name">kanjiProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  375. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  376. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  377. &mdash;
  378. </article>
  379. <article
  380. class="phpdocumentor-element
  381. -method
  382. -public
  383. "
  384. >
  385. <h4 class="phpdocumentor-element__name" id="method_maskPatternProvider">
  386. maskPatternProvider()
  387. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  388. </h4>
  389. <aside class="phpdocumentor-element-found-in">
  390. <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>
  391. :
  392. <span class="phpdocumentor-element-found-in__line">57</span>
  393. </aside>
  394. <code class="phpdocumentor-code phpdocumentor-signature ">
  395. <span class="phpdocumentor-signature__visibility">public</span>
  396. <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>
  397. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  398. Tags
  399. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  400. </h5>
  401. <dl class="phpdocumentor-tag-list">
  402. <dt class="phpdocumentor-tag-list__entry">
  403. <span class="phpdocumentor-tag__name">see</span>
  404. </dt>
  405. <dd class="phpdocumentor-tag-list__definition">
  406. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCodeTest\Data\testInitMatrix()">testInitMatrix()</abbr></span>
  407. </dd>
  408. </dl>
  409. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  410. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  411. &mdash;
  412. </article>
  413. <article
  414. class="phpdocumentor-element
  415. -method
  416. -public
  417. "
  418. >
  419. <h4 class="phpdocumentor-element__name" id="method_stringValidateProvider">
  420. stringValidateProvider()
  421. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_stringValidateProvider" class="headerlink"><i class="fas fa-link"></i></a>
  422. </h4>
  423. <aside class="phpdocumentor-element-found-in">
  424. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  425. :
  426. <span class="phpdocumentor-element-found-in__line">28</span>
  427. </aside>
  428. <p class="phpdocumentor-summary">isKanji() should pass on Kanji/SJIS characters and fail on everything else</p>
  429. <code class="phpdocumentor-code phpdocumentor-signature ">
  430. <span class="phpdocumentor-signature__visibility">public</span>
  431. <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>
  432. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  433. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  434. &mdash;
  435. </article>
  436. <article
  437. class="phpdocumentor-element
  438. -method
  439. -public
  440. "
  441. >
  442. <h4 class="phpdocumentor-element__name" id="method_testBinaryStringInvalid">
  443. testBinaryStringInvalid()
  444. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid" class="headerlink"><i class="fas fa-link"></i></a>
  445. </h4>
  446. <aside class="phpdocumentor-element-found-in">
  447. <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>
  448. :
  449. <span class="phpdocumentor-element-found-in__line">107</span>
  450. </aside>
  451. <p class="phpdocumentor-summary">Tests if a binary string is properly validated as false</p>
  452. <code class="phpdocumentor-code phpdocumentor-signature ">
  453. <span class="phpdocumentor-signature__visibility">public</span>
  454. <span class="phpdocumentor-signature__name">testBinaryStringInvalid</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  455. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  456. Tags
  457. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  458. </h5>
  459. <dl class="phpdocumentor-tag-list">
  460. <dt class="phpdocumentor-tag-list__entry">
  461. <span class="phpdocumentor-tag__name">see</span>
  462. </dt>
  463. <dd class="phpdocumentor-tag-list__definition">
  464. <span class="phpdocumentor-tag-link"><a href="https://github.com/chillerlan/php-qrcode/issues/182"><abbr title="https://github.com/chillerlan/php-qrcode/issues/182">https://github.com/chillerlan/php-qrcode/issues/182</abbr></a></span>
  465. </dd>
  466. </dl>
  467. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  468. <span class="phpdocumentor-signature__response_type">void</span>
  469. &mdash;
  470. </article>
  471. <article
  472. class="phpdocumentor-element
  473. -method
  474. -public
  475. "
  476. >
  477. <h4 class="phpdocumentor-element__name" id="method_testCodeLengthOverflowException">
  478. testCodeLengthOverflowException()
  479. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testCodeLengthOverflowException" class="headerlink"><i class="fas fa-link"></i></a>
  480. </h4>
  481. <aside class="phpdocumentor-element-found-in">
  482. <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>
  483. :
  484. <span class="phpdocumentor-element-found-in__line">159</span>
  485. </aside>
  486. <p class="phpdocumentor-summary">Tests if an exception is thrown on data overflow</p>
  487. <code class="phpdocumentor-code phpdocumentor-signature ">
  488. <span class="phpdocumentor-signature__visibility">public</span>
  489. <span class="phpdocumentor-signature__name">testCodeLengthOverflowException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  490. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  491. <span class="phpdocumentor-signature__response_type">void</span>
  492. &mdash;
  493. </article>
  494. <article
  495. class="phpdocumentor-element
  496. -method
  497. -public
  498. "
  499. >
  500. <h4 class="phpdocumentor-element__name" id="method_testDataModeInstance">
  501. testDataModeInstance()
  502. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDataModeInstance" class="headerlink"><i class="fas fa-link"></i></a>
  503. </h4>
  504. <aside class="phpdocumentor-element-found-in">
  505. <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>
  506. :
  507. <span class="phpdocumentor-element-found-in__line">47</span>
  508. </aside>
  509. <p class="phpdocumentor-summary">Verifies the QRDataModeInterface instance</p>
  510. <code class="phpdocumentor-code phpdocumentor-signature ">
  511. <span class="phpdocumentor-signature__visibility">public</span>
  512. <span class="phpdocumentor-signature__name">testDataModeInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  513. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  514. <span class="phpdocumentor-signature__response_type">void</span>
  515. &mdash;
  516. </article>
  517. <article
  518. class="phpdocumentor-element
  519. -method
  520. -public
  521. "
  522. >
  523. <h4 class="phpdocumentor-element__name" id="method_testDecodeSegment">
  524. testDecodeSegment()
  525. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  526. </h4>
  527. <aside class="phpdocumentor-element-found-in">
  528. <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>
  529. :
  530. <span class="phpdocumentor-element-found-in__line">124</span>
  531. </aside>
  532. <p class="phpdocumentor-summary">Tests decoding a data segment from a given BitBuffer</p>
  533. <code class="phpdocumentor-code phpdocumentor-signature ">
  534. <span class="phpdocumentor-signature__visibility">public</span>
  535. <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>
  536. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  537. <dl class="phpdocumentor-argument-list">
  538. <dt class="phpdocumentor-argument-list__entry">
  539. <span class="phpdocumentor-signature__argument__name">$version</span>
  540. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  541. </dt>
  542. <dd class="phpdocumentor-argument-list__definition">
  543. <section class="phpdocumentor-description"></section>
  544. </dd>
  545. </dl>
  546. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  547. Tags
  548. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  549. </h5>
  550. <dl class="phpdocumentor-tag-list">
  551. <dt class="phpdocumentor-tag-list__entry">
  552. <span class="phpdocumentor-tag__name">dataProvider</span>
  553. </dt>
  554. <dd class="phpdocumentor-tag-list__definition">
  555. <section class="phpdocumentor-description"><p>versionBreakpointProvider</p>
  556. </section>
  557. </dd>
  558. </dl>
  559. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  560. <span class="phpdocumentor-signature__response_type">void</span>
  561. &mdash;
  562. </article>
  563. <article
  564. class="phpdocumentor-element
  565. -method
  566. -public
  567. "
  568. >
  569. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersion">
  570. testGetMinimumVersion()
  571. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  572. </h4>
  573. <aside class="phpdocumentor-element-found-in">
  574. <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>
  575. :
  576. <span class="phpdocumentor-element-found-in__line">78</span>
  577. </aside>
  578. <p class="phpdocumentor-summary">Tests getting the minimum QR version for the given data</p>
  579. <code class="phpdocumentor-code phpdocumentor-signature ">
  580. <span class="phpdocumentor-signature__visibility">public</span>
  581. <span class="phpdocumentor-signature__name">testGetMinimumVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  582. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  583. <span class="phpdocumentor-signature__response_type">void</span>
  584. &mdash;
  585. </article>
  586. <article
  587. class="phpdocumentor-element
  588. -method
  589. -public
  590. "
  591. >
  592. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersionException">
  593. testGetMinimumVersionException()
  594. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException" class="headerlink"><i class="fas fa-link"></i></a>
  595. </h4>
  596. <aside class="phpdocumentor-element-found-in">
  597. <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>
  598. :
  599. <span class="phpdocumentor-element-found-in__line">149</span>
  600. </aside>
  601. <p class="phpdocumentor-summary">Tests if an exception is thrown when the data exceeds the maximum version while auto detecting</p>
  602. <code class="phpdocumentor-code phpdocumentor-signature ">
  603. <span class="phpdocumentor-signature__visibility">public</span>
  604. <span class="phpdocumentor-signature__name">testGetMinimumVersionException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  605. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  606. <span class="phpdocumentor-signature__response_type">void</span>
  607. &mdash;
  608. </article>
  609. <article
  610. class="phpdocumentor-element
  611. -method
  612. -public
  613. "
  614. >
  615. <h4 class="phpdocumentor-element__name" id="method_testInitMatrix">
  616. testInitMatrix()
  617. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  618. </h4>
  619. <aside class="phpdocumentor-element-found-in">
  620. <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>
  621. :
  622. <span class="phpdocumentor-element-found-in__line">66</span>
  623. </aside>
  624. <p class="phpdocumentor-summary">Tests initializing the data matrix</p>
  625. <code class="phpdocumentor-code phpdocumentor-signature ">
  626. <span class="phpdocumentor-signature__visibility">public</span>
  627. <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>
  628. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  629. <dl class="phpdocumentor-argument-list">
  630. <dt class="phpdocumentor-argument-list__entry">
  631. <span class="phpdocumentor-signature__argument__name">$maskPattern</span>
  632. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  633. </dt>
  634. <dd class="phpdocumentor-argument-list__definition">
  635. <section class="phpdocumentor-description"></section>
  636. </dd>
  637. </dl>
  638. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  639. Tags
  640. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  641. </h5>
  642. <dl class="phpdocumentor-tag-list">
  643. <dt class="phpdocumentor-tag-list__entry">
  644. <span class="phpdocumentor-tag__name">dataProvider</span>
  645. </dt>
  646. <dd class="phpdocumentor-tag-list__definition">
  647. <section class="phpdocumentor-description"><p>maskPatternProvider</p>
  648. </section>
  649. </dd>
  650. </dl>
  651. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  652. <span class="phpdocumentor-signature__response_type">void</span>
  653. &mdash;
  654. </article>
  655. <article
  656. class="phpdocumentor-element
  657. -method
  658. -public
  659. "
  660. >
  661. <h4 class="phpdocumentor-element__name" id="method_testInstance">
  662. testInstance()
  663. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInstance" class="headerlink"><i class="fas fa-link"></i></a>
  664. </h4>
  665. <aside class="phpdocumentor-element-found-in">
  666. <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>
  667. :
  668. <span class="phpdocumentor-element-found-in__line">40</span>
  669. </aside>
  670. <p class="phpdocumentor-summary">Verifies the QRData instance</p>
  671. <code class="phpdocumentor-code phpdocumentor-signature ">
  672. <span class="phpdocumentor-signature__visibility">public</span>
  673. <span class="phpdocumentor-signature__name">testInstance</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  674. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  675. <span class="phpdocumentor-signature__response_type">void</span>
  676. &mdash;
  677. </article>
  678. <article
  679. class="phpdocumentor-element
  680. -method
  681. -public
  682. "
  683. >
  684. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataException">
  685. testInvalidDataException()
  686. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException" class="headerlink"><i class="fas fa-link"></i></a>
  687. </h4>
  688. <aside class="phpdocumentor-element-found-in">
  689. <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>
  690. :
  691. <span class="phpdocumentor-element-found-in__line">172</span>
  692. </aside>
  693. <p class="phpdocumentor-summary">Tests if an exception is thrown when an invalid character is encountered</p>
  694. <code class="phpdocumentor-code phpdocumentor-signature ">
  695. <span class="phpdocumentor-signature__visibility">public</span>
  696. <span class="phpdocumentor-signature__name">testInvalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  697. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  698. <span class="phpdocumentor-signature__response_type">void</span>
  699. &mdash;
  700. </article>
  701. <article
  702. class="phpdocumentor-element
  703. -method
  704. -public
  705. "
  706. >
  707. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataOnEmptyException">
  708. testInvalidDataOnEmptyException()
  709. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  710. </h4>
  711. <aside class="phpdocumentor-element-found-in">
  712. <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>
  713. :
  714. <span class="phpdocumentor-element-found-in__line">183</span>
  715. </aside>
  716. <p class="phpdocumentor-summary">Tests if an exception is thrown if the given string is empty</p>
  717. <code class="phpdocumentor-code phpdocumentor-signature ">
  718. <span class="phpdocumentor-signature__visibility">public</span>
  719. <span class="phpdocumentor-signature__name">testInvalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  720. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  721. <span class="phpdocumentor-signature__response_type">void</span>
  722. &mdash;
  723. </article>
  724. <article
  725. class="phpdocumentor-element
  726. -method
  727. -public
  728. "
  729. >
  730. <h4 class="phpdocumentor-element__name" id="method_testValidateSJIS">
  731. testValidateSJIS()
  732. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_testValidateSJIS" class="headerlink"><i class="fas fa-link"></i></a>
  733. </h4>
  734. <aside class="phpdocumentor-element-found-in">
  735. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  736. :
  737. <span class="phpdocumentor-element-found-in__line">83</span>
  738. </aside>
  739. <code class="phpdocumentor-code phpdocumentor-signature ">
  740. <span class="phpdocumentor-signature__visibility">public</span>
  741. <span class="phpdocumentor-signature__name">testValidateSJIS</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>
  742. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  743. <dl class="phpdocumentor-argument-list">
  744. <dt class="phpdocumentor-argument-list__entry">
  745. <span class="phpdocumentor-signature__argument__name">$chr</span>
  746. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  747. </dt>
  748. <dd class="phpdocumentor-argument-list__definition">
  749. <section class="phpdocumentor-description"></section>
  750. </dd>
  751. </dl>
  752. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  753. Tags
  754. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  755. </h5>
  756. <dl class="phpdocumentor-tag-list">
  757. <dt class="phpdocumentor-tag-list__entry">
  758. <span class="phpdocumentor-tag__name">dataProvider</span>
  759. </dt>
  760. <dd class="phpdocumentor-tag-list__definition">
  761. <section class="phpdocumentor-description"><p>kanjiProvider</p>
  762. </section>
  763. </dd>
  764. </dl>
  765. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  766. <span class="phpdocumentor-signature__response_type">void</span>
  767. &mdash;
  768. </article>
  769. <article
  770. class="phpdocumentor-element
  771. -method
  772. -public
  773. "
  774. >
  775. <h4 class="phpdocumentor-element__name" id="method_testValidateString">
  776. testValidateString()
  777. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString" class="headerlink"><i class="fas fa-link"></i></a>
  778. </h4>
  779. <aside class="phpdocumentor-element-found-in">
  780. <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>
  781. :
  782. <span class="phpdocumentor-element-found-in__line">97</span>
  783. </aside>
  784. <p class="phpdocumentor-summary">Tests if a string is properly validated for the respective data mode</p>
  785. <code class="phpdocumentor-code phpdocumentor-signature ">
  786. <span class="phpdocumentor-signature__visibility">public</span>
  787. <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>
  788. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  789. <dl class="phpdocumentor-argument-list">
  790. <dt class="phpdocumentor-argument-list__entry">
  791. <span class="phpdocumentor-signature__argument__name">$string</span>
  792. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  793. </dt>
  794. <dd class="phpdocumentor-argument-list__definition">
  795. <section class="phpdocumentor-description"></section>
  796. </dd>
  797. <dt class="phpdocumentor-argument-list__entry">
  798. <span class="phpdocumentor-signature__argument__name">$expected</span>
  799. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  800. </dt>
  801. <dd class="phpdocumentor-argument-list__definition">
  802. <section class="phpdocumentor-description"></section>
  803. </dd>
  804. </dl>
  805. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  806. Tags
  807. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  808. </h5>
  809. <dl class="phpdocumentor-tag-list">
  810. <dt class="phpdocumentor-tag-list__entry">
  811. <span class="phpdocumentor-tag__name">dataProvider</span>
  812. </dt>
  813. <dd class="phpdocumentor-tag-list__definition">
  814. <section class="phpdocumentor-description"><p>stringValidateProvider</p>
  815. </section>
  816. </dd>
  817. </dl>
  818. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  819. <span class="phpdocumentor-signature__response_type">void</span>
  820. &mdash;
  821. </article>
  822. <article
  823. class="phpdocumentor-element
  824. -method
  825. -public
  826. "
  827. >
  828. <h4 class="phpdocumentor-element__name" id="method_versionBreakpointProvider">
  829. versionBreakpointProvider()
  830. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider" class="headerlink"><i class="fas fa-link"></i></a>
  831. </h4>
  832. <aside class="phpdocumentor-element-found-in">
  833. <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>
  834. :
  835. <span class="phpdocumentor-element-found-in__line">115</span>
  836. </aside>
  837. <p class="phpdocumentor-summary">returns versions within the version breakpoints 1-9, 10-26 and 27-40</p>
  838. <code class="phpdocumentor-code phpdocumentor-signature ">
  839. <span class="phpdocumentor-signature__visibility">public</span>
  840. <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>
  841. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  842. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  843. &mdash;
  844. </article>
  845. <article
  846. class="phpdocumentor-element
  847. -method
  848. -protected
  849. "
  850. >
  851. <h4 class="phpdocumentor-element__name" id="method_setUp">
  852. setUp()
  853. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  854. </h4>
  855. <aside class="phpdocumentor-element-found-in">
  856. <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>
  857. :
  858. <span class="phpdocumentor-element-found-in__line">32</span>
  859. </aside>
  860. <code class="phpdocumentor-code phpdocumentor-signature ">
  861. <span class="phpdocumentor-signature__visibility">protected</span>
  862. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  863. <section class="phpdocumentor-description"></section>
  864. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  865. <span class="phpdocumentor-signature__response_type">void</span>
  866. &mdash;
  867. </article>
  868. </section>
  869. <script type="text/javascript">
  870. function loadExternalCodeSnippets(line) {
  871. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  872. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  873. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  874. var language = 'php';
  875. var code = document.createElement('code');
  876. code.className = 'language-' + language;
  877. pre.textContent = '';
  878. pre.setAttribute('data-line', line)
  879. code.textContent = 'Loading…';
  880. pre.appendChild(code);
  881. var xhr = new XMLHttpRequest();
  882. xhr.open('GET', src, true);
  883. xhr.onreadystatechange = function () {
  884. if (xhr.readyState == 4) {
  885. if (xhr.status < 400 && xhr.responseText) {
  886. code.textContent = xhr.responseText;
  887. Prism.highlightElement(code);
  888. }
  889. else if (xhr.status >= 400) {
  890. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  891. }
  892. else {
  893. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  894. }
  895. }
  896. };
  897. xhr.send(null);
  898. });
  899. }
  900. var modals = document.querySelectorAll("[data-modal]");
  901. modals.forEach(function (trigger) {
  902. trigger.addEventListener("click", function (event) {
  903. //event.preventDefault();
  904. const modal = document.getElementById(trigger.dataset.modal);
  905. modal.classList.add("phpdocumentor-modal__open");
  906. loadExternalCodeSnippets(trigger.dataset.line)
  907. const exits = modal.querySelectorAll("[data-exit-button]");
  908. exits.forEach(function (exit) {
  909. exit.addEventListener("click", function (event) {
  910. event.preventDefault();
  911. modal.classList.remove("phpdocumentor-modal__open");
  912. });
  913. });
  914. });
  915. });
  916. </script>
  917. </article>
  918. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  919. <section class="phpdocumentor-search-results__dialog">
  920. <header class="phpdocumentor-search-results__header">
  921. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  922. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  923. </header>
  924. <section class="phpdocumentor-search-results__body">
  925. <ul class="phpdocumentor-search-results__entries"></ul>
  926. </section>
  927. </section>
  928. </section>
  929. </div>
  930. </div>
  931. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  932. </main>
  933. <script>
  934. cssVars({});
  935. </script>
  936. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  937. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  938. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  939. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  940. </body>
  941. </html>