create-berna-stencil 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/.eleventy.js +1 -1
  2. package/.gitignore +2 -1
  3. package/bin/create.js +1 -1
  4. package/package.json +7 -6
  5. package/src/api/core/composer.json +1 -2
  6. package/src/api/core/vendor/autoload.php +1 -1
  7. package/src/api/core/vendor/composer/autoload_real.php +5 -5
  8. package/src/api/core/vendor/composer/autoload_static.php +15 -15
  9. package/src/api/core/vendor/composer/installed.json +7 -7
  10. package/src/api/core/vendor/composer/installed.php +2 -2
  11. package/src/api/core/vendor/graham-campbell/result-type/LICENSE +21 -21
  12. package/src/api/core/vendor/graham-campbell/result-type/composer.json +33 -33
  13. package/src/api/core/vendor/graham-campbell/result-type/src/Error.php +121 -121
  14. package/src/api/core/vendor/graham-campbell/result-type/src/Result.php +69 -69
  15. package/src/api/core/vendor/graham-campbell/result-type/src/Success.php +120 -120
  16. package/src/api/core/vendor/phpmailer/phpmailer/COMMITMENT +46 -46
  17. package/src/api/core/vendor/phpmailer/phpmailer/LICENSE +501 -501
  18. package/src/api/core/vendor/phpmailer/phpmailer/README.md +232 -232
  19. package/src/api/core/vendor/phpmailer/phpmailer/SECURITY.md +37 -37
  20. package/src/api/core/vendor/phpmailer/phpmailer/SMTPUTF8.md +48 -48
  21. package/src/api/core/vendor/phpmailer/phpmailer/VERSION +1 -1
  22. package/src/api/core/vendor/phpmailer/phpmailer/composer.json +84 -84
  23. package/src/api/core/vendor/phpmailer/phpmailer/get_oauth_token.php +182 -182
  24. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php +26 -26
  25. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +27 -27
  26. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-as.php +35 -35
  27. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php +27 -27
  28. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php +27 -27
  29. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php +27 -27
  30. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php +27 -27
  31. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-bn.php +35 -35
  32. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +27 -27
  33. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php +28 -28
  34. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php +39 -39
  35. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +28 -28
  36. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php +33 -33
  37. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php +37 -37
  38. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +38 -38
  39. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +28 -28
  40. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php +28 -28
  41. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +27 -27
  42. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +27 -27
  43. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +36 -36
  44. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php +27 -27
  45. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php +27 -27
  46. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php +35 -35
  47. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php +27 -27
  48. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +27 -27
  49. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php +27 -27
  50. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php +31 -31
  51. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +28 -28
  52. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +37 -37
  53. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php +27 -27
  54. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php +27 -27
  55. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ku.php +27 -27
  56. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php +27 -27
  57. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php +27 -27
  58. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php +27 -27
  59. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-mn.php +27 -27
  60. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php +27 -27
  61. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php +37 -37
  62. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +38 -38
  63. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +33 -33
  64. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php +34 -34
  65. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php +38 -38
  66. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +33 -33
  67. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +36 -36
  68. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-si.php +34 -34
  69. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +30 -30
  70. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php +36 -36
  71. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php +28 -28
  72. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php +28 -28
  73. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php +27 -27
  74. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php +28 -28
  75. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +38 -38
  76. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php +28 -28
  77. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ur.php +30 -30
  78. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php +27 -27
  79. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +29 -29
  80. package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +36 -36
  81. package/src/api/core/vendor/phpmailer/phpmailer/src/DSNConfigurator.php +245 -245
  82. package/src/api/core/vendor/phpmailer/phpmailer/src/Exception.php +40 -40
  83. package/src/api/core/vendor/phpmailer/phpmailer/src/OAuth.php +139 -139
  84. package/src/api/core/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php +44 -44
  85. package/src/api/core/vendor/phpmailer/phpmailer/src/PHPMailer.php +5525 -5525
  86. package/src/api/core/vendor/phpmailer/phpmailer/src/POP3.php +470 -470
  87. package/src/api/core/vendor/phpmailer/phpmailer/src/SMTP.php +1617 -1617
  88. package/src/api/core/vendor/phpoption/phpoption/LICENSE +200 -200
  89. package/src/api/core/vendor/phpoption/phpoption/composer.json +50 -50
  90. package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php +175 -175
  91. package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/None.php +136 -136
  92. package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/Option.php +434 -434
  93. package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/Some.php +169 -169
  94. package/src/api/core/vendor/symfony/polyfill-ctype/Ctype.php +232 -232
  95. package/src/api/core/vendor/symfony/polyfill-ctype/LICENSE +19 -19
  96. package/src/api/core/vendor/symfony/polyfill-ctype/README.md +12 -12
  97. package/src/api/core/vendor/symfony/polyfill-ctype/bootstrap.php +50 -50
  98. package/src/api/core/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -46
  99. package/src/api/core/vendor/symfony/polyfill-ctype/composer.json +38 -38
  100. package/src/api/core/vendor/symfony/polyfill-mbstring/LICENSE +19 -19
  101. package/src/api/core/vendor/symfony/polyfill-mbstring/Mbstring.php +1077 -1077
  102. package/src/api/core/vendor/symfony/polyfill-mbstring/README.md +13 -13
  103. package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -119
  104. package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -1397
  105. package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -5
  106. package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -1489
  107. package/src/api/core/vendor/symfony/polyfill-mbstring/bootstrap.php +171 -171
  108. package/src/api/core/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -167
  109. package/src/api/core/vendor/symfony/polyfill-mbstring/composer.json +39 -39
  110. package/src/api/core/vendor/symfony/polyfill-php80/LICENSE +19 -19
  111. package/src/api/core/vendor/symfony/polyfill-php80/Php80.php +115 -115
  112. package/src/api/core/vendor/symfony/polyfill-php80/PhpToken.php +106 -106
  113. package/src/api/core/vendor/symfony/polyfill-php80/README.md +25 -25
  114. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -31
  115. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -16
  116. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -20
  117. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -16
  118. package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -16
  119. package/src/api/core/vendor/symfony/polyfill-php80/bootstrap.php +42 -42
  120. package/src/api/core/vendor/symfony/polyfill-php80/composer.json +37 -37
  121. package/src/api/core/vendor/vlucas/phpdotenv/LICENSE +30 -30
  122. package/src/api/core/vendor/vlucas/phpdotenv/composer.json +60 -60
  123. package/src/api/core/vendor/vlucas/phpdotenv/src/Dotenv.php +267 -267
  124. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +12 -12
  125. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +12 -12
  126. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php +12 -12
  127. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php +12 -12
  128. package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php +12 -12
  129. package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/Loader.php +48 -48
  130. package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php +20 -20
  131. package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/Resolver.php +65 -65
  132. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Entry.php +59 -59
  133. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php +299 -299
  134. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Lexer.php +58 -58
  135. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Lines.php +127 -127
  136. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Parser.php +53 -53
  137. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/ParserInterface.php +19 -19
  138. package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Value.php +88 -88
  139. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +15 -15
  140. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +89 -89
  141. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +80 -80
  142. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +88 -88
  143. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +85 -85
  144. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +110 -110
  145. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +48 -48
  146. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +64 -64
  147. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +91 -91
  148. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +17 -17
  149. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +104 -104
  150. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +88 -88
  151. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +27 -27
  152. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php +107 -107
  153. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +272 -272
  154. package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +51 -51
  155. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/File/Paths.php +44 -44
  156. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/File/Reader.php +81 -81
  157. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/FileStore.php +72 -72
  158. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php +141 -141
  159. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php +17 -17
  160. package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StringStore.php +37 -37
  161. package/src/api/core/vendor/vlucas/phpdotenv/src/Util/Regex.php +112 -112
  162. package/src/api/core/vendor/vlucas/phpdotenv/src/Util/Str.php +108 -108
  163. package/src/api/core/vendor/vlucas/phpdotenv/src/Validator.php +207 -207
  164. package/src/api/core/vendor/graham-campbell/result-type/.gitattributes +0 -9
  165. package/src/api/core/vendor/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +0 -132
  166. package/src/api/core/vendor/graham-campbell/result-type/.github/CONTRIBUTING.md +0 -31
  167. package/src/api/core/vendor/graham-campbell/result-type/.github/FUNDING.yml +0 -2
  168. package/src/api/core/vendor/graham-campbell/result-type/.github/SECURITY.md +0 -14
  169. package/src/api/core/vendor/graham-campbell/result-type/.github/workflows/stale.yml +0 -11
  170. package/src/api/core/vendor/graham-campbell/result-type/.github/workflows/tests.yml +0 -40
  171. package/src/api/core/vendor/graham-campbell/result-type/CHANGELOG.md +0 -53
  172. package/src/api/core/vendor/graham-campbell/result-type/README.md +0 -42
  173. package/src/api/core/vendor/graham-campbell/result-type/phpunit.xml.dist +0 -13
  174. package/src/api/core/vendor/graham-campbell/result-type/tests/ResultTest.php +0 -95
  175. package/src/api/core/vendor/phpmailer/phpmailer/.codecov.yml +0 -21
  176. package/src/api/core/vendor/phpmailer/phpmailer/.editorconfig +0 -15
  177. package/src/api/core/vendor/phpmailer/phpmailer/.gitattributes +0 -17
  178. package/src/api/core/vendor/phpmailer/phpmailer/.github/FUNDING.yml +0 -6
  179. package/src/api/core/vendor/phpmailer/phpmailer/.github/ISSUE_TEMPLATE/bug_report.md +0 -23
  180. package/src/api/core/vendor/phpmailer/phpmailer/.github/actions/build-docs/Dockerfile +0 -15
  181. package/src/api/core/vendor/phpmailer/phpmailer/.github/actions/build-docs/entrypoint.sh +0 -5
  182. package/src/api/core/vendor/phpmailer/phpmailer/.github/dependabot.yml +0 -21
  183. package/src/api/core/vendor/phpmailer/phpmailer/.github/workflows/docs.yaml +0 -30
  184. package/src/api/core/vendor/phpmailer/phpmailer/.github/workflows/scorecards.yml +0 -61
  185. package/src/api/core/vendor/phpmailer/phpmailer/.github/workflows/tests.yml +0 -237
  186. package/src/api/core/vendor/phpmailer/phpmailer/.phan/config.php +0 -41
  187. package/src/api/core/vendor/phpmailer/phpmailer/UPGRADING.md +0 -125
  188. package/src/api/core/vendor/phpmailer/phpmailer/changelog.md +0 -1122
  189. package/src/api/core/vendor/phpmailer/phpmailer/docs/README.md +0 -9
  190. package/src/api/core/vendor/phpmailer/phpmailer/examples/DKIM_gen_keys.phps +0 -81
  191. package/src/api/core/vendor/phpmailer/phpmailer/examples/DKIM_sign.phps +0 -46
  192. package/src/api/core/vendor/phpmailer/phpmailer/examples/README.md +0 -96
  193. package/src/api/core/vendor/phpmailer/phpmailer/examples/azure_xoauth2.phps +0 -126
  194. package/src/api/core/vendor/phpmailer/phpmailer/examples/callback.phps +0 -76
  195. package/src/api/core/vendor/phpmailer/phpmailer/examples/contactform-ajax.phps +0 -146
  196. package/src/api/core/vendor/phpmailer/phpmailer/examples/contactform.phps +0 -95
  197. package/src/api/core/vendor/phpmailer/phpmailer/examples/contents.html +0 -17
  198. package/src/api/core/vendor/phpmailer/phpmailer/examples/contentsutf8.html +0 -23
  199. package/src/api/core/vendor/phpmailer/phpmailer/examples/exceptions.phps +0 -40
  200. package/src/api/core/vendor/phpmailer/phpmailer/examples/extending.phps +0 -72
  201. package/src/api/core/vendor/phpmailer/phpmailer/examples/gmail.phps +0 -106
  202. package/src/api/core/vendor/phpmailer/phpmailer/examples/gmail_xoauth.phps +0 -121
  203. package/src/api/core/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.afdesign +0 -0
  204. package/src/api/core/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.png +0 -0
  205. package/src/api/core/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.svg +0 -209
  206. package/src/api/core/vendor/phpmailer/phpmailer/examples/images/phpmailer.png +0 -0
  207. package/src/api/core/vendor/phpmailer/phpmailer/examples/images/phpmailer_mini.png +0 -0
  208. package/src/api/core/vendor/phpmailer/phpmailer/examples/mail.phps +0 -35
  209. package/src/api/core/vendor/phpmailer/phpmailer/examples/mailing_list.phps +0 -96
  210. package/src/api/core/vendor/phpmailer/phpmailer/examples/pop_before_smtp.phps +0 -60
  211. package/src/api/core/vendor/phpmailer/phpmailer/examples/send_file_upload.phps +0 -60
  212. package/src/api/core/vendor/phpmailer/phpmailer/examples/send_multiple_file_upload.phps +0 -60
  213. package/src/api/core/vendor/phpmailer/phpmailer/examples/sendmail.phps +0 -37
  214. package/src/api/core/vendor/phpmailer/phpmailer/examples/sendoauth2.phps +0 -100
  215. package/src/api/core/vendor/phpmailer/phpmailer/examples/simple_contact_form.phps +0 -102
  216. package/src/api/core/vendor/phpmailer/phpmailer/examples/smime_signed_mail.phps +0 -99
  217. package/src/api/core/vendor/phpmailer/phpmailer/examples/smtp.phps +0 -62
  218. package/src/api/core/vendor/phpmailer/phpmailer/examples/smtp_check.phps +0 -60
  219. package/src/api/core/vendor/phpmailer/phpmailer/examples/smtp_low_memory.phps +0 -117
  220. package/src/api/core/vendor/phpmailer/phpmailer/examples/smtp_no_auth.phps +0 -53
  221. package/src/api/core/vendor/phpmailer/phpmailer/examples/ssl_options.phps +0 -81
  222. package/src/api/core/vendor/phpmailer/phpmailer/phpcs.xml.dist +0 -52
  223. package/src/api/core/vendor/phpmailer/phpmailer/phpdoc.dist.xml +0 -20
  224. package/src/api/core/vendor/phpmailer/phpmailer/phpunit.xml.dist +0 -36
  225. package/src/api/core/vendor/phpmailer/phpmailer/test/DebugLogTestListener.php +0 -47
  226. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/accessible.txt +0 -1
  227. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/inaccessible.txt +0 -1
  228. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-fr.php +0 -10
  229. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-nl.php +0 -10
  230. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xa_scri_cc.php +0 -9
  231. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xb_scri.php +0 -9
  232. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xc_cc.php +0 -9
  233. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_cc.php +0 -9
  234. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_scri.php +0 -9
  235. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xe.php +0 -9
  236. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xx.php +0 -9
  237. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yy.php +0 -16
  238. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yz.php +0 -16
  239. package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-zz.php +0 -20
  240. package/src/api/core/vendor/phpmailer/phpmailer/test/Language/TranslationCompletenessTest.php +0 -97
  241. package/src/api/core/vendor/phpmailer/phpmailer/test/OAuth/OAuthTest.php +0 -76
  242. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AddEmbeddedImageTest.php +0 -178
  243. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AddStringAttachmentTest.php +0 -147
  244. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AddStringEmbeddedImageTest.php +0 -161
  245. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AddrFormatTest.php +0 -70
  246. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AuthCRAMMD5Test.php +0 -48
  247. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/CustomHeaderTest.php +0 -285
  248. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/DKIMTest.php +0 -258
  249. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/DKIMWithoutExceptionsTest.php +0 -46
  250. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/DSNConfiguratorTest.php +0 -221
  251. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/EncodeQTest.php +0 -110
  252. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/EncodeStringTest.php +0 -135
  253. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/FileIsAccessibleTest.php +0 -103
  254. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/FilenameToTypeTest.php +0 -74
  255. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/GenerateIdTest.php +0 -75
  256. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/GetLastMessageIDTest.php +0 -110
  257. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/HasLineLongerThanMaxTest.php +0 -158
  258. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/Html2TextTest.php +0 -231
  259. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ICalTest.php +0 -126
  260. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/IsPermittedPathTest.php +0 -108
  261. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/IsValidHostTest.php +0 -107
  262. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/LocalizationTest.php +0 -505
  263. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/MailTransportTest.php +0 -261
  264. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/MbPathinfoTest.php +0 -171
  265. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/MimeTypesTest.php +0 -70
  266. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/NormalizeBreaksTest.php +0 -111
  267. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/PHPMailerTest.php +0 -1388
  268. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ParseAddressesTest.php +0 -321
  269. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/PunyencodeAddressTest.php +0 -141
  270. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/QuotedStringTest.php +0 -70
  271. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ReplyToGetSetClearTest.php +0 -444
  272. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/SetErrorTest.php +0 -154
  273. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/SetFromTest.php +0 -202
  274. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/SetTest.php +0 -81
  275. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/SetWordWrapTest.php +0 -120
  276. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/Utf8CharBoundaryTest.php +0 -66
  277. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ValidateAddressCustomValidatorTest.php +0 -116
  278. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ValidateAddressTest.php +0 -485
  279. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/WrapTextTest.php +0 -125
  280. package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/XMailerTest.php +0 -75
  281. package/src/api/core/vendor/phpmailer/phpmailer/test/POP3/PopBeforeSmtpTest.php +0 -139
  282. package/src/api/core/vendor/phpmailer/phpmailer/test/PreSendTestCase.php +0 -46
  283. package/src/api/core/vendor/phpmailer/phpmailer/test/Security/DenialOfServiceVectorsTest.php +0 -52
  284. package/src/api/core/vendor/phpmailer/phpmailer/test/SendTestCase.php +0 -126
  285. package/src/api/core/vendor/phpmailer/phpmailer/test/TestCase.php +0 -392
  286. package/src/api/core/vendor/phpmailer/phpmailer/test/fakepopserver.sh +0 -126
  287. package/src/api/core/vendor/phpmailer/phpmailer/test/fakesendmail.sh +0 -22
  288. package/src/api/core/vendor/phpmailer/phpmailer/test/runfakepopserver.sh +0 -12
  289. package/src/api/core/vendor/phpmailer/phpmailer/test/testbootstrap-dist.php +0 -8
  290. package/src/api/core/vendor/phpmailer/phpmailer/test/validators.php +0 -12
  291. package/src/api/core/vendor/phpoption/phpoption/.gitattributes +0 -13
  292. package/src/api/core/vendor/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +0 -132
  293. package/src/api/core/vendor/phpoption/phpoption/.github/CONTRIBUTING.md +0 -30
  294. package/src/api/core/vendor/phpoption/phpoption/.github/FUNDING.yml +0 -2
  295. package/src/api/core/vendor/phpoption/phpoption/.github/SECURITY.md +0 -14
  296. package/src/api/core/vendor/phpoption/phpoption/.github/workflows/static.yml +0 -40
  297. package/src/api/core/vendor/phpoption/phpoption/.github/workflows/tests.yml +0 -40
  298. package/src/api/core/vendor/phpoption/phpoption/Makefile +0 -17
  299. package/src/api/core/vendor/phpoption/phpoption/README.md +0 -201
  300. package/src/api/core/vendor/phpoption/phpoption/phpstan-baseline.neon +0 -44
  301. package/src/api/core/vendor/phpoption/phpoption/phpstan.neon.dist +0 -7
  302. package/src/api/core/vendor/phpoption/phpoption/phpunit.xml.dist +0 -13
  303. package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +0 -72
  304. package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +0 -357
  305. package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +0 -153
  306. package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +0 -166
  307. package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +0 -194
  308. package/src/api/core/vendor/phpoption/phpoption/tests/bootstrap.php +0 -8
  309. package/src/api/core/vendor/phpoption/phpoption/vendor-bin/phpstan/composer.json +0 -8
  310. package/src/api/core/vendor/vlucas/phpdotenv/.editorconfig +0 -15
  311. package/src/api/core/vendor/vlucas/phpdotenv/.gitattributes +0 -15
  312. package/src/api/core/vendor/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +0 -132
  313. package/src/api/core/vendor/vlucas/phpdotenv/.github/CONTRIBUTING.md +0 -30
  314. package/src/api/core/vendor/vlucas/phpdotenv/.github/FUNDING.yml +0 -2
  315. package/src/api/core/vendor/vlucas/phpdotenv/.github/SECURITY.md +0 -14
  316. package/src/api/core/vendor/vlucas/phpdotenv/.github/workflows/static.yml +0 -40
  317. package/src/api/core/vendor/vlucas/phpdotenv/.github/workflows/tests.yml +0 -70
  318. package/src/api/core/vendor/vlucas/phpdotenv/Makefile +0 -17
  319. package/src/api/core/vendor/vlucas/phpdotenv/README.md +0 -370
  320. package/src/api/core/vendor/vlucas/phpdotenv/UPGRADING.md +0 -196
  321. package/src/api/core/vendor/vlucas/phpdotenv/phpstan-baseline.neon +0 -157
  322. package/src/api/core/vendor/vlucas/phpdotenv/phpstan.neon.dist +0 -7
  323. package/src/api/core/vendor/vlucas/phpdotenv/phpunit.xml.dist +0 -13
  324. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +0 -387
  325. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +0 -86
  326. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +0 -234
  327. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +0 -40
  328. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +0 -53
  329. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +0 -98
  330. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +0 -57
  331. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +0 -75
  332. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +0 -52
  333. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +0 -75
  334. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +0 -305
  335. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +0 -141
  336. package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +0 -479
  337. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/.env +0 -5
  338. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/assertions.env +0 -18
  339. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/booleans.env +0 -33
  340. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/commented.env +0 -15
  341. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/empty.env +0 -1
  342. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/example.env +0 -1
  343. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/exported.env +0 -7
  344. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/immutable.env +0 -1
  345. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/integers.env +0 -17
  346. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/large.env +0 -2
  347. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +0 -3
  348. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiline.env +0 -14
  349. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiple.env +0 -4
  350. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/mutable.env +0 -1
  351. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/nested.env +0 -15
  352. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/quoted.env +0 -11
  353. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +0 -8
  354. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +0 -2
  355. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +0 -3
  356. package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/windows.env +0 -1
  357. package/src/api/core/vendor/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +0 -15
