chillerlan-QRCodeTest-Data-KanjiTest.html 81 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. <h4 class="phpdocumentor-sidebar__root-namespace">
  89. <a href="namespaces/output.html" class="">Output</a>
  90. </h4>
  91. </section>
  92. <section class="phpdocumentor-sidebar__category -packages">
  93. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  94. <h4 class="phpdocumentor-sidebar__root-namespace">
  95. <a href="packages/Application.html" class="">Application</a>
  96. </h4>
  97. </section>
  98. <section class="phpdocumentor-sidebar__category -reports">
  99. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  100. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  101. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  102. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  103. </section>
  104. <section class="phpdocumentor-sidebar__category -indices">
  105. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  106. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  107. </section>
  108. </aside>
  109. <div class="phpdocumentor-column -nine phpdocumentor-content">
  110. <section>
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  113. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  114. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-data.html">Data</a></li>
  115. </ul>
  116. <article class="phpdocumentor-element -class">
  117. <h2 class="phpdocumentor-content__title">
  118. KanjiTest
  119. <span class="phpdocumentor-element__extends">
  120. extends <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html"><abbr title="\chillerlan\QRCodeTest\Data\DataInterfaceTestAbstract">DataInterfaceTestAbstract</abbr></a>
  121. </span>
  122. <div class="phpdocumentor-element__package">
  123. in package
  124. <ul class="phpdocumentor-breadcrumbs">
  125. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  126. </ul>
  127. </div>
  128. </h2>
  129. <div class="phpdocumentor-label-line">
  130. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  131. </div>
  132. <aside class="phpdocumentor-element-found-in">
  133. <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>
  134. :
  135. <span class="phpdocumentor-element-found-in__line">23</span>
  136. </aside>
  137. <p class="phpdocumentor-summary">Tests the Kanji class</p>
  138. <h3 id="toc">
  139. Table of Contents
  140. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  141. </h3>
  142. <h4 id="toc-constants">
  143. Constants
  144. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  145. </h4>
  146. <dl class="phpdocumentor-table-of-contents">
  147. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  148. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#constant_testData">testData</a>
  149. <span>
  150. &nbsp;= &#039;漂う花の香り&#039; </span>
  151. </dt>
  152. </dl>
  153. <h4 id="toc-properties">
  154. Properties
  155. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  156. </h4>
  157. <dl class="phpdocumentor-table-of-contents">
  158. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  159. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode">$dataMode</a>
  160. <span>
  161. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  162. </dt>
  163. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  164. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData">$QRData</a>
  165. <span>
  166. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a> </span>
  167. </dt>
  168. </dl>
  169. <h4 id="toc-methods">
  170. Methods
  171. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  172. </h4>
  173. <dl class="phpdocumentor-table-of-contents">
  174. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  175. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  176. <span>
  177. &nbsp;: int </span>
  178. </dt>
  179. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  180. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  181. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_kanjiProvider">kanjiProvider()</a>
  182. <span>
  183. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  184. </dt>
  185. <dd>lists the valid SJIS kanji</dd>
  186. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  187. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a>
  188. <span>
  189. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  190. </dt>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a>
  193. <span>
  194. &nbsp;: <abbr title="\Generator">Generator</abbr> </span>
  195. </dt>
  196. <dd>Generates test data for each data mode:</dd>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_stringValidateProvider">stringValidateProvider()</a>
  199. <span>
  200. &nbsp;: array&lt;string|int, mixed&gt; </span>
  201. </dt>
  202. <dd>isKanji() should pass on Kanji/SJIS characters and fail on everything else</dd>
  203. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  204. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid">testBinaryStringInvalid()</a>
  205. <span>
  206. &nbsp;: void </span>
  207. </dt>
  208. <dd>Tests if a random binary string is properly validated as false</dd>
  209. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  210. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment">testDecodeSegment()</a>
  211. <span>
  212. &nbsp;: void </span>
  213. </dt>
  214. <dd>Tests decoding a data segment from a given BitBuffer</dd>
  215. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  216. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a>
  217. <span>
  218. &nbsp;: void </span>
  219. </dt>
  220. <dd>Tests getting the minimum QR version for the given data</dd>
  221. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  222. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a>
  223. <span>
  224. &nbsp;: void </span>
  225. </dt>
  226. <dd>Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</dd>
  227. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  228. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a>
  229. <span>
  230. &nbsp;: void </span>
  231. </dt>
  232. <dd>Tests initializing the data matrix</dd>
  233. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  234. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException">testInvalidDataException()</a>
  235. <span>
  236. &nbsp;: void </span>
  237. </dt>
  238. <dd>Tests if an exception is thrown when an invalid character is encountered</dd>
  239. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  240. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a>
  241. <span>
  242. &nbsp;: void </span>
  243. </dt>
  244. <dd>Tests if an exception is thrown if the given string is empty</dd>
  245. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  246. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength">testMaxLength()</a>
  247. <span>
  248. &nbsp;: void </span>
  249. </dt>
  250. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  251. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException">testMaxLengthOverflowException()</a>
  252. <span>
  253. &nbsp;: void </span>
  254. </dt>
  255. <dd>Tests if an exception is thrown on data overflow</dd>
  256. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  257. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_testValidateSJIS">testValidateSJIS()</a>
  258. <span>
  259. &nbsp;: void </span>
  260. </dt>
  261. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  262. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString">testValidateString()</a>
  263. <span>
  264. &nbsp;: void </span>
  265. </dt>
  266. <dd>Tests if a string is properly validated for the respective data mode</dd>
  267. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  268. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a>
  269. <span>
  270. &nbsp;: array&lt;string|int, mixed&gt; </span>
  271. </dt>
  272. <dd>returns versions within the version breakpoints 1-9, 10-26 and 27-40</dd>
  273. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  274. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_getDataModeInterface">getDataModeInterface()</a>
  275. <span>
  276. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a> </span>
  277. </dt>
  278. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  279. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a>
  280. <span>
  281. &nbsp;: void </span>
  282. </dt>
  283. </dl>
  284. <section class="phpdocumentor-constants">
  285. <h3 class="phpdocumentor-elements__header" id="constants">
  286. Constants
  287. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  288. </h3>
  289. <article class="phpdocumentor-element -constant -protected ">
  290. <h4 class="phpdocumentor-element__name" id="constant_testData">
  291. testData
  292. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#constant_testData" class="headerlink"><i class="fas fa-link"></i></a>
  293. </h4>
  294. <aside class="phpdocumentor-element-found-in">
  295. <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>
  296. :
  297. <span class="phpdocumentor-element-found-in__line">25</span>
  298. </aside>
  299. <code class="phpdocumentor-signature phpdocumentor-code ">
  300. <span class="phpdocumentor-signature__visibility">protected</span>
  301. <span class="phpdocumentor-signature__type">mixed</span>
  302. <span class="phpdocumentor-signature__name">testData</span>
  303. = <span class="phpdocumentor-signature__default-value">&#039;漂う花の香り&#039;</span>
  304. </code>
  305. </article>
  306. </section>
  307. <section class="phpdocumentor-properties">
  308. <h3 class="phpdocumentor-elements__header" id="properties">
  309. Properties
  310. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  311. </h3>
  312. <article
  313. class="
  314. phpdocumentor-element
  315. -property
  316. -protected
  317. "
  318. >
  319. <h4 class="phpdocumentor-element__name" id="property_dataMode">
  320. $dataMode
  321. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode" class="headerlink"><i class="fas fa-link"></i></a>
  322. <span class="phpdocumentor-element__modifiers">
  323. </span>
  324. </h4>
  325. <aside class="phpdocumentor-element-found-in">
  326. <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>
  327. :
  328. <span class="phpdocumentor-element-found-in__line">30</span>
  329. </aside>
  330. <code class="phpdocumentor-code phpdocumentor-signature ">
  331. <span class="phpdocumentor-signature__visibility">protected</span>
  332. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  333. <span class="phpdocumentor-signature__name">$dataMode</span>
  334. </code>
  335. </article>
  336. <article
  337. class="
  338. phpdocumentor-element
  339. -property
  340. -protected
  341. "
  342. >
  343. <h4 class="phpdocumentor-element__name" id="property_QRData">
  344. $QRData
  345. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData" class="headerlink"><i class="fas fa-link"></i></a>
  346. <span class="phpdocumentor-element__modifiers">
  347. </span>
  348. </h4>
  349. <aside class="phpdocumentor-element-found-in">
  350. <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>
  351. :
  352. <span class="phpdocumentor-element-found-in__line">29</span>
  353. </aside>
  354. <code class="phpdocumentor-code phpdocumentor-signature ">
  355. <span class="phpdocumentor-signature__visibility">protected</span>
  356. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRData.html"><abbr title="\chillerlan\QRCode\Data\QRData">QRData</abbr></a></span>
  357. <span class="phpdocumentor-signature__name">$QRData</span>
  358. </code>
  359. </article>
  360. </section>
  361. <section class="phpdocumentor-methods">
  362. <h3 class="phpdocumentor-elements__header" id="methods">
  363. Methods
  364. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  365. </h3>
  366. <article
  367. class="phpdocumentor-element
  368. -method
  369. -public
  370. -static "
  371. >
  372. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  373. getMaxLengthForMode()
  374. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  375. </h4>
  376. <aside class="phpdocumentor-element-found-in">
  377. <abbr class="phpdocumentor-element-found-in__file" title="tests/QRMaxLengthTrait.php"><a href="files/tests-qrmaxlengthtrait.html"><abbr title="tests/QRMaxLengthTrait.php">QRMaxLengthTrait.php</abbr></a></abbr>
  378. :
  379. <span class="phpdocumentor-element-found-in__line">79</span>
  380. </aside>
  381. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  382. <code class="phpdocumentor-code phpdocumentor-signature ">
  383. <span class="phpdocumentor-signature__visibility">public</span>
  384. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getMaxLengthForMode</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mode</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  385. <div class="phpdocumentor-label-line">
  386. </div>
  387. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  388. <dl class="phpdocumentor-argument-list">
  389. <dt class="phpdocumentor-argument-list__entry">
  390. <span class="phpdocumentor-signature__argument__name">$mode</span>
  391. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  392. </dt>
  393. <dd class="phpdocumentor-argument-list__definition">
  394. </dd>
  395. <dt class="phpdocumentor-argument-list__entry">
  396. <span class="phpdocumentor-signature__argument__name">$version</span>
  397. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  398. </dt>
  399. <dd class="phpdocumentor-argument-list__definition">
  400. </dd>
  401. <dt class="phpdocumentor-argument-list__entry">
  402. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  403. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  404. </dt>
  405. <dd class="phpdocumentor-argument-list__definition">
  406. </dd>
  407. </dl>
  408. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  409. Tags
  410. <a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode#tags" class="headerlink"><i class="fas fa-link"></i></a>
  411. </h5>
  412. <dl class="phpdocumentor-tag-list">
  413. <dt class="phpdocumentor-tag-list__entry">
  414. <span class="phpdocumentor-tag__name">throws</span>
  415. </dt>
  416. <dd class="phpdocumentor-tag-list__definition">
  417. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  418. </dd>
  419. <dt class="phpdocumentor-tag-list__entry">
  420. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  421. </dt>
  422. <dd class="phpdocumentor-tag-list__definition">
  423. </dd>
  424. </dl>
  425. <section>
  426. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  427. <span class="phpdocumentor-signature__response_type">int</span>
  428. </section>
  429. </article>
  430. <article
  431. class="phpdocumentor-element
  432. -method
  433. -public
  434. -static "
  435. >
  436. <h4 class="phpdocumentor-element__name" id="method_kanjiProvider">
  437. kanjiProvider()
  438. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_kanjiProvider" class="headerlink"><i class="fas fa-link"></i></a>
  439. </h4>
  440. <aside class="phpdocumentor-element-found-in">
  441. <abbr class="phpdocumentor-element-found-in__file" title="tests/Data/KanjiTest.php"><a href="files/tests-data-kanjitest.html"><abbr title="tests/Data/KanjiTest.php">KanjiTest.php</abbr></a></abbr>
  442. :
  443. <span class="phpdocumentor-element-found-in__line">48</span>
  444. </aside>
  445. <p class="phpdocumentor-summary">lists the valid SJIS kanji</p>
  446. <code class="phpdocumentor-code phpdocumentor-signature ">
  447. <span class="phpdocumentor-signature__visibility">public</span>
  448. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">kanjiProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span></code>
  449. <div class="phpdocumentor-label-line">
  450. </div>
  451. <section>
  452. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  453. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  454. </section>
  455. </article>
  456. <article
  457. class="phpdocumentor-element
  458. -method
  459. -public
  460. -static "
  461. >
  462. <h4 class="phpdocumentor-element__name" id="method_maskPatternProvider">
  463. maskPatternProvider()
  464. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  465. </h4>
  466. <aside class="phpdocumentor-element-found-in">
  467. <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>
  468. :
  469. <span class="phpdocumentor-element-found-in__line">44</span>
  470. </aside>
  471. <code class="phpdocumentor-code phpdocumentor-signature ">
  472. <span class="phpdocumentor-signature__visibility">public</span>
  473. <span class="phpdocumentor-signature__static">static</span> <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>
  474. <div class="phpdocumentor-label-line">
  475. </div>
  476. <section>
  477. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  478. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  479. </section>
  480. </article>
  481. <article
  482. class="phpdocumentor-element
  483. -method
  484. -public
  485. -static "
  486. >
  487. <h4 class="phpdocumentor-element__name" id="method_maxLengthProvider">
  488. maxLengthProvider()
  489. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider" class="headerlink"><i class="fas fa-link"></i></a>
  490. </h4>
  491. <aside class="phpdocumentor-element-found-in">
  492. <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>
  493. :
  494. <span class="phpdocumentor-element-found-in__line">118</span>
  495. </aside>
  496. <p class="phpdocumentor-summary">Generates test data for each data mode:</p>
  497. <code class="phpdocumentor-code phpdocumentor-signature ">
  498. <span class="phpdocumentor-signature__visibility">public</span>
  499. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">maxLengthProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span></code>
  500. <div class="phpdocumentor-label-line">
  501. </div>
  502. <section class="phpdocumentor-description"><ul>
  503. <li>version</li>
  504. <li>ECC level</li>
  505. <li>a string that contains the maximum amount of characters for the given mode</li>
  506. <li>a string that contains characters for the given mode and that exceeds the maximum length by one/two character(s)</li>
  507. <li>the maximum allowed character length</li>
  508. </ul>
  509. </section>
  510. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  511. Tags
  512. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider#tags" class="headerlink"><i class="fas fa-link"></i></a>
  513. </h5>
  514. <dl class="phpdocumentor-tag-list">
  515. <dt class="phpdocumentor-tag-list__entry">
  516. <span class="phpdocumentor-tag__name">throws</span>
  517. </dt>
  518. <dd class="phpdocumentor-tag-list__definition">
  519. <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span>
  520. </dd>
  521. </dl>
  522. <section>
  523. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  524. <span class="phpdocumentor-signature__response_type"><abbr title="\Generator">Generator</abbr></span>
  525. </section>
  526. </article>
  527. <article
  528. class="phpdocumentor-element
  529. -method
  530. -public
  531. -static "
  532. >
  533. <h4 class="phpdocumentor-element__name" id="method_stringValidateProvider">
  534. stringValidateProvider()
  535. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_stringValidateProvider" class="headerlink"><i class="fas fa-link"></i></a>
  536. </h4>
  537. <aside class="phpdocumentor-element-found-in">
  538. <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>
  539. :
  540. <span class="phpdocumentor-element-found-in__line">34</span>
  541. </aside>
  542. <p class="phpdocumentor-summary">isKanji() should pass on Kanji/SJIS characters and fail on everything else</p>
  543. <code class="phpdocumentor-code phpdocumentor-signature ">
  544. <span class="phpdocumentor-signature__visibility">public</span>
  545. <span class="phpdocumentor-signature__static">static</span> <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>
  546. <div class="phpdocumentor-label-line">
  547. </div>
  548. <section>
  549. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  550. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  551. </section>
  552. </article>
  553. <article
  554. class="phpdocumentor-element
  555. -method
  556. -public
  557. "
  558. >
  559. <h4 class="phpdocumentor-element__name" id="method_testBinaryStringInvalid">
  560. testBinaryStringInvalid()
  561. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid" class="headerlink"><i class="fas fa-link"></i></a>
  562. </h4>
  563. <aside class="phpdocumentor-element-found-in">
  564. <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>
  565. :
  566. <span class="phpdocumentor-element-found-in__line">78</span>
  567. </aside>
  568. <p class="phpdocumentor-summary">Tests if a random binary string is properly validated as false</p>
  569. <code class="phpdocumentor-code phpdocumentor-signature ">
  570. <span class="phpdocumentor-signature__visibility">public</span>
  571. <span class="phpdocumentor-signature__name">testBinaryStringInvalid</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  572. <div class="phpdocumentor-label-line">
  573. </div>
  574. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  575. Tags
  576. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  577. </h5>
  578. <dl class="phpdocumentor-tag-list">
  579. <dt class="phpdocumentor-tag-list__entry">
  580. <span class="phpdocumentor-tag__name">see</span>
  581. </dt>
  582. <dd class="phpdocumentor-tag-list__definition">
  583. <span class="phpdocumentor-tag-link"><a href="https://github.com/chillerlan/php-qrcode/issues/182">https://github.com/chillerlan/php-qrcode/issues/182</a></span>
  584. </dd>
  585. </dl>
  586. </article>
  587. <article
  588. class="phpdocumentor-element
  589. -method
  590. -public
  591. "
  592. >
  593. <h4 class="phpdocumentor-element__name" id="method_testDecodeSegment">
  594. testDecodeSegment()
  595. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment" class="headerlink"><i class="fas fa-link"></i></a>
  596. </h4>
  597. <aside class="phpdocumentor-element-found-in">
  598. <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>
  599. :
  600. <span class="phpdocumentor-element-found-in__line">92</span>
  601. </aside>
  602. <p class="phpdocumentor-summary">Tests decoding a data segment from a given BitBuffer</p>
  603. <code class="phpdocumentor-code phpdocumentor-signature ">
  604. <span class="phpdocumentor-signature__visibility">public</span>
  605. <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>
  606. <div class="phpdocumentor-label-line">
  607. </div>
  608. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  609. <dl class="phpdocumentor-argument-list">
  610. <dt class="phpdocumentor-argument-list__entry">
  611. <span class="phpdocumentor-signature__argument__name">$version</span>
  612. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  613. </dt>
  614. <dd class="phpdocumentor-argument-list__definition">
  615. </dd>
  616. </dl>
  617. <section class="phpdocumentor-attributes">
  618. <h5 class="phpdocumentor-elements__header" id="attributes">
  619. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  620. </h5>
  621. <dl class="phpdocumentor-argument-list">
  622. <dt class="phpdocumentor-argument-list__entry">
  623. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  624. </dt>
  625. <dd class="phpdocumentor-argument-list__entry">
  626. &#039;versionBreakpointProvider&#039;
  627. </dd>
  628. </dl>
  629. </section>
  630. </article>
  631. <article
  632. class="phpdocumentor-element
  633. -method
  634. -public
  635. "
  636. >
  637. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersion">
  638. testGetMinimumVersion()
  639. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  640. </h4>
  641. <aside class="phpdocumentor-element-found-in">
  642. <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>
  643. :
  644. <span class="phpdocumentor-element-found-in__line">167</span>
  645. </aside>
  646. <p class="phpdocumentor-summary">Tests getting the minimum QR version for the given data</p>
  647. <code class="phpdocumentor-code phpdocumentor-signature ">
  648. <span class="phpdocumentor-signature__visibility">public</span>
  649. <span class="phpdocumentor-signature__name">testGetMinimumVersion</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  650. <div class="phpdocumentor-label-line">
  651. </div>
  652. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  653. <dl class="phpdocumentor-argument-list">
  654. <dt class="phpdocumentor-argument-list__entry">
  655. <span class="phpdocumentor-signature__argument__name">$version</span>
  656. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  657. </dt>
  658. <dd class="phpdocumentor-argument-list__definition">
  659. </dd>
  660. <dt class="phpdocumentor-argument-list__entry">
  661. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  662. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  663. </dt>
  664. <dd class="phpdocumentor-argument-list__definition">
  665. </dd>
  666. <dt class="phpdocumentor-argument-list__entry">
  667. <span class="phpdocumentor-signature__argument__name">$str</span>
  668. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  669. </dt>
  670. <dd class="phpdocumentor-argument-list__definition">
  671. </dd>
  672. </dl>
  673. <section class="phpdocumentor-attributes">
  674. <h5 class="phpdocumentor-elements__header" id="attributes">
  675. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  676. </h5>
  677. <dl class="phpdocumentor-argument-list">
  678. <dt class="phpdocumentor-argument-list__entry">
  679. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  680. </dt>
  681. <dd class="phpdocumentor-argument-list__entry">
  682. &#039;maxLengthProvider&#039;
  683. </dd>
  684. </dl>
  685. </section>
  686. </article>
  687. <article
  688. class="phpdocumentor-element
  689. -method
  690. -public
  691. "
  692. >
  693. <h4 class="phpdocumentor-element__name" id="method_testGetMinimumVersionException">
  694. testGetMinimumVersionException()
  695. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException" class="headerlink"><i class="fas fa-link"></i></a>
  696. </h4>
  697. <aside class="phpdocumentor-element-found-in">
  698. <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>
  699. :
  700. <span class="phpdocumentor-element-found-in__line">213</span>
  701. </aside>
  702. <p class="phpdocumentor-summary">Tests if an exception is thrown when the data exceeds the maximum version while auto-detecting</p>
  703. <code class="phpdocumentor-code phpdocumentor-signature ">
  704. <span class="phpdocumentor-signature__visibility">public</span>
  705. <span class="phpdocumentor-signature__name">testGetMinimumVersionException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  706. <div class="phpdocumentor-label-line">
  707. </div>
  708. </article>
  709. <article
  710. class="phpdocumentor-element
  711. -method
  712. -public
  713. "
  714. >
  715. <h4 class="phpdocumentor-element__name" id="method_testInitMatrix">
  716. testInitMatrix()
  717. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  718. </h4>
  719. <aside class="phpdocumentor-element-found-in">
  720. <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>
  721. :
  722. <span class="phpdocumentor-element-found-in__line">51</span>
  723. </aside>
  724. <p class="phpdocumentor-summary">Tests initializing the data matrix</p>
  725. <code class="phpdocumentor-code phpdocumentor-signature ">
  726. <span class="phpdocumentor-signature__visibility">public</span>
  727. <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">$pattern</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  728. <div class="phpdocumentor-label-line">
  729. </div>
  730. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  731. <dl class="phpdocumentor-argument-list">
  732. <dt class="phpdocumentor-argument-list__entry">
  733. <span class="phpdocumentor-signature__argument__name">$pattern</span>
  734. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  735. </dt>
  736. <dd class="phpdocumentor-argument-list__definition">
  737. </dd>
  738. </dl>
  739. <section class="phpdocumentor-attributes">
  740. <h5 class="phpdocumentor-elements__header" id="attributes">
  741. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  742. </h5>
  743. <dl class="phpdocumentor-argument-list">
  744. <dt class="phpdocumentor-argument-list__entry">
  745. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  746. </dt>
  747. <dd class="phpdocumentor-argument-list__entry">
  748. &#039;maskPatternProvider&#039;
  749. </dd>
  750. </dl>
  751. </section>
  752. </article>
  753. <article
  754. class="phpdocumentor-element
  755. -method
  756. -public
  757. "
  758. >
  759. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataException">
  760. testInvalidDataException()
  761. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException" class="headerlink"><i class="fas fa-link"></i></a>
  762. </h4>
  763. <aside class="phpdocumentor-element-found-in">
  764. <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>
  765. :
  766. <span class="phpdocumentor-element-found-in__line">223</span>
  767. </aside>
  768. <p class="phpdocumentor-summary">Tests if an exception is thrown when an invalid character is encountered</p>
  769. <code class="phpdocumentor-code phpdocumentor-signature ">
  770. <span class="phpdocumentor-signature__visibility">public</span>
  771. <span class="phpdocumentor-signature__name">testInvalidDataException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  772. <div class="phpdocumentor-label-line">
  773. </div>
  774. </article>
  775. <article
  776. class="phpdocumentor-element
  777. -method
  778. -public
  779. "
  780. >
  781. <h4 class="phpdocumentor-element__name" id="method_testInvalidDataOnEmptyException">
  782. testInvalidDataOnEmptyException()
  783. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException" class="headerlink"><i class="fas fa-link"></i></a>
  784. </h4>
  785. <aside class="phpdocumentor-element-found-in">
  786. <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>
  787. :
  788. <span class="phpdocumentor-element-found-in__line">233</span>
  789. </aside>
  790. <p class="phpdocumentor-summary">Tests if an exception is thrown if the given string is empty</p>
  791. <code class="phpdocumentor-code phpdocumentor-signature ">
  792. <span class="phpdocumentor-signature__visibility">public</span>
  793. <span class="phpdocumentor-signature__name">testInvalidDataOnEmptyException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  794. <div class="phpdocumentor-label-line">
  795. </div>
  796. </article>
  797. <article
  798. class="phpdocumentor-element
  799. -method
  800. -public
  801. "
  802. >
  803. <h4 class="phpdocumentor-element__name" id="method_testMaxLength">
  804. testMaxLength()
  805. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength" class="headerlink"><i class="fas fa-link"></i></a>
  806. </h4>
  807. <aside class="phpdocumentor-element-found-in">
  808. <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>
  809. :
  810. <span class="phpdocumentor-element-found-in__line">149</span>
  811. </aside>
  812. <code class="phpdocumentor-code phpdocumentor-signature ">
  813. <span class="phpdocumentor-signature__visibility">public</span>
  814. <span class="phpdocumentor-signature__name">testMaxLength</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  815. <div class="phpdocumentor-label-line">
  816. </div>
  817. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  818. <dl class="phpdocumentor-argument-list">
  819. <dt class="phpdocumentor-argument-list__entry">
  820. <span class="phpdocumentor-signature__argument__name">$version</span>
  821. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  822. </dt>
  823. <dd class="phpdocumentor-argument-list__definition">
  824. </dd>
  825. <dt class="phpdocumentor-argument-list__entry">
  826. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  827. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  828. </dt>
  829. <dd class="phpdocumentor-argument-list__definition">
  830. </dd>
  831. <dt class="phpdocumentor-argument-list__entry">
  832. <span class="phpdocumentor-signature__argument__name">$str</span>
  833. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  834. </dt>
  835. <dd class="phpdocumentor-argument-list__definition">
  836. </dd>
  837. </dl>
  838. <section class="phpdocumentor-attributes">
  839. <h5 class="phpdocumentor-elements__header" id="attributes">
  840. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  841. </h5>
  842. <dl class="phpdocumentor-argument-list">
  843. <dt class="phpdocumentor-argument-list__entry">
  844. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  845. </dt>
  846. <dd class="phpdocumentor-argument-list__entry">
  847. &#039;maxLengthProvider&#039;
  848. </dd>
  849. </dl>
  850. </section>
  851. </article>
  852. <article
  853. class="phpdocumentor-element
  854. -method
  855. -public
  856. "
  857. >
  858. <h4 class="phpdocumentor-element__name" id="method_testMaxLengthOverflowException">
  859. testMaxLengthOverflowException()
  860. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException" class="headerlink"><i class="fas fa-link"></i></a>
  861. </h4>
  862. <aside class="phpdocumentor-element-found-in">
  863. <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>
  864. :
  865. <span class="phpdocumentor-element-found-in__line">197</span>
  866. </aside>
  867. <p class="phpdocumentor-summary">Tests if an exception is thrown on data overflow</p>
  868. <code class="phpdocumentor-code phpdocumentor-signature ">
  869. <span class="phpdocumentor-signature__visibility">public</span>
  870. <span class="phpdocumentor-signature__name">testMaxLengthOverflowException</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str1</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  871. <div class="phpdocumentor-label-line">
  872. </div>
  873. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  874. <dl class="phpdocumentor-argument-list">
  875. <dt class="phpdocumentor-argument-list__entry">
  876. <span class="phpdocumentor-signature__argument__name">$version</span>
  877. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  878. </dt>
  879. <dd class="phpdocumentor-argument-list__definition">
  880. </dd>
  881. <dt class="phpdocumentor-argument-list__entry">
  882. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  883. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  884. </dt>
  885. <dd class="phpdocumentor-argument-list__definition">
  886. </dd>
  887. <dt class="phpdocumentor-argument-list__entry">
  888. <span class="phpdocumentor-signature__argument__name">$str</span>
  889. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  890. </dt>
  891. <dd class="phpdocumentor-argument-list__definition">
  892. </dd>
  893. <dt class="phpdocumentor-argument-list__entry">
  894. <span class="phpdocumentor-signature__argument__name">$str1</span>
  895. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  896. </dt>
  897. <dd class="phpdocumentor-argument-list__definition">
  898. </dd>
  899. </dl>
  900. <section class="phpdocumentor-attributes">
  901. <h5 class="phpdocumentor-elements__header" id="attributes">
  902. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  903. </h5>
  904. <dl class="phpdocumentor-argument-list">
  905. <dt class="phpdocumentor-argument-list__entry">
  906. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  907. </dt>
  908. <dd class="phpdocumentor-argument-list__entry">
  909. &#039;maxLengthProvider&#039;
  910. </dd>
  911. </dl>
  912. </section>
  913. </article>
  914. <article
  915. class="phpdocumentor-element
  916. -method
  917. -public
  918. "
  919. >
  920. <h4 class="phpdocumentor-element__name" id="method_testValidateSJIS">
  921. testValidateSJIS()
  922. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_testValidateSJIS" class="headerlink"><i class="fas fa-link"></i></a>
  923. </h4>
  924. <aside class="phpdocumentor-element-found-in">
  925. <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>
  926. :
  927. <span class="phpdocumentor-element-found-in__line">97</span>
  928. </aside>
  929. <code class="phpdocumentor-code phpdocumentor-signature ">
  930. <span class="phpdocumentor-signature__visibility">public</span>
  931. <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>
  932. <div class="phpdocumentor-label-line">
  933. </div>
  934. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  935. <dl class="phpdocumentor-argument-list">
  936. <dt class="phpdocumentor-argument-list__entry">
  937. <span class="phpdocumentor-signature__argument__name">$chr</span>
  938. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  939. </dt>
  940. <dd class="phpdocumentor-argument-list__definition">
  941. </dd>
  942. </dl>
  943. <section class="phpdocumentor-attributes">
  944. <h5 class="phpdocumentor-elements__header" id="attributes">
  945. Attributes <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_testValidateSJIS#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  946. </h5>
  947. <dl class="phpdocumentor-argument-list">
  948. <dt class="phpdocumentor-argument-list__entry">
  949. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  950. </dt>
  951. <dd class="phpdocumentor-argument-list__entry">
  952. &#039;kanjiProvider&#039;
  953. </dd>
  954. </dl>
  955. <dl class="phpdocumentor-argument-list">
  956. <dt class="phpdocumentor-argument-list__entry">
  957. #[<abbr title="\PHPUnit\Framework\Attributes\Group">Group</abbr>]
  958. </dt>
  959. <dd class="phpdocumentor-argument-list__entry">
  960. &#039;slow&#039;
  961. </dd>
  962. </dl>
  963. </section>
  964. </article>
  965. <article
  966. class="phpdocumentor-element
  967. -method
  968. -public
  969. "
  970. >
  971. <h4 class="phpdocumentor-element__name" id="method_testValidateString">
  972. testValidateString()
  973. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString" class="headerlink"><i class="fas fa-link"></i></a>
  974. </h4>
  975. <aside class="phpdocumentor-element-found-in">
  976. <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>
  977. :
  978. <span class="phpdocumentor-element-found-in__line">68</span>
  979. </aside>
  980. <p class="phpdocumentor-summary">Tests if a string is properly validated for the respective data mode</p>
  981. <code class="phpdocumentor-code phpdocumentor-signature ">
  982. <span class="phpdocumentor-signature__visibility">public</span>
  983. <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>
  984. <div class="phpdocumentor-label-line">
  985. </div>
  986. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  987. <dl class="phpdocumentor-argument-list">
  988. <dt class="phpdocumentor-argument-list__entry">
  989. <span class="phpdocumentor-signature__argument__name">$string</span>
  990. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  991. </dt>
  992. <dd class="phpdocumentor-argument-list__definition">
  993. </dd>
  994. <dt class="phpdocumentor-argument-list__entry">
  995. <span class="phpdocumentor-signature__argument__name">$expected</span>
  996. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  997. </dt>
  998. <dd class="phpdocumentor-argument-list__definition">
  999. </dd>
  1000. </dl>
  1001. <section class="phpdocumentor-attributes">
  1002. <h5 class="phpdocumentor-elements__header" id="attributes">
  1003. Attributes <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  1004. </h5>
  1005. <dl class="phpdocumentor-argument-list">
  1006. <dt class="phpdocumentor-argument-list__entry">
  1007. #[<abbr title="\PHPUnit\Framework\Attributes\DataProvider">DataProvider</abbr>]
  1008. </dt>
  1009. <dd class="phpdocumentor-argument-list__entry">
  1010. &#039;stringValidateProvider&#039;
  1011. </dd>
  1012. </dl>
  1013. </section>
  1014. </article>
  1015. <article
  1016. class="phpdocumentor-element
  1017. -method
  1018. -public
  1019. -static "
  1020. >
  1021. <h4 class="phpdocumentor-element__name" id="method_versionBreakpointProvider">
  1022. versionBreakpointProvider()
  1023. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider" class="headerlink"><i class="fas fa-link"></i></a>
  1024. </h4>
  1025. <aside class="phpdocumentor-element-found-in">
  1026. <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>
  1027. :
  1028. <span class="phpdocumentor-element-found-in__line">85</span>
  1029. </aside>
  1030. <p class="phpdocumentor-summary">returns versions within the version breakpoints 1-9, 10-26 and 27-40</p>
  1031. <code class="phpdocumentor-code phpdocumentor-signature ">
  1032. <span class="phpdocumentor-signature__visibility">public</span>
  1033. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">versionBreakpointProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  1034. <div class="phpdocumentor-label-line">
  1035. </div>
  1036. <section>
  1037. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1038. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  1039. </section>
  1040. </article>
  1041. <article
  1042. class="phpdocumentor-element
  1043. -method
  1044. -protected
  1045. -static "
  1046. >
  1047. <h4 class="phpdocumentor-element__name" id="method_getDataModeInterface">
  1048. getDataModeInterface()
  1049. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_getDataModeInterface" class="headerlink"><i class="fas fa-link"></i></a>
  1050. </h4>
  1051. <aside class="phpdocumentor-element-found-in">
  1052. <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>
  1053. :
  1054. <span class="phpdocumentor-element-found-in__line">27</span>
  1055. </aside>
  1056. <code class="phpdocumentor-code phpdocumentor-signature ">
  1057. <span class="phpdocumentor-signature__visibility">protected</span>
  1058. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getDataModeInterface</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span></code>
  1059. <div class="phpdocumentor-label-line">
  1060. </div>
  1061. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1062. <dl class="phpdocumentor-argument-list">
  1063. <dt class="phpdocumentor-argument-list__entry">
  1064. <span class="phpdocumentor-signature__argument__name">$data</span>
  1065. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1066. </dt>
  1067. <dd class="phpdocumentor-argument-list__definition">
  1068. </dd>
  1069. </dl>
  1070. <section>
  1071. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1072. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  1073. </section>
  1074. </article>
  1075. <article
  1076. class="phpdocumentor-element
  1077. -method
  1078. -protected
  1079. "
  1080. >
  1081. <h4 class="phpdocumentor-element__name" id="method_setUp">
  1082. setUp()
  1083. <a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp" class="headerlink"><i class="fas fa-link"></i></a>
  1084. </h4>
  1085. <aside class="phpdocumentor-element-found-in">
  1086. <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>
  1087. :
  1088. <span class="phpdocumentor-element-found-in__line">34</span>
  1089. </aside>
  1090. <code class="phpdocumentor-code phpdocumentor-signature ">
  1091. <span class="phpdocumentor-signature__visibility">protected</span>
  1092. <span class="phpdocumentor-signature__name">setUp</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1093. <div class="phpdocumentor-label-line">
  1094. </div>
  1095. </article>
  1096. </section>
  1097. <div class="phpdocumentor-modal" id="source-view">
  1098. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1099. <div class="phpdocumentor-modal-container">
  1100. <div class="phpdocumentor-modal-content">
  1101. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Data/KanjiTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1102. </div>
  1103. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1104. </div>
  1105. </div>
  1106. <script type="text/javascript">
  1107. (function () {
  1108. function loadExternalCodeSnippet(el, url, line) {
  1109. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1110. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1111. const language = 'php';
  1112. const code = document.createElement('code');
  1113. code.className = 'language-' + language;
  1114. pre.textContent = '';
  1115. pre.setAttribute('data-line', line)
  1116. code.textContent = 'Loading…';
  1117. pre.appendChild(code);
  1118. var xhr = new XMLHttpRequest();
  1119. xhr.open('GET', src, true);
  1120. xhr.onreadystatechange = function () {
  1121. if (xhr.readyState !== 4) {
  1122. return;
  1123. }
  1124. if (xhr.status < 400 && xhr.responseText) {
  1125. code.textContent = xhr.responseText;
  1126. Prism.highlightElement(code);
  1127. return;
  1128. }
  1129. if (xhr.status === 404) {
  1130. code.textContent = '✖ Error: File could not be found';
  1131. return;
  1132. }
  1133. if (xhr.status >= 400) {
  1134. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1135. return;
  1136. }
  1137. code.textContent = '✖ Error: An unknown error occurred';
  1138. };
  1139. xhr.send(null);
  1140. });
  1141. }
  1142. const modalButtons = document.querySelectorAll("[data-modal]");
  1143. const openedAsLocalFile = window.location.protocol === 'file:';
  1144. if (modalButtons.length > 0 && openedAsLocalFile) {
  1145. console.warn(
  1146. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1147. 'browsers block XHR requests when a page is opened this way'
  1148. );
  1149. }
  1150. modalButtons.forEach(function (trigger) {
  1151. if (openedAsLocalFile) {
  1152. trigger.setAttribute("hidden", "hidden");
  1153. }
  1154. trigger.addEventListener("click", function (event) {
  1155. event.preventDefault();
  1156. const modal = document.getElementById(trigger.dataset.modal);
  1157. if (!modal) {
  1158. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1159. return;
  1160. }
  1161. modal.classList.add("phpdocumentor-modal__open");
  1162. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1163. const exits = modal.querySelectorAll("[data-exit-button]");
  1164. exits.forEach(function (exit) {
  1165. exit.addEventListener("click", function (event) {
  1166. event.preventDefault();
  1167. modal.classList.remove("phpdocumentor-modal__open");
  1168. });
  1169. });
  1170. });
  1171. });
  1172. })();
  1173. </script>
  1174. </article>
  1175. </section>
  1176. <section class="phpdocumentor-on-this-page__sidebar">
  1177. <section class="phpdocumentor-on-this-page__content">
  1178. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1179. <ul class="phpdocumentor-list -clean">
  1180. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1181. <li>
  1182. <ul class="phpdocumentor-list -clean">
  1183. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-constants">Constants</a></li>
  1184. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-properties">Properties</a></li>
  1185. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#toc-methods">Methods</a></li>
  1186. </ul>
  1187. </li>
  1188. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  1189. <li>
  1190. <ul class="phpdocumentor-list -clean">
  1191. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#constant_testData">testData</a></li>
  1192. </ul>
  1193. </li>
  1194. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1195. <li>
  1196. <ul class="phpdocumentor-list -clean">
  1197. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_dataMode">$dataMode<a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html"></li>
  1198. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#property_QRData">$QRData<a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html"></li>
  1199. </ul>
  1200. </li>
  1201. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1202. <li>
  1203. <ul class="phpdocumentor-list -clean">
  1204. <li><a href="classes/chillerlan-QRCodeTest-QRMaxLengthTrait.html#method_getMaxLengthForMode">getMaxLengthForMode()</a></li>
  1205. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_kanjiProvider">kanjiProvider()</a></li>
  1206. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maskPatternProvider">maskPatternProvider()</a></li>
  1207. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_maxLengthProvider">maxLengthProvider()</a></li>
  1208. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_stringValidateProvider">stringValidateProvider()</a></li>
  1209. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testBinaryStringInvalid">testBinaryStringInvalid()</a></li>
  1210. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testDecodeSegment">testDecodeSegment()</a></li>
  1211. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersion">testGetMinimumVersion()</a></li>
  1212. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testGetMinimumVersionException">testGetMinimumVersionException()</a></li>
  1213. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInitMatrix">testInitMatrix()</a></li>
  1214. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataException">testInvalidDataException()</a></li>
  1215. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testInvalidDataOnEmptyException">testInvalidDataOnEmptyException()</a></li>
  1216. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLength">testMaxLength()</a></li>
  1217. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testMaxLengthOverflowException">testMaxLengthOverflowException()</a></li>
  1218. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_testValidateSJIS">testValidateSJIS()</a></li>
  1219. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_testValidateString">testValidateString()</a></li>
  1220. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_versionBreakpointProvider">versionBreakpointProvider()</a></li>
  1221. <li><a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#method_getDataModeInterface">getDataModeInterface()</a></li>
  1222. <li><a href="classes/chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html#method_setUp">setUp()</a></li>
  1223. </ul>
  1224. </li>
  1225. </ul>
  1226. </section>
  1227. </section>
  1228. </div>
  1229. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1230. <section class="phpdocumentor-search-results__dialog">
  1231. <header class="phpdocumentor-search-results__header">
  1232. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1233. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1234. </header>
  1235. <section class="phpdocumentor-search-results__body">
  1236. <ul class="phpdocumentor-search-results__entries"></ul>
  1237. </section>
  1238. </section>
  1239. </section>
  1240. </div>
  1241. <a href="classes/chillerlan-QRCodeTest-Data-KanjiTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1242. </main>
  1243. <script>
  1244. cssVars({});
  1245. </script>
  1246. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1247. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1248. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1249. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1250. </body>
  1251. </html>