chillerlan-QRCodeTest-Data-DataInterfaceTestAbstract.html 87 KB

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