chillerlan-QRCodeTest-Data-KanjiTest.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  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"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. KanjiTest
  89. <span class="phpdocumentor-element__extends">
  90. extends <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Data\DatainterfaceTestAbstract">DatainterfaceTestAbstract</abbr></a>
  91. </span>
  92. <div class="phpdocumentor-element__package">
  93. in package
  94. <ul class="phpdocumentor-breadcrumbs">
  95. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  96. </ul>
  97. </div>
  98. </h2>
  99. <aside class="phpdocumentor-element-found-in">
  100. <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>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">18</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">Tests the Kanji class</p>
  105. <h3 id="toc">
  106. Table of Contents
  107. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  108. </h3>
  109. <dl class="phpdocumentor-table-of-contents">
  110. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  111. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#property_dataInterface">$dataInterface</a>
  112. <span>
  113. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a> </span>
  114. </dt>
  115. <dd></dd>
  116. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  117. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#property_FQN">$FQN</a>
  118. <span>
  119. &nbsp;: string </span>
  120. </dt>
  121. <dd></dd>
  122. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  123. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#property_reflection">$reflection</a>
  124. <span>
  125. &nbsp;: <abbr title="\ReflectionClass">ReflectionClass</abbr> </span>
  126. </dt>
  127. <dd></dd>
  128. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  129. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#property_testdata">$testdata</a>
  130. <span>
  131. &nbsp;: string </span>
  132. </dt>
  133. <dd></dd>
  134. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  135. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a>
  136. <span>
  137. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  138. </dt>
  139. <dd></dd>
  140. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  141. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testCodeLengthOverflowException">testCodeLengthOverflowException()</a>
  142. <span>
  143. &nbsp;: void </span>
  144. </dt>
  145. <dd>Tests if an exception is thrown on data overflow</dd>
  146. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  147. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a>
  148. <span>
  149. &nbsp;: void </span>
  150. </dt>
  151. <dd>Tests getting the minimum QR version for the given data</dd>
  152. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  153. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a>
  154. <span>
  155. &nbsp;: void </span>
  156. </dt>
  157. <dd>Tests if an exception is thrown when the data exceeds the maximum version while auto detecting</dd>
  158. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  159. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a>
  160. <span>
  161. &nbsp;: void </span>
  162. </dt>
  163. <dd>Tests initializing the data matrix</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  165. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInstance">testInstance()</a>
  166. <span>
  167. &nbsp;: void </span>
  168. </dt>
  169. <dd>Verifies the data interface instance</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  171. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInvalidDataException">testInvalidDataException()</a>
  172. <span>
  173. &nbsp;: void </span>
  174. </dt>
  175. <dd>Tests if an exception is thrown when an invalid character is encountered</dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  177. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a>
  178. <span>
  179. &nbsp;: void </span>
  180. </dt>
  181. <dd>Tests if an exception is thrown if the given string is empty</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  183. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_setUp">setUp()</a>
  184. <span>
  185. &nbsp;: void </span>
  186. </dt>
  187. <dd></dd>
  188. </dl>
  189. <section class="phpdocumentor-properties">
  190. <h3 class="phpdocumentor-elements__header" id="properties">
  191. Properties
  192. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  193. </h3>
  194. <article
  195. class="
  196. phpdocumentor-element
  197. -property
  198. -protected
  199. "
  200. >
  201. <h4 class="phpdocumentor-element__name" id="property_dataInterface">
  202. $dataInterface
  203. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#property_dataInterface" class="headerlink"><i class="fas fa-link"></i></a>
  204. <span class="phpdocumentor-element__modifiers">
  205. </span>
  206. </h4>
  207. <aside class="phpdocumentor-element-found-in">
  208. <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>
  209. :
  210. <span class="phpdocumentor-element-found-in__line">28</span>
  211. </aside>
  212. <code class="phpdocumentor-code phpdocumentor-signature ">
  213. <span class="phpdocumentor-signature__visibility">protected</span>
  214. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a></span>
  215. <span class="phpdocumentor-signature__name">$dataInterface</span>
  216. </code>
  217. <section class="phpdocumentor-description"></section>
  218. <section class="phpdocumentor-description"></section>
  219. </article>
  220. <article
  221. class="
  222. phpdocumentor-element
  223. -property
  224. -protected
  225. "
  226. >
  227. <h4 class="phpdocumentor-element__name" id="property_FQN">
  228. $FQN
  229. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#property_FQN" class="headerlink"><i class="fas fa-link"></i></a>
  230. <span class="phpdocumentor-element__modifiers">
  231. </span>
  232. </h4>
  233. <aside class="phpdocumentor-element-found-in">
  234. <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>
  235. :
  236. <span class="phpdocumentor-element-found-in__line">20</span>
  237. </aside>
  238. <code class="phpdocumentor-code phpdocumentor-signature ">
  239. <span class="phpdocumentor-signature__visibility">protected</span>
  240. <span class="phpdocumentor-signature__type">string</span>
  241. <span class="phpdocumentor-signature__name">$FQN</span>
  242. = <span class="phpdocumentor-signature__default-value">chillerlanQRCodeDataKanji::class</span></code>
  243. <section class="phpdocumentor-description"></section>
  244. <section class="phpdocumentor-description"></section>
  245. </article>
  246. <article
  247. class="
  248. phpdocumentor-element
  249. -property
  250. -protected
  251. "
  252. >
  253. <h4 class="phpdocumentor-element__name" id="property_reflection">
  254. $reflection
  255. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#property_reflection" 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/DatainterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DatainterfaceTestAbstract.php">DatainterfaceTestAbstract.php</abbr></a></abbr>
  261. :
  262. <span class="phpdocumentor-element-found-in__line">27</span>
  263. </aside>
  264. <code class="phpdocumentor-code phpdocumentor-signature ">
  265. <span class="phpdocumentor-signature__visibility">protected</span>
  266. <span class="phpdocumentor-signature__type"><abbr title="\ReflectionClass">ReflectionClass</abbr></span>
  267. <span class="phpdocumentor-signature__name">$reflection</span>
  268. </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_testdata">
  280. $testdata
  281. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#property_testdata" 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/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  287. :
  288. <span class="phpdocumentor-element-found-in__line">21</span>
  289. </aside>
  290. <code class="phpdocumentor-code phpdocumentor-signature ">
  291. <span class="phpdocumentor-signature__visibility">protected</span>
  292. <span class="phpdocumentor-signature__type">string</span>
  293. <span class="phpdocumentor-signature__name">$testdata</span>
  294. = <span class="phpdocumentor-signature__default-value">&#039;茗荷茗荷茗荷茗荷茗荷&#039;</span></code>
  295. <section class="phpdocumentor-description"></section>
  296. <section class="phpdocumentor-description"></section>
  297. </article>
  298. </section>
  299. <section class="phpdocumentor-methods">
  300. <h3 class="phpdocumentor-elements__header" id="methods">
  301. Methods
  302. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  303. </h3>
  304. <article
  305. class="phpdocumentor-element
  306. -method
  307. -public
  308. "
  309. >
  310. <h4 class="phpdocumentor-element__name" id="method_maskPatternProvider">
  311. maskPatternProvider()
  312. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_maskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  313. </h4>
  314. <aside class="phpdocumentor-element-found-in">
  315. <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>
  316. :
  317. <span class="phpdocumentor-element-found-in__line">48</span>
  318. </aside>
  319. <code class="phpdocumentor-code phpdocumentor-signature ">
  320. <span class="phpdocumentor-signature__visibility">public</span>
  321. <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>
  322. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  323. Tags
  324. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  325. </h5>
  326. <dl class="phpdocumentor-tag-list">
  327. <dt class="phpdocumentor-tag-list__entry">
  328. <span class="phpdocumentor-tag__name">see</span>
  329. </dt>
  330. <dd class="phpdocumentor-tag-list__definition">
  331. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCodeTest\Data\testInitMatrix()">testInitMatrix()</abbr></span>
  332. </dd>
  333. </dl>
  334. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  335. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  336. &mdash;
  337. </article>
  338. <article
  339. class="phpdocumentor-element
  340. -method
  341. -public
  342. "
  343. >
  344. <h4 class="phpdocumentor-element__name" id="method_testCodeLengthOverflowException">
  345. testCodeLengthOverflowException()
  346. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testCodeLengthOverflowException" class="headerlink"><i class="fas fa-link"></i></a>
  347. </h4>
  348. <aside class="phpdocumentor-element-found-in">
  349. <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>
  350. :
  351. <span class="phpdocumentor-element-found-in__line">94</span>
  352. </aside>
  353. <p class="phpdocumentor-summary">Tests if an exception is thrown on data overflow</p>
  354. <code class="phpdocumentor-code phpdocumentor-signature ">
  355. <span class="phpdocumentor-signature__visibility">public</span>
  356. <span class="phpdocumentor-signature__name">testCodeLengthOverflowException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  357. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  358. <span class="phpdocumentor-signature__response_type">void</span>
  359. &mdash;
  360. </article>
  361. <article
  362. class="phpdocumentor-element
  363. -method
  364. -public
  365. "
  366. >
  367. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersion">
  368. testGetMinimumVersion()
  369. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testGetMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  370. </h4>
  371. <aside class="phpdocumentor-element-found-in">
  372. <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>
  373. :
  374. <span class="phpdocumentor-element-found-in__line">69</span>
  375. </aside>
  376. <p class="phpdocumentor-summary">Tests getting the minimum QR version for the given data</p>
  377. <code class="phpdocumentor-code phpdocumentor-signature ">
  378. <span class="phpdocumentor-signature__visibility">public</span>
  379. <span class="phpdocumentor-signature__name">testGetMinimumVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  380. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  381. <span class="phpdocumentor-signature__response_type">void</span>
  382. &mdash;
  383. </article>
  384. <article
  385. class="phpdocumentor-element
  386. -method
  387. -public
  388. "
  389. >
  390. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersionException">
  391. testGetMinimumVersionException()
  392. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testGetMinimumVersionException" class="headerlink"><i class="fas fa-link"></i></a>
  393. </h4>
  394. <aside class="phpdocumentor-element-found-in">
  395. <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>
  396. :
  397. <span class="phpdocumentor-element-found-in__line">81</span>
  398. </aside>
  399. <p class="phpdocumentor-summary">Tests if an exception is thrown when the data exceeds the maximum version while auto detecting</p>
  400. <code class="phpdocumentor-code phpdocumentor-signature ">
  401. <span class="phpdocumentor-signature__visibility">public</span>
  402. <span class="phpdocumentor-signature__name">testGetMinimumVersionException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  403. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  404. <span class="phpdocumentor-signature__response_type">void</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_testInitMatrix">
  414. testInitMatrix()
  415. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInitMatrix" 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/DatainterfaceTestAbstract.php"><a href="files/tests-data-datainterfacetestabstract.html"><abbr title="tests/Data/DatainterfaceTestAbstract.php">DatainterfaceTestAbstract.php</abbr></a></abbr>
  419. :
  420. <span class="phpdocumentor-element-found-in__line">57</span>
  421. </aside>
  422. <p class="phpdocumentor-summary">Tests initializing the data matrix</p>
  423. <code class="phpdocumentor-code phpdocumentor-signature ">
  424. <span class="phpdocumentor-signature__visibility">public</span>
  425. <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>
  426. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  427. <dl class="phpdocumentor-argument-list">
  428. <dt class="phpdocumentor-argument-list__entry">
  429. <span class="phpdocumentor-signature__argument__name">$maskPattern</span>
  430. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  431. </dt>
  432. <dd class="phpdocumentor-argument-list__definition">
  433. <section class="phpdocumentor-description"></section>
  434. </dd>
  435. </dl>
  436. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  437. Tags
  438. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  439. </h5>
  440. <dl class="phpdocumentor-tag-list">
  441. <dt class="phpdocumentor-tag-list__entry">
  442. <span class="phpdocumentor-tag__name">dataProvider</span>
  443. </dt>
  444. <dd class="phpdocumentor-tag-list__definition">
  445. <section class="phpdocumentor-description"><p>maskPatternProvider</p>
  446. </section>
  447. </dd>
  448. </dl>
  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_testInstance">
  460. testInstance()
  461. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInstance" 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">40</span>
  467. </aside>
  468. <p class="phpdocumentor-summary">Verifies the data interface instance</p>
  469. <code class="phpdocumentor-code phpdocumentor-signature ">
  470. <span class="phpdocumentor-signature__visibility">public</span>
  471. <span class="phpdocumentor-signature__name">testInstance</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_testInvalidDataException">
  483. testInvalidDataException()
  484. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInvalidDataException" 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">104</span>
  490. </aside>
  491. <p class="phpdocumentor-summary">Tests if an exception is thrown when an invalid character is encountered</p>
  492. <code class="phpdocumentor-code phpdocumentor-signature ">
  493. <span class="phpdocumentor-signature__visibility">public</span>
  494. <span class="phpdocumentor-signature__name">testInvalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  495. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  496. <span class="phpdocumentor-signature__response_type">void</span>
  497. &mdash;
  498. </article>
  499. <article
  500. class="phpdocumentor-element
  501. -method
  502. -public
  503. "
  504. >
  505. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataOnEmptyException">
  506. testInvalidDataOnEmptyException()
  507. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_testInvalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  508. </h4>
  509. <aside class="phpdocumentor-element-found-in">
  510. <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>
  511. :
  512. <span class="phpdocumentor-element-found-in__line">114</span>
  513. </aside>
  514. <p class="phpdocumentor-summary">Tests if an exception is thrown if the given string is empty</p>
  515. <code class="phpdocumentor-code phpdocumentor-signature ">
  516. <span class="phpdocumentor-signature__visibility">public</span>
  517. <span class="phpdocumentor-signature__name">testInvalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  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. -protected
  526. "
  527. >
  528. <h4 class="phpdocumentor-element__name" id="method_setUp">
  529. setUp()
  530. <a href="classes/chillerlan-QRCodeTest-Data-DatainterfaceTestAbstract.html#method_setUp" 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">32</span>
  536. </aside>
  537. <code class="phpdocumentor-code phpdocumentor-signature ">
  538. <span class="phpdocumentor-signature__visibility">protected</span>
  539. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  540. <section class="phpdocumentor-description"></section>
  541. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  542. <span class="phpdocumentor-signature__response_type">void</span>
  543. &mdash;
  544. </article>
  545. </section>
  546. <script type="text/javascript">
  547. function loadExternalCodeSnippets(line) {
  548. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  549. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  550. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  551. var language = 'php';
  552. var code = document.createElement('code');
  553. code.className = 'language-' + language;
  554. pre.textContent = '';
  555. pre.setAttribute('data-line', line)
  556. code.textContent = 'Loading…';
  557. pre.appendChild(code);
  558. var xhr = new XMLHttpRequest();
  559. xhr.open('GET', src, true);
  560. xhr.onreadystatechange = function () {
  561. if (xhr.readyState == 4) {
  562. if (xhr.status < 400 && xhr.responseText) {
  563. code.textContent = xhr.responseText;
  564. Prism.highlightElement(code);
  565. }
  566. else if (xhr.status >= 400) {
  567. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  568. }
  569. else {
  570. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  571. }
  572. }
  573. };
  574. xhr.send(null);
  575. });
  576. }
  577. var modals = document.querySelectorAll("[data-modal]");
  578. modals.forEach(function (trigger) {
  579. trigger.addEventListener("click", function (event) {
  580. //event.preventDefault();
  581. const modal = document.getElementById(trigger.dataset.modal);
  582. modal.classList.add("phpdocumentor-modal__open");
  583. loadExternalCodeSnippets(trigger.dataset.line)
  584. const exits = modal.querySelectorAll("[data-exit-button]");
  585. exits.forEach(function (exit) {
  586. exit.addEventListener("click", function (event) {
  587. event.preventDefault();
  588. modal.classList.remove("phpdocumentor-modal__open");
  589. });
  590. });
  591. });
  592. });
  593. </script>
  594. </article>
  595. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  596. <section class="phpdocumentor-search-results__dialog">
  597. <header class="phpdocumentor-search-results__header">
  598. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  599. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  600. </header>
  601. <section class="phpdocumentor-search-results__body">
  602. <ul class="phpdocumentor-search-results__entries"></ul>
  603. </section>
  604. </section>
  605. </section>
  606. </div>
  607. </div>
  608. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  609. </main>
  610. <script>
  611. cssVars({});
  612. </script>
  613. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  614. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  615. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  616. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  617. </body>
  618. </html>