@@ -1,81 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * This example shows settings to use when sending over SMTP with TLS and custom connection options.
5
- */
6
-
7
- //Import the PHPMailer class into the global namespace
8
- use PHPMailer\PHPMailer\PHPMailer;
9
- use PHPMailer\PHPMailer\SMTP;
10
-
11
- //SMTP needs accurate times, and the PHP time zone MUST be set
12
- //This should be done in your php.ini, but this is how to do it if you don't have access to that
13
- date_default_timezone_set('Etc/UTC');
14
-
15
- require '../vendor/autoload.php';
16
-
17
- //Create a new PHPMailer instance
18
- $mail = new PHPMailer();
19
-
20
- //Tell PHPMailer to use SMTP
21
- $mail->isSMTP();
22
-
23
- //Enable SMTP debugging
24
- //SMTP::DEBUG_OFF = off (for production use)
25
- //SMTP::DEBUG_CLIENT = client messages
26
- //SMTP::DEBUG_SERVER = client and server messages
27
- $mail->SMTPDebug = SMTP::DEBUG_CONNECTION;
28
-
29
- //Set the hostname of the mail server
30
- $mail->Host = 'smtp.example.com';
31
-
32
- //Set the SMTP port number:
33
- // - 465 for SMTP with implicit TLS, a.k.a. RFC8314 SMTPS or
34
- // - 587 for SMTP+STARTTLS
35
- $mail->Port = 465;
36
-
37
- //Set the encryption mechanism to use:
38
- // - SMTPS (implicit TLS on port 465) or
39
- // - STARTTLS (explicit TLS on port 587)
40
- $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;
41
-
42
- //Custom connection options
43
- //Note that these settings are INSECURE
44
- $mail->SMTPOptions = array(
45
- 'ssl' => [
46
- 'verify_peer' => true,
47
- 'verify_depth' => 3,
48
- 'allow_self_signed' => true,
49
- 'peer_name' => 'smtp.example.com',
50
- 'cafile' => '/etc/ssl/ca_cert.pem',
51
- ],
52
- );
53
-
54
- //Whether to use SMTP authentication
55
- $mail->SMTPAuth = true;
56
-
57
- //Username to use for SMTP authentication - use full email address for gmail
58
- $mail->Username = 'username@example.com';
59
-
60
- //Password to use for SMTP authentication
61
- $mail->Password = 'yourpassword';
62
-
63
- //Set who the message is to be sent from
64
- $mail->setFrom('from@example.com', 'First Last');
65
-
66
- //Set who the message is to be sent to
67
- $mail->addAddress('whoto@example.com', 'John Doe');
68
-
69
- //Set the subject line
70
- $mail->Subject = 'PHPMailer SMTP options test';
71
-
72
- //Read an HTML message body from an external file, convert referenced images to embedded,
73
- //convert HTML into a basic plain-text alternative body
74
- $mail->msgHTML(file_get_contents('contents.html'), __DIR__);
75
-
76
- //Send the message, check for errors
77
- if (!$mail->send()) {
78
- echo 'Mailer Error: ' . $mail->ErrorInfo;
79
- } else {
80
- echo 'Message sent!';
81
- }
@@ -1,52 +0,0 @@
1
- <?xml version="1.0"?>
2
- <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
- xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
4
-
5
- <config name="testVersion" value="5.5-"/>
6
-
7
- <arg name="basepath" value="."/>
8
- <arg name="cache" value=".phpcs-cache"/>
9
- <arg name="colors"/>
10
- <arg name="extensions" value="php,phps"/>
11
- <arg name="parallel" value="10"/>
12
- <!-- Show progress -->
13
- <arg value="p"/>
14
-
15
- <file>get_oauth_token.php</file>
16
- <file>src</file>
17
- <file>test</file>
18
- <file>examples</file>
19
- <file>language</file>
20
-
21
- <rule ref="PSR12">
22
- <exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
23
- <exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
24
- <exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
25
- <exclude name="PSR1.Methods.CamelCapsMethodName"/>
26
- <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
27
- <exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
28
- <exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
29
- </rule>
30
- <rule ref="PHPCompatibility"/>
31
-
32
-
33
- <!--
34
- #############################################################################
35
- SELECTIVE EXCLUSIONS
36
- Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs.
37
- #############################################################################
38
- -->
39
-
40
- <rule ref="Generic.Files.LineLength.TooLong">
41
- <exclude-pattern>*/language/phpmailer\.lang*\.php$</exclude-pattern>
42
- </rule>
43
-
44
- <!-- Excludes related to linting ignore comment for one specific test file. -->
45
- <rule ref="PSR12.Files.OpenTag.NotAlone">
46
- <exclude-pattern>*/test/Fixtures/LocalizationTest/phpmailer.lang-yz\.php</exclude-pattern>
47
- </rule>
48
- <rule ref="PSR12.Files.FileHeader.SpacingAfterBlock">
49
- <exclude-pattern>*/test/Fixtures/LocalizationTest/phpmailer.lang-yz\.php</exclude-pattern>
50
- </rule>
51
-
52
- </ruleset>
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <phpdoc>
3
- <title>PHPMailer</title>
4
- <parser>
5
- <target>docs</target>
6
- <encoding>utf8</encoding>
7
- <markers>
8
- <item>TODO</item>
9
- </markers>
10
- </parser>
11
- <transformer>
12
- <target>docs</target>
13
- </transformer>
14
- <transformations>
15
- <template name="clean"/>
16
- </transformations>
17
- <files>
18
- <directory>src</directory>
19
- </files>
20
- </phpdoc>
@@ -1,36 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <phpunit
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
5
- backupGlobals="true"
6
- bootstrap="vendor/autoload.php"
7
- convertDeprecationsToExceptions="true"
8
- verbose="true"
9
- colors="true"
10
- forceCoversAnnotation="false"
11
- >
12
- <testsuites>
13
- <testsuite name="PHPMailerTests">
14
- <directory>./test/</directory>
15
- </testsuite>
16
- </testsuites>
17
- <listeners>
18
- <listener class="PHPMailer\Test\DebugLogTestListener" />
19
- </listeners>
20
- <groups>
21
- <exclude>
22
- <group>languages</group>
23
- <group>pop3</group>
24
- </exclude>
25
- </groups>
26
- <filter>
27
- <whitelist addUncoveredFilesFromWhitelist="true">
28
- <directory suffix=".php">./src</directory>
29
- </whitelist>
30
- </filter>
31
- <logging>
32
- <log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
33
- <log type="coverage-clover" target="build/logs/clover.xml"/>
34
- <log type="junit" target="build/logs/junit.xml"/>
35
- </logging>
36
- </phpunit>
@@ -1,47 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * PHPMailer - language file tests.
5
- *
6
- * PHP version 5.5.
7
- *
8
- * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
9
- * @author Andy Prevost
10
- * @author Juliette Reinders Folmer
11
- * @copyright 2010 - 2020 Marcus Bointon
12
- * @copyright 2004 - 2009 Andy Prevost
13
- * @copyright 2020 Juliette Reinders Folmer
14
- * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License
15
- */
16
-
17
- namespace PHPMailer\Test;
18
-
19
- use PHPUnit\Framework\TestListener;
20
- use Yoast\PHPUnitPolyfills\TestListeners\TestListenerDefaultImplementation;
21
-
22
- class DebugLogTestListener implements TestListener
23
- {
24
- use TestListenerDefaultImplementation;
25
-
26
- private static $debugLog = '';
27
-
28
- public function add_error($test, $e, $time)
29
- {
30
- echo self::$debugLog;
31
- }
32
-
33
- public function add_failure($test, $e, $time)
34
- {
35
- echo self::$debugLog;
36
- }
37
-
38
- public function start_test($test)
39
- {
40
- self::$debugLog = '';
41
- }
42
-
43
- public static function debugLog($str)
44
- {
45
- self::$debugLog .= $str . PHP_EOL;
46
- }
47
- }
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test overruling an existing translation
7
- * file with a custom one by passing in a `$langPath` parameter.
8
- */
9
-
10
- $PHPMAILER_LANG['empty_message'] = "Custom path test success (fr)";
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test overruling an existing translation
7
- * file with a custom one by passing in a `$langPath` parameter.
8
- */
9
-
10
- $PHPMAILER_LANG['empty_message'] = 'Custom path test success (nl)';
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test the fall-back logic.
7
- */
8
-
9
- $PHPMAILER_LANG['empty_message'] = 'XA Lang-script-country file found';
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test the fall-back logic.
7
- */
8
-
9
- $PHPMAILER_LANG['empty_message'] = 'XB Lang-script file found';
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test the fall-back logic.
7
- */
8
-
9
- $PHPMAILER_LANG['empty_message'] = 'XC Lang-country file found';
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test the fall-back logic.
7
- */
8
-
9
- $PHPMAILER_LANG['empty_message'] = 'XD Lang-country file found';
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test the fall-back logic.
7
- */
8
-
9
- $PHPMAILER_LANG['empty_message'] = 'XD Lang-script file found';
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test the fall-back logic.
7
- */
8
-
9
- $PHPMAILER_LANG['empty_message'] = 'XE Lang file found';
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest`.
7
- */
8
-
9
- $PHPMAILER_LANG['empty_message'] = 'This file should not be loaded as the path is passed incorrectly';
@@ -1,16 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test that arbitrary code in translation files is disregarded.
7
- */
8
-
9
- $composer = file_get_contents(__DIR__ . '/../../../composer.json');
10
-
11
- echo $composer;
12
-
13
- $PHPMAILER_LANG['extension_missing'] = 'Confirming that test fixture was loaded correctly (yy).';
14
- $PHPMAILER_LANG['empty_message'] = $composer;
15
- $PHPMAILER_LANG['execute'] = exec('some harmful command');
16
- $PHPMAILER_LANG['signing'] = "Double quoted but not interpolated $composer";
@@ -1,16 +0,0 @@
1
- <?php // lint < 8.5.
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test that arbitrary code in translation files is disregarded.
7
- *
8
- * Note: this test fixture uses a syntax (backticks) which has been deprecated in PHP 8.5 and
9
- * is slated for removal in PHP 9.0.
10
- * For that reason, the file is excluded from the linting check on PHP 8.5 and above.
11
- *
12
- * @phpcs:disable PHPCompatibility.LanguageConstructs.RemovedLanguageConstructs.t_backtickDeprecated
13
- */
14
-
15
- $PHPMAILER_LANG['extension_missing'] = 'Confirming that test fixture was loaded correctly (yz).';
16
- $PHPMAILER_LANG['encoding'] = `ls -l`;
@@ -1,20 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Test fixture.
5
- *
6
- * Used in the `PHPMailer\LocalizationTest` to test that language strings not
7
- * set via a fixed, known group of array index keys are disregarded.
8
- */
9
-
10
- $PHPMAILER_LANG['extension_missing'] = 'Confirming that test fixture was loaded correctly (zz).';
11
-
12
- // Keys not in the original array.
13
- $PHPMAILER_LANG['unknown'] = 'Unknown text.';
14
- $PHPMAILER_LANG['invalid'] = 'Invalid text.';
15
-
16
- // Keys which exist in the original array, but use the wrong letter case or space instead of underscore.
17
- $PHPMAILER_LANG['Authenticate'] = 'Overruled text, index not same case';
18
- $PHPMAILER_LANG['CONNECT_HOST'] = 'Overruled text, index not same case';
19
- $PHPMAILER_LANG['Data_Not_Accepted'] = 'Overruled text, index not same case';
20
- $PHPMAILER_LANG['empty message'] = 'Overruled text, index not same case';
@@ -1,97 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * PHPMailer - language file tests.
5
- *
6
- * PHP version 5.5.
7
- *
8
- * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
9
- * @author Andy Prevost
10
- * @copyright 2010 - 2020 Marcus Bointon
11
- * @copyright 2004 - 2009 Andy Prevost
12
- * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License
13
- */
14
-
15
- namespace PHPMailer\Test\Language;
16
-
17
- use PHPMailer\PHPMailer\PHPMailer;
18
- use Yoast\PHPUnitPolyfills\TestCases\TestCase;
19
-
20
- /**
21
- * Check language files for missing or excess translations.
22
- *
23
- * @group languages
24
- *
25
- * @coversNothing
26
- */
27
- final class TranslationCompletenessTest extends TestCase
28
- {
29
- /**
30
- * Holds a PHPMailer instance.
31
- *
32
- * @var PHPMailer
33
- */
34
- private $Mail;
35
-
36
- /**
37
- * Run before each test is started.
38
- */
39
- protected function set_up()
40
- {
41
- $this->Mail = new PHPMailer();
42
- }
43
-
44
- /**
45
- * Test language files for missing and excess translations.
46
- * All languages are compared with English, which is built-in.
47
- */
48
- public function testTranslations()
49
- {
50
- $this->Mail->setLanguage('en');
51
- $definedStrings = $this->Mail->getTranslations();
52
- $err = '';
53
- foreach (new \DirectoryIterator(__DIR__ . '/../../language') as $fileInfo) {
54
- if ($fileInfo->isDot()) {
55
- continue;
56
- }
57
-
58
- $matches = [];
59
- // Only look at language files, ignore anything else in there.
60
- if (preg_match('/^phpmailer\.lang-([a-z_]{2,})\.php$/', $fileInfo->getFilename(), $matches)) {
61
- $lang = $matches[1]; // Extract language code.
62
- $PHPMAILER_LANG = []; // Language strings get put in here.
63
- $lines = file($fileInfo->getPathname());
64
- foreach ($lines as $line) {
65
- // Translation file lines look like this:
66
- // `$PHPMAILER_LANG['authenticate'] = 'SMTP-Fehler: Authentifizierung fehlgeschlagen.';`
67
- // These files are parsed as text and not PHP so as to avoid the possibility of code injection.
68
- $matches = [];
69
- if (
70
- preg_match(
71
- '/^\$PHPMAILER_LANG\[\'([a-z\d_]+)\'\]\s*=\s*(["\'])(.+)*?\2;/',
72
- $line,
73
- $matches
74
- )
75
- ) {
76
- // Overwrite language-specific strings so we'll never have missing translation keys.
77
- $PHPMAILER_LANG[$matches[1]] = (string)$matches[3];
78
- }
79
- }
80
- }
81
-
82
- include $fileInfo->getPathname(); // Get language strings.
83
-
84
- $missing = array_diff(array_keys($definedStrings), array_keys($PHPMAILER_LANG));
85
- $extra = array_diff(array_keys($PHPMAILER_LANG), array_keys($definedStrings));
86
- if (!empty($missing)) {
87
- $err .= "\nMissing translations in $lang: " . implode(', ', $missing);
88
- }
89
- if (!empty($extra)) {
90
- $err .= "\nExtra translations in $lang: " . implode(', ', $extra);
91
- }
92
- }
93
-
94
- // If we have no extra and no missing translations, $err will be empty.
95
- self::assertEmpty($err, $err);
96
- }
97
- }
@@ -1,76 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * PHPMailer - PHP email transport unit tests.
5
- * PHP version 5.5.
6
- *
7
- * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
8
- * @author Andy Prevost
9
- * @copyright 2012 - 2020 Marcus Bointon
10
- * @copyright 2004 - 2009 Andy Prevost
11
- * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License
12
- */
13
-
14
- namespace PHPMailer\Test\OAuth;
15
-
16
- use PHPMailer\PHPMailer\OAuth;
17
- use PHPMailer\PHPMailer\OAuthTokenProvider;
18
- use PHPMailer\PHPMailer\PHPMailer;
19
- use Yoast\PHPUnitPolyfills\TestCases\TestCase;
20
-
21
- /**
22
- * Test OAuth functionality.
23
- */
24
- final class OAuthTest extends TestCase
25
- {
26
- /**
27
- * Test OAuth class.
28
- *
29
- * @covers PHPMailer\PHPMailer\PHPMailer::getOAuth
30
- * @covers PHPMailer\PHPMailer\PHPMailer::setOAuth
31
- * @covers PHPMailer\PHPMailer\OAuth::__construct
32
- * @covers PHPMailer\PHPMailer\OAuthTokenProvider
33
- */
34
- public function testOAuth()
35
- {
36
- $PHPMailer = new PHPMailer(true);
37
- $reflection = new \ReflectionClass($PHPMailer);
38
- $property = $reflection->getProperty('oauth');
39
- (\PHP_VERSION_ID < 80100) && $property->setAccessible(true);
40
- $property->setValue($PHPMailer, true);
41
- self::assertTrue($PHPMailer->getOAuth(), 'Initial value of oauth property is not true');
42
-
43
- $options = [
44
- 'provider' => 'dummyprovider',
45
- 'userName' => 'dummyusername',
46
- 'clientSecret' => 'dummyclientsecret',
47
- 'clientId' => 'dummyclientid',
48
- 'refreshToken' => 'dummyrefreshtoken',
49
- ];
50
-
51
- $oauth = new OAuth($options);
52
- self::assertInstanceOf(OAuth::class, $oauth, 'Instantiation of OAuth class failed');
53
- self::assertInstanceOf(OAuthTokenProvider::class, $oauth, 'Instantiation of OAuth class failed');
54
- $subject = $PHPMailer->setOAuth($oauth);
55
- self::assertNull($subject, 'setOAuth() is not a void function');
56
- self::assertInstanceOf(
57
- OAuth::class,
58
- $PHPMailer->getOAuth(),
59
- 'Setting Oauth property to an instance of the OAuth class failed'
60
- );
61
- $PHPMailer->setOAuth(new DummyOAuthProvider());
62
- self::assertInstanceOf(
63
- OAuthTokenProvider::class,
64
- $PHPMailer->getOAuth(),
65
- 'Setting Oauth property to an instance of the OAuth class failed (2)'
66
- );
67
- }
68
- }
69
-
70
- class DummyOauthProvider implements OAuthTokenProvider
71
- {
72
- public function getOauth64()
73
- {
74
- return 'oauth';
75
- }
76
- }