chillerlan-QRCodeTest-Data-NumberTest.html 86 KB

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