chillerlan-QRCodeTest-QROptionsTest.html 37 KB

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