chillerlan-QRCodeTest-QROptionsTest.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. <li class="phpdocumentor-topnav__menu-item -menu">
  44. <a href="https://php-qrcode.readthedocs.io">
  45. <span>
  46. User Manual
  47. </span>
  48. </a>
  49. </li>
  50. <li class="phpdocumentor-topnav__menu-item -social">
  51. <a href="https://github.com/chillerlan/php-qrcode">
  52. <span>
  53. <i class="fab fa-github"></i>
  54. </span>
  55. </a>
  56. </li>
  57. </ul>
  58. </nav>
  59. </header>
  60. <main class="phpdocumentor">
  61. <div class="phpdocumentor-section">
  62. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  63. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  64. Menu
  65. </label>
  66. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  71. </h4>
  72. <ul class="phpdocumentor-list">
  73. <li>
  74. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  75. </li>
  76. <li>
  77. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  78. </li>
  79. </ul>
  80. </section>
  81. <section class="phpdocumentor-sidebar__category">
  82. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  83. <h4 class="phpdocumentor-sidebar__root-namespace">
  84. <a href="packages/Application.html" class="">Application</a>
  85. </h4>
  86. </section>
  87. <section class="phpdocumentor-sidebar__category">
  88. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  89. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  90. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  91. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  92. </section>
  93. <section class="phpdocumentor-sidebar__category">
  94. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  96. </section>
  97. </aside>
  98. <div class="phpdocumentor-column -eight phpdocumentor-content">
  99. <ul class="phpdocumentor-breadcrumbs">
  100. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  101. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  102. </ul>
  103. <article class="phpdocumentor-element -class">
  104. <h2 class="phpdocumentor-content__title">
  105. QROptionsTest
  106. <span class="phpdocumentor-element__extends">
  107. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  108. </span>
  109. <div class="phpdocumentor-element__package">
  110. in package
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  113. </ul>
  114. </div>
  115. </h2>
  116. <aside class="phpdocumentor-element-found-in">
  117. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  118. :
  119. <span class="phpdocumentor-element-found-in__line">22</span>
  120. </aside>
  121. <p class="phpdocumentor-summary">QROptions test</p>
  122. <h3 id="toc">
  123. Table of Contents
  124. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  125. </h3>
  126. <dl class="phpdocumentor-table-of-contents">
  127. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  128. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_circleRadiusProvider">circleRadiusProvider()</a>
  129. <span>
  130. &nbsp;: array&lt;string|int, array&lt;string|int, float&gt;&gt; </span>
  131. </dt>
  132. <dd></dd>
  133. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  134. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_logoSpaceValueProvider">logoSpaceValueProvider()</a>
  135. <span>
  136. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  137. </dt>
  138. <dd></dd>
  139. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  140. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_RGBProvider">RGBProvider()</a>
  141. <span>
  142. &nbsp;: array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt; </span>
  143. </dt>
  144. <dd></dd>
  145. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  146. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampCircleRadius">testClampCircleRadius()</a>
  147. <span>
  148. &nbsp;: void </span>
  149. </dt>
  150. <dd>Tests clamping of the circle radius</dd>
  151. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  152. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampLogoSpaceValue">testClampLogoSpaceValue()</a>
  153. <span>
  154. &nbsp;: void </span>
  155. </dt>
  156. <dd>Tests the clamping (between 0 and 177) of the logo space values</dd>
  157. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  158. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testLogoSpaceStartNullable">testLogoSpaceStartNullable()</a>
  159. <span>
  160. &nbsp;: void </span>
  161. </dt>
  162. <dd>Tests if the optional logo space start values are nullable</dd>
  163. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  164. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionClamp">testVersionClamp()</a>
  165. <span>
  166. &nbsp;: void </span>
  167. </dt>
  168. <dd>Tests the $version clamping</dd>
  169. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  170. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionMinMaxClamp">testVersionMinMaxClamp()</a>
  171. <span>
  172. &nbsp;: void </span>
  173. </dt>
  174. <dd>Tests the $versionMin/$versionMax clamping</dd>
  175. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  176. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionMinMaxProvider">VersionMinMaxProvider()</a>
  177. <span>
  178. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  179. </dt>
  180. <dd></dd>
  181. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  182. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionProvider">VersionProvider()</a>
  183. <span>
  184. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  185. </dt>
  186. <dd></dd>
  187. </dl>
  188. <section class="phpdocumentor-methods">
  189. <h3 class="phpdocumentor-elements__header" id="methods">
  190. Methods
  191. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  192. </h3>
  193. <article
  194. class="phpdocumentor-element
  195. -method
  196. -public
  197. -static "
  198. >
  199. <h4 class="phpdocumentor-element__name" id="method_circleRadiusProvider">
  200. circleRadiusProvider()
  201. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_circleRadiusProvider" class="headerlink"><i class="fas fa-link"></i></a>
  202. </h4>
  203. <aside class="phpdocumentor-element-found-in">
  204. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  205. :
  206. <span class="phpdocumentor-element-found-in__line">132</span>
  207. </aside>
  208. <code class="phpdocumentor-code phpdocumentor-signature ">
  209. <span class="phpdocumentor-signature__visibility">public</span>
  210. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">circleRadiusProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, float&gt;&gt;</span></code>
  211. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  212. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, float&gt;&gt;</span>
  213. &mdash;
  214. </article>
  215. <article
  216. class="phpdocumentor-element
  217. -method
  218. -public
  219. -static "
  220. >
  221. <h4 class="phpdocumentor-element__name" id="method_logoSpaceValueProvider">
  222. logoSpaceValueProvider()
  223. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_logoSpaceValueProvider" class="headerlink"><i class="fas fa-link"></i></a>
  224. </h4>
  225. <aside class="phpdocumentor-element-found-in">
  226. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  227. :
  228. <span class="phpdocumentor-element-found-in__line">85</span>
  229. </aside>
  230. <code class="phpdocumentor-code phpdocumentor-signature ">
  231. <span class="phpdocumentor-signature__visibility">public</span>
  232. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">logoSpaceValueProvider</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>
  233. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  234. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  235. &mdash;
  236. </article>
  237. <article
  238. class="phpdocumentor-element
  239. -method
  240. -public
  241. -static "
  242. >
  243. <h4 class="phpdocumentor-element__name" id="method_RGBProvider">
  244. RGBProvider()
  245. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_RGBProvider" class="headerlink"><i class="fas fa-link"></i></a>
  246. </h4>
  247. <aside class="phpdocumentor-element-found-in">
  248. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  249. :
  250. <span class="phpdocumentor-element-found-in__line">74</span>
  251. </aside>
  252. <code class="phpdocumentor-code phpdocumentor-signature ">
  253. <span class="phpdocumentor-signature__visibility">public</span>
  254. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">RGBProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt;</span></code>
  255. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  256. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt;</span>
  257. &mdash;
  258. </article>
  259. <article
  260. class="phpdocumentor-element
  261. -method
  262. -public
  263. "
  264. >
  265. <h4 class="phpdocumentor-element__name" id="method_testClampCircleRadius">
  266. testClampCircleRadius()
  267. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampCircleRadius" class="headerlink"><i class="fas fa-link"></i></a>
  268. </h4>
  269. <aside class="phpdocumentor-element-found-in">
  270. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  271. :
  272. <span class="phpdocumentor-element-found-in__line">145</span>
  273. </aside>
  274. <p class="phpdocumentor-summary">Tests clamping of the circle radius</p>
  275. <code class="phpdocumentor-code phpdocumentor-signature ">
  276. <span class="phpdocumentor-signature__visibility">public</span>
  277. <span class="phpdocumentor-signature__name">testClampCircleRadius</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  278. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  279. <dl class="phpdocumentor-argument-list">
  280. <dt class="phpdocumentor-argument-list__entry">
  281. <span class="phpdocumentor-signature__argument__name">$value</span>
  282. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  283. </dt>
  284. <dd class="phpdocumentor-argument-list__definition">
  285. <section class="phpdocumentor-description"></section>
  286. </dd>
  287. <dt class="phpdocumentor-argument-list__entry">
  288. <span class="phpdocumentor-signature__argument__name">$expected</span>
  289. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  290. </dt>
  291. <dd class="phpdocumentor-argument-list__definition">
  292. <section class="phpdocumentor-description"></section>
  293. </dd>
  294. </dl>
  295. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  296. Tags
  297. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  298. </h5>
  299. <dl class="phpdocumentor-tag-list">
  300. <dt class="phpdocumentor-tag-list__entry">
  301. <span class="phpdocumentor-tag__name">dataProvider</span>
  302. </dt>
  303. <dd class="phpdocumentor-tag-list__definition">
  304. <section class="phpdocumentor-description"><p>circleRadiusProvider</p>
  305. </section>
  306. </dd>
  307. </dl>
  308. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  309. <span class="phpdocumentor-signature__response_type">void</span>
  310. &mdash;
  311. </article>
  312. <article
  313. class="phpdocumentor-element
  314. -method
  315. -public
  316. "
  317. >
  318. <h4 class="phpdocumentor-element__name" id="method_testClampLogoSpaceValue">
  319. testClampLogoSpaceValue()
  320. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampLogoSpaceValue" class="headerlink"><i class="fas fa-link"></i></a>
  321. </h4>
  322. <aside class="phpdocumentor-element-found-in">
  323. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  324. :
  325. <span class="phpdocumentor-element-found-in__line">100</span>
  326. </aside>
  327. <p class="phpdocumentor-summary">Tests the clamping (between 0 and 177) of the logo space values</p>
  328. <code class="phpdocumentor-code phpdocumentor-signature ">
  329. <span class="phpdocumentor-signature__visibility">public</span>
  330. <span class="phpdocumentor-signature__name">testClampLogoSpaceValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  331. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  332. <dl class="phpdocumentor-argument-list">
  333. <dt class="phpdocumentor-argument-list__entry">
  334. <span class="phpdocumentor-signature__argument__name">$value</span>
  335. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  336. </dt>
  337. <dd class="phpdocumentor-argument-list__definition">
  338. <section class="phpdocumentor-description"></section>
  339. </dd>
  340. <dt class="phpdocumentor-argument-list__entry">
  341. <span class="phpdocumentor-signature__argument__name">$expected</span>
  342. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  343. </dt>
  344. <dd class="phpdocumentor-argument-list__definition">
  345. <section class="phpdocumentor-description"></section>
  346. </dd>
  347. </dl>
  348. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  349. Tags
  350. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  351. </h5>
  352. <dl class="phpdocumentor-tag-list">
  353. <dt class="phpdocumentor-tag-list__entry">
  354. <span class="phpdocumentor-tag__name">dataProvider</span>
  355. </dt>
  356. <dd class="phpdocumentor-tag-list__definition">
  357. <section class="phpdocumentor-description"><p>logoSpaceValueProvider</p>
  358. </section>
  359. </dd>
  360. </dl>
  361. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  362. <span class="phpdocumentor-signature__response_type">void</span>
  363. &mdash;
  364. </article>
  365. <article
  366. class="phpdocumentor-element
  367. -method
  368. -public
  369. "
  370. >
  371. <h4 class="phpdocumentor-element__name" id="method_testLogoSpaceStartNullable">
  372. testLogoSpaceStartNullable()
  373. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testLogoSpaceStartNullable" class="headerlink"><i class="fas fa-link"></i></a>
  374. </h4>
  375. <aside class="phpdocumentor-element-found-in">
  376. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  377. :
  378. <span class="phpdocumentor-element-found-in__line">113</span>
  379. </aside>
  380. <p class="phpdocumentor-summary">Tests if the optional logo space start values are nullable</p>
  381. <code class="phpdocumentor-code phpdocumentor-signature ">
  382. <span class="phpdocumentor-signature__visibility">public</span>
  383. <span class="phpdocumentor-signature__name">testLogoSpaceStartNullable</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  384. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  385. <span class="phpdocumentor-signature__response_type">void</span>
  386. &mdash;
  387. </article>
  388. <article
  389. class="phpdocumentor-element
  390. -method
  391. -public
  392. "
  393. >
  394. <h4 class="phpdocumentor-element__name" id="method_testVersionClamp">
  395. testVersionClamp()
  396. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionClamp" class="headerlink"><i class="fas fa-link"></i></a>
  397. </h4>
  398. <aside class="phpdocumentor-element-found-in">
  399. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  400. :
  401. <span class="phpdocumentor-element-found-in__line">41</span>
  402. </aside>
  403. <p class="phpdocumentor-summary">Tests the $version clamping</p>
  404. <code class="phpdocumentor-code phpdocumentor-signature ">
  405. <span class="phpdocumentor-signature__visibility">public</span>
  406. <span class="phpdocumentor-signature__name">testVersionClamp</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 class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  407. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  408. <dl class="phpdocumentor-argument-list">
  409. <dt class="phpdocumentor-argument-list__entry">
  410. <span class="phpdocumentor-signature__argument__name">$version</span>
  411. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  412. </dt>
  413. <dd class="phpdocumentor-argument-list__definition">
  414. <section class="phpdocumentor-description"></section>
  415. </dd>
  416. <dt class="phpdocumentor-argument-list__entry">
  417. <span class="phpdocumentor-signature__argument__name">$expected</span>
  418. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  419. </dt>
  420. <dd class="phpdocumentor-argument-list__definition">
  421. <section class="phpdocumentor-description"></section>
  422. </dd>
  423. </dl>
  424. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  425. Tags
  426. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  427. </h5>
  428. <dl class="phpdocumentor-tag-list">
  429. <dt class="phpdocumentor-tag-list__entry">
  430. <span class="phpdocumentor-tag__name">dataProvider</span>
  431. </dt>
  432. <dd class="phpdocumentor-tag-list__definition">
  433. <section class="phpdocumentor-description"><p>VersionProvider</p>
  434. </section>
  435. </dd>
  436. </dl>
  437. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  438. <span class="phpdocumentor-signature__response_type">void</span>
  439. &mdash;
  440. </article>
  441. <article
  442. class="phpdocumentor-element
  443. -method
  444. -public
  445. "
  446. >
  447. <h4 class="phpdocumentor-element__name" id="method_testVersionMinMaxClamp">
  448. testVersionMinMaxClamp()
  449. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionMinMaxClamp" class="headerlink"><i class="fas fa-link"></i></a>
  450. </h4>
  451. <aside class="phpdocumentor-element-found-in">
  452. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  453. :
  454. <span class="phpdocumentor-element-found-in__line">64</span>
  455. </aside>
  456. <p class="phpdocumentor-summary">Tests the $versionMin/$versionMax clamping</p>
  457. <code class="phpdocumentor-code phpdocumentor-signature ">
  458. <span class="phpdocumentor-signature__visibility">public</span>
  459. <span class="phpdocumentor-signature__name">testVersionMinMaxClamp</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionMin</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionMax</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expectedMin</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expectedMax</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  460. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  461. <dl class="phpdocumentor-argument-list">
  462. <dt class="phpdocumentor-argument-list__entry">
  463. <span class="phpdocumentor-signature__argument__name">$versionMin</span>
  464. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  465. </dt>
  466. <dd class="phpdocumentor-argument-list__definition">
  467. <section class="phpdocumentor-description"></section>
  468. </dd>
  469. <dt class="phpdocumentor-argument-list__entry">
  470. <span class="phpdocumentor-signature__argument__name">$versionMax</span>
  471. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  472. </dt>
  473. <dd class="phpdocumentor-argument-list__definition">
  474. <section class="phpdocumentor-description"></section>
  475. </dd>
  476. <dt class="phpdocumentor-argument-list__entry">
  477. <span class="phpdocumentor-signature__argument__name">$expectedMin</span>
  478. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  479. </dt>
  480. <dd class="phpdocumentor-argument-list__definition">
  481. <section class="phpdocumentor-description"></section>
  482. </dd>
  483. <dt class="phpdocumentor-argument-list__entry">
  484. <span class="phpdocumentor-signature__argument__name">$expectedMax</span>
  485. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  486. </dt>
  487. <dd class="phpdocumentor-argument-list__definition">
  488. <section class="phpdocumentor-description"></section>
  489. </dd>
  490. </dl>
  491. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  492. Tags
  493. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  494. </h5>
  495. <dl class="phpdocumentor-tag-list">
  496. <dt class="phpdocumentor-tag-list__entry">
  497. <span class="phpdocumentor-tag__name">dataProvider</span>
  498. </dt>
  499. <dd class="phpdocumentor-tag-list__definition">
  500. <section class="phpdocumentor-description"><p>VersionMinMaxProvider</p>
  501. </section>
  502. </dd>
  503. </dl>
  504. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  505. <span class="phpdocumentor-signature__response_type">void</span>
  506. &mdash;
  507. </article>
  508. <article
  509. class="phpdocumentor-element
  510. -method
  511. -public
  512. -static "
  513. >
  514. <h4 class="phpdocumentor-element__name" id="method_VersionMinMaxProvider">
  515. VersionMinMaxProvider()
  516. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionMinMaxProvider" class="headerlink"><i class="fas fa-link"></i></a>
  517. </h4>
  518. <aside class="phpdocumentor-element-found-in">
  519. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  520. :
  521. <span class="phpdocumentor-element-found-in__line">50</span>
  522. </aside>
  523. <code class="phpdocumentor-code phpdocumentor-signature ">
  524. <span class="phpdocumentor-signature__visibility">public</span>
  525. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">VersionMinMaxProvider</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>
  526. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  527. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  528. &mdash;
  529. </article>
  530. <article
  531. class="phpdocumentor-element
  532. -method
  533. -public
  534. -static "
  535. >
  536. <h4 class="phpdocumentor-element__name" id="method_VersionProvider">
  537. VersionProvider()
  538. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionProvider" class="headerlink"><i class="fas fa-link"></i></a>
  539. </h4>
  540. <aside class="phpdocumentor-element-found-in">
  541. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  542. :
  543. <span class="phpdocumentor-element-found-in__line">27</span>
  544. </aside>
  545. <code class="phpdocumentor-code phpdocumentor-signature ">
  546. <span class="phpdocumentor-signature__visibility">public</span>
  547. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">VersionProvider</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>
  548. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  549. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  550. &mdash;
  551. </article>
  552. </section>
  553. <script type="text/javascript">
  554. function loadExternalCodeSnippets(line) {
  555. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  556. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  557. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  558. var language = 'php';
  559. var code = document.createElement('code');
  560. code.className = 'language-' + language;
  561. pre.textContent = '';
  562. pre.setAttribute('data-line', line)
  563. code.textContent = 'Loading…';
  564. pre.appendChild(code);
  565. var xhr = new XMLHttpRequest();
  566. xhr.open('GET', src, true);
  567. xhr.onreadystatechange = function () {
  568. if (xhr.readyState == 4) {
  569. if (xhr.status < 400 && xhr.responseText) {
  570. code.textContent = xhr.responseText;
  571. Prism.highlightElement(code);
  572. }
  573. else if (xhr.status >= 400) {
  574. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  575. }
  576. else {
  577. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  578. }
  579. }
  580. };
  581. xhr.send(null);
  582. });
  583. }
  584. var modals = document.querySelectorAll("[data-modal]");
  585. modals.forEach(function (trigger) {
  586. trigger.addEventListener("click", function (event) {
  587. //event.preventDefault();
  588. const modal = document.getElementById(trigger.dataset.modal);
  589. modal.classList.add("phpdocumentor-modal__open");
  590. loadExternalCodeSnippets(trigger.dataset.line)
  591. const exits = modal.querySelectorAll("[data-exit-button]");
  592. exits.forEach(function (exit) {
  593. exit.addEventListener("click", function (event) {
  594. event.preventDefault();
  595. modal.classList.remove("phpdocumentor-modal__open");
  596. });
  597. });
  598. });
  599. });
  600. </script>
  601. </article>
  602. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  603. <section class="phpdocumentor-search-results__dialog">
  604. <header class="phpdocumentor-search-results__header">
  605. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  606. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  607. </header>
  608. <section class="phpdocumentor-search-results__body">
  609. <ul class="phpdocumentor-search-results__entries"></ul>
  610. </section>
  611. </section>
  612. </section>
  613. </div>
  614. </div>
  615. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  616. </main>
  617. <script>
  618. cssVars({});
  619. </script>
  620. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  621. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  622. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  623. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  624. </body>
  625. </html>