Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lunr-php/lunr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.8.0
Choose a base ref
...
head repository: lunr-php/lunr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 6,503 additions and 5,146 deletions.
  1. +2 −2 .editorconfig
  2. +13 −0 .github/workflows/general.yml
  3. +11 −95 .github/workflows/php-tests.yml
  4. +0 −18 .github/workflows/reuse.yml
  5. +0 −6 .reuse/dep5
  6. +0 −14 .reviewboardrc
  7. +0 −158 Jenkinsfile
  8. +4 −9 README.md
  9. +0 −17 build.xml
  10. +6 −6 composer.json
  11. +21 −8 decomposer.json
  12. +0 −2 index.php.sample
  13. +11 −0 justfile
  14. +1 −1 src/Lunr/Core/Tests/IniGetIntegerForShorthandBytesTest.php
  15. +2 −2 src/Lunr/Core/Tests/IniMainTest.php
  16. +2 −2 src/Lunr/Core/Tests/IniSectionTest.php
  17. +17 −9 src/Lunr/Core/Tests/{IniTest.php → IniTestCase.php}
  18. +10 −11 src/Lunr/Corona/Controller.php
  19. +4 −4 src/Lunr/Corona/Exceptions/BadGatewayException.php
  20. +5 −129 src/Lunr/Corona/Exceptions/BadRequestException.php
  21. +159 −0 src/Lunr/Corona/Exceptions/ClientDataHttpException.php
  22. +4 −4 src/Lunr/Corona/Exceptions/ConflictException.php
  23. +4 −4 src/Lunr/Corona/Exceptions/ExpectationFailedException.php
  24. +4 −4 src/Lunr/Corona/Exceptions/FailedDependencyException.php
  25. +5 −61 src/Lunr/Corona/Exceptions/ForbiddenException.php
  26. +5 −5 src/Lunr/Corona/Exceptions/HttpException.php
  27. +4 −4 src/Lunr/Corona/Exceptions/InternalServerErrorException.php
  28. +4 −4 src/Lunr/Corona/Exceptions/MethodNotAllowedException.php
  29. +4 −4 src/Lunr/Corona/Exceptions/NotFoundException.php
  30. +5 −5 src/Lunr/Corona/Exceptions/NotImplementedException.php
  31. +4 −4 src/Lunr/Corona/Exceptions/PreconditionFailedException.php
  32. +4 −4 src/Lunr/Corona/Exceptions/RequestedRangeNotSatisfiableException.php
  33. +34 −0 src/Lunr/Corona/Exceptions/TemporarilyDisabledException.php
  34. +2 −4 src/Lunr/Corona/Exceptions/Tests/BadGatewayExceptionBaseTest.php
  35. +79 −0 src/Lunr/Corona/Exceptions/Tests/BadGatewayExceptionTestCase.php
  36. +2 −12 src/Lunr/Corona/Exceptions/Tests/BadRequestExceptionBaseTest.php
  37. +6 −8 src/Lunr/Corona/Exceptions/Tests/BadRequestExceptionInputDataTest.php
  38. +79 −0 src/Lunr/Corona/Exceptions/Tests/BadRequestExceptionTestCase.php
  39. +58 −0 src/Lunr/Corona/Exceptions/Tests/ClientDataHttpExceptionBaseTest.php
  40. +168 −0 src/Lunr/Corona/Exceptions/Tests/ClientDataHttpExceptionInputDataTest.php
  41. +89 −0 src/Lunr/Corona/Exceptions/Tests/ClientDataHttpExceptionTestCase.php
  42. +2 −4 src/Lunr/Corona/Exceptions/Tests/ConflictExceptionBaseTest.php
  43. +79 −0 src/Lunr/Corona/Exceptions/Tests/ConflictExceptionTestCase.php
  44. +2 −4 src/Lunr/Corona/Exceptions/Tests/FailedDependencyExceptionBaseTest.php
  45. +79 −0 src/Lunr/Corona/Exceptions/Tests/FailedDependencyExceptionTestCase.php
  46. +2 −12 src/Lunr/Corona/Exceptions/Tests/ForbiddenExceptionBaseTest.php
  47. +98 −6 src/Lunr/Corona/Exceptions/Tests/ForbiddenExceptionInputDataTest.php
  48. +79 −0 src/Lunr/Corona/Exceptions/Tests/ForbiddenExceptionTestCase.php
  49. +0 −73 src/Lunr/Corona/Exceptions/Tests/Helpers/HttpExceptionTest.php
  50. +3 −3 src/Lunr/Corona/Exceptions/Tests/HttpExceptionBaseTest.php
  51. +2 −2 src/Lunr/Corona/Exceptions/Tests/HttpExceptionNoAppCodeTest.php
  52. +27 −19 src/Lunr/Corona/Exceptions/Tests/{HttpExceptionTest.php → HttpExceptionTestCase.php}
  53. +2 −4 src/Lunr/Corona/Exceptions/Tests/InternalServerErrorExceptionBaseTest.php
  54. +79 −0 src/Lunr/Corona/Exceptions/Tests/InternalServerErrorExceptionTestCase.php
  55. +2 −4 src/Lunr/Corona/Exceptions/Tests/MethodNotAllowedExceptionBaseTest.php
  56. +79 −0 src/Lunr/Corona/Exceptions/Tests/MethodNotAllowedExceptionTestCase.php
  57. +2 −4 src/Lunr/Corona/Exceptions/Tests/NotFoundExceptionBaseTest.php
  58. +79 −0 src/Lunr/Corona/Exceptions/Tests/NotFoundExceptionTestCase.php
  59. +2 −4 src/Lunr/Corona/Exceptions/Tests/NotImplementedExceptionBaseTest.php
  60. +79 −0 src/Lunr/Corona/Exceptions/Tests/NotImplementedExceptionTestCase.php
  61. +2 −4 src/Lunr/Corona/Exceptions/Tests/PreconditionFailedExceptionBaseTest.php
  62. +79 −0 src/Lunr/Corona/Exceptions/Tests/PreconditionFailedExceptionTestCase.php
  63. +2 −4 src/Lunr/Corona/Exceptions/Tests/RequestedRangeNotSatisfiableExceptionBaseTest.php
  64. +79 −0 src/Lunr/Corona/Exceptions/Tests/RequestedRangeNotSatisfiableExceptionTestCase.php
  65. +48 −0 src/Lunr/Corona/Exceptions/Tests/TemporarilyDisabledExceptionBaseTest.php
  66. +79 −0 src/Lunr/Corona/Exceptions/Tests/TemporarilyDisabledExceptionTestCase.php
  67. +2 −4 src/Lunr/Corona/Exceptions/Tests/UnauthorizedExceptionBaseTest.php
  68. +79 −0 src/Lunr/Corona/Exceptions/Tests/UnauthorizedExceptionTestCase.php
  69. +2 −4 src/Lunr/Corona/Exceptions/Tests/UnprocessableEntityExceptionBaseTest.php
  70. +79 −0 src/Lunr/Corona/Exceptions/Tests/UnprocessableEntityExceptionTestCase.php
  71. +4 −4 src/Lunr/Corona/Exceptions/UnauthorizedException.php
  72. +3 −4 src/Lunr/Corona/Exceptions/UnprocessableEntityException.php
  73. +21 −16 src/Lunr/Corona/FrontController.php
  74. +10 −10 src/Lunr/Corona/HTMLView.php
  75. +1 −1 src/Lunr/Corona/HttpCode.php
  76. +4 −2 src/Lunr/Corona/JsonView.php
  77. +12 −0 src/Lunr/Corona/Model.php
  78. +6 −4 src/Lunr/Corona/MsgpackView.php
  79. +102 −0 src/Lunr/Corona/Parsers/BearerToken/BearerTokenCliParser.php
  80. +95 −0 src/Lunr/Corona/Parsers/BearerToken/BearerTokenParser.php
  81. +27 −0 src/Lunr/Corona/Parsers/BearerToken/BearerTokenValue.php
  82. +99 −0 src/Lunr/Corona/Parsers/BearerToken/Tests/BearerTokenCliParserGetTest.php
  83. +59 −0 src/Lunr/Corona/Parsers/BearerToken/Tests/BearerTokenCliParserTestCase.php
  84. +113 −0 src/Lunr/Corona/Parsers/BearerToken/Tests/BearerTokenParserGetTest.php
  85. +51 −0 src/Lunr/Corona/Parsers/BearerToken/Tests/BearerTokenParserTestCase.php
  86. +271 −0 src/Lunr/Corona/Parsers/TracingInfo/Tests/TracingInfoParserGetTest.php
  87. +51 −0 src/Lunr/Corona/Parsers/TracingInfo/Tests/TracingInfoParserTestCase.php
  88. +135 −0 src/Lunr/Corona/Parsers/TracingInfo/TracingInfoParser.php
  89. +42 −0 src/Lunr/Corona/Parsers/TracingInfo/TracingInfoValue.php
  90. +392 −83 src/Lunr/Corona/Request.php
  91. +30 −0 src/Lunr/Corona/RequestData.php
  92. +8 −10 src/Lunr/Corona/RequestParser.php
  93. +7 −7 src/Lunr/Corona/RequestParserInterface.php
  94. +1 −1 src/Lunr/Corona/RequestResultHandler.php
  95. +20 −0 src/Lunr/Corona/RequestValueInterface.php
  96. +38 −0 src/Lunr/Corona/RequestValueParserInterface.php
  97. +15 −15 src/Lunr/Corona/Response.php
  98. +2 −2 src/Lunr/Corona/Tests/CompactJsonViewBaseTest.php
  99. +20 −10 src/Lunr/Corona/Tests/{CompactJsonViewTest.php → CompactJsonViewTestCase.php}
  100. +3 −3 src/Lunr/Corona/Tests/ControllerBaseTest.php
  101. +6 −6 src/Lunr/Corona/Tests/ControllerResultTest.php
  102. +19 −8 src/Lunr/Corona/Tests/{ControllerTest.php → ControllerTestCase.php}
  103. +4 −12 src/Lunr/Corona/Tests/FrontControllerBaseTest.php
  104. +6 −4 src/Lunr/Corona/Tests/FrontControllerDispatchTest.php
  105. +24 −87 src/Lunr/Corona/Tests/FrontControllerGetTest.php
  106. +31 −54 src/Lunr/Corona/Tests/FrontControllerLookupTest.php
  107. +44 −54 src/Lunr/Corona/Tests/FrontControllerRouteTest.php
  108. +19 −22 src/Lunr/Corona/Tests/{FrontControllerTest.php → FrontControllerTestCase.php}
  109. +3 −3 src/Lunr/Corona/Tests/HTMLViewBaseTest.php
  110. +40 −40 src/Lunr/Corona/Tests/HTMLViewHelpersTest.php
  111. +20 −9 src/Lunr/Corona/Tests/{HTMLViewTest.php → HTMLViewTestCase.php}
  112. +27 −0 src/Lunr/Corona/Tests/Helpers/MockRequestValue.php
  113. +1 −1 src/Lunr/Corona/Tests/Helpers/MockUncaughtException.php
  114. +14 −35 src/Lunr/Corona/Tests/Helpers/RequestParserStaticRequestTestTrait.php
  115. +2 −2 src/Lunr/Corona/Tests/JsonViewBaseTest.php
  116. +10 −6 src/Lunr/Corona/Tests/JsonViewPrintExceptionTest.php
  117. +21 −17 src/Lunr/Corona/Tests/JsonViewPrintFatalErrorTest.php
  118. +27 −15 src/Lunr/Corona/Tests/JsonViewPrintTest.php
  119. +20 −10 src/Lunr/Corona/Tests/{JsonViewTest.php → JsonViewTestCase.php}
  120. +5 −2 src/Lunr/Corona/Tests/MockController.php
  121. +1 −1 src/Lunr/Corona/Tests/ModelBaseTest.php
  122. +27 −10 src/Lunr/Corona/Tests/ModelCacheTest.php
  123. +16 −8 src/Lunr/Corona/Tests/{ModelTest.php → ModelTestCase.php}
  124. +2 −2 src/Lunr/Corona/Tests/MsgpackViewBaseTest.php
  125. +5 −3 src/Lunr/Corona/Tests/MsgpackViewPrintExceptionTest.php
  126. +11 −9 src/Lunr/Corona/Tests/MsgpackViewPrintFatalErrorTest.php
  127. +22 −12 src/Lunr/Corona/Tests/MsgpackViewPrintTest.php
  128. +20 −10 src/Lunr/Corona/Tests/{MsgpackViewTest.php → MsgpackViewTestCase.php}
  129. +16 −16 src/Lunr/Corona/Tests/RequestAddMockValuesTest.php
  130. +34 −9 src/Lunr/Corona/Tests/RequestBaseTest.php
  131. +69 −0 src/Lunr/Corona/Tests/RequestDeprecatedAddMockValuesTest.php
  132. +291 −0 src/Lunr/Corona/Tests/RequestDeprecatedGetDataFromWrappersTest.php
  133. +377 −0 src/Lunr/Corona/Tests/RequestDeprecatedGetDataTest.php
  134. +37 −0 src/Lunr/Corona/Tests/RequestDeprecatedSetMockValuesTest.php
  135. +291 −0 src/Lunr/Corona/Tests/RequestGetDataFromWrappersTest.php
  136. +88 −80 src/Lunr/Corona/Tests/RequestGetDataTest.php
  137. +326 −0 src/Lunr/Corona/Tests/RequestGetValueTest.php
  138. +3 −3 src/Lunr/Corona/Tests/RequestMagicGetTest.php
  139. +3 −3 src/Lunr/Corona/Tests/RequestParserBaseTest.php
  140. +7 −7 src/Lunr/Corona/Tests/RequestParserParseRequestTest.php
  141. +14 −7 src/Lunr/Corona/Tests/{RequestParserTest.php → RequestParserTestCase.php}
  142. +1 −1 src/Lunr/Corona/Tests/RequestResultHandlerBaseTest.php
  143. +12 −7 src/Lunr/Corona/Tests/RequestResultHandlerHandleRequestTest.php
  144. +6 −6 src/Lunr/Corona/Tests/RequestResultHandlerSetResultTest.php
  145. +18 −9 src/Lunr/Corona/Tests/{RequestResultHandlerTest.php → RequestResultHandlerTestCase.php}
  146. +6 −6 src/Lunr/Corona/Tests/RequestSetMockValuesTest.php
  147. +22 −15 src/Lunr/Corona/Tests/{RequestTest.php → RequestTestCase.php}
  148. +5 −5 src/Lunr/Corona/Tests/ResponseBaseTest.php
  149. +16 −16 src/Lunr/Corona/Tests/ResponseGetTest.php
  150. +8 −8 src/Lunr/Corona/Tests/ResponseSetTest.php
  151. +15 −8 src/Lunr/Corona/Tests/{ResponseTest.php → ResponseTestCase.php}
  152. +1 −1 src/Lunr/Corona/Tests/ViewBaseTest.php
  153. +9 −8 src/Lunr/Corona/Tests/ViewHelpersTest.php
  154. +28 −16 src/Lunr/Corona/Tests/{ViewTest.php → ViewTestCase.php}
  155. +1 −1 src/Lunr/Corona/Tests/WebRequestParserAcceptTest.php
  156. +2 −2 src/Lunr/Corona/Tests/WebRequestParserBaseTest.php
  157. +1 −1 src/Lunr/Corona/Tests/WebRequestParserParseCommandLineArgumentsTest.php
  158. +1 −1 src/Lunr/Corona/Tests/WebRequestParserParseCookieTest.php
  159. +1 −1 src/Lunr/Corona/Tests/WebRequestParserParseFilesTest.php
  160. +1 −1 src/Lunr/Corona/Tests/WebRequestParserParseGetTest.php
  161. +1 −1 src/Lunr/Corona/Tests/WebRequestParserParsePostTest.php
  162. +3 −3 src/Lunr/Corona/Tests/WebRequestParserParseRawDataTest.php
  163. +9 −90 src/Lunr/Corona/Tests/WebRequestParserParseRequestTest.php
  164. +1 −1 src/Lunr/Corona/Tests/WebRequestParserParseServerTest.php
  165. +8 −8 src/Lunr/Corona/Tests/WebRequestParserParseSuperGlobalTest.php
  166. +18 −9 src/Lunr/Corona/Tests/{WebRequestParserTest.php → WebRequestParserTestCase.php}
  167. +4 −2 src/Lunr/Corona/View.php
  168. +20 −40 src/Lunr/Corona/WebRequestParser.php
  169. +0 −148 src/Lunr/L10n/GettextL10nProvider.php
  170. +0 −109 src/Lunr/L10n/L10n.php
  171. +0 −57 src/Lunr/L10n/L10nHTMLView.php
  172. +0 −111 src/Lunr/L10n/L10nProvider.php
  173. +0 −85 src/Lunr/L10n/L10nTrait.php
  174. +0 −229 src/Lunr/L10n/PHPL10nProvider.php
  175. +0 −41 src/Lunr/L10n/Tests/GettextL10nProviderBaseTest.php
  176. +0 −187 src/Lunr/L10n/Tests/GettextL10nProviderLangTest.php
  177. +0 −275 src/Lunr/L10n/Tests/GettextL10nProviderNlangTest.php
  178. +0 −91 src/Lunr/L10n/Tests/GettextL10nProviderTest.php
  179. +0 −143 src/Lunr/L10n/Tests/L10nBaseTest.php
  180. +0 −57 src/Lunr/L10n/Tests/L10nHTMLViewBaseTest.php
  181. +0 −90 src/Lunr/L10n/Tests/L10nHTMLViewTest.php
  182. +0 −72 src/Lunr/L10n/Tests/L10nProviderBaseTest.php
  183. +0 −70 src/Lunr/L10n/Tests/L10nProviderTest.php
  184. +0 −99 src/Lunr/L10n/Tests/L10nTest.php
  185. +0 −115 src/Lunr/L10n/Tests/L10nTraitBaseTest.php
  186. +0 −62 src/Lunr/L10n/Tests/L10nTraitTest.php
  187. +0 −187 src/Lunr/L10n/Tests/PHPL10nProviderBaseTest.php
  188. +0 −133 src/Lunr/L10n/Tests/PHPL10nProviderLangTest.php
  189. +0 −208 src/Lunr/L10n/Tests/PHPL10nProviderNlangTest.php
  190. +0 −74 src/Lunr/L10n/Tests/PHPL10nProviderTest.php
  191. +5 −5 src/Lunr/Ray/PhysicalFilesystemAccessObject.php
  192. +1 −1 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectBaseTest.php
  193. +5 −8 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectCSVTest.php
  194. +4 −5 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectDirectoryTest.php
  195. +7 −11 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectFileTest.php
  196. +3 −5 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectFindTest.php
  197. +3 −5 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectListDirectoriesTest.php
  198. +3 −5 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectListFilesTest.php
  199. +3 −5 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectMkdirTest.php
  200. +4 −2 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectRmTest.php
  201. +13 −7 ...r/Ray/Tests/{PhysicalFilesystemAccessObjectTest.php → PhysicalFilesystemAccessObjectTestCase.php}
  202. +1 −1 src/Lunr/Ray/Tests/PhysicalFilesystemAccessObjectTmpTest.php
  203. +2 −4 src/Lunr/Ray/Tests/PhysicalFilesystemRemoveDirectoryTest.php
  204. +14 −20 src/Lunr/Shadow/CliRequestParser.php
  205. +10 −10 src/Lunr/Shadow/Tests/CliRequestParserAcceptTest.php
  206. +2 −2 src/Lunr/Shadow/Tests/CliRequestParserBaseTest.php
  207. +4 −4 src/Lunr/Shadow/Tests/CliRequestParserParseCommandLineArgumentsTest.php
  208. +5 −5 src/Lunr/Shadow/Tests/CliRequestParserParseCookieTest.php
  209. +1 −1 src/Lunr/Shadow/Tests/CliRequestParserParseFilesTest.php
  210. +4 −4 src/Lunr/Shadow/Tests/CliRequestParserParseGetTest.php
  211. +4 −4 src/Lunr/Shadow/Tests/CliRequestParserParsePostTest.php
  212. +3 −3 src/Lunr/Shadow/Tests/CliRequestParserParseRawDataTest.php
  213. +16 −38 src/Lunr/Shadow/Tests/CliRequestParserParseRequestTest.php
  214. +1 −1 src/Lunr/Shadow/Tests/CliRequestParserParseServerTest.php
  215. +6 −6 src/Lunr/Shadow/Tests/CliRequestParserParseSuperGlobalTest.php
  216. +16 −8 src/Lunr/Shadow/Tests/{CliRequestParserTest.php → CliRequestParserTestCase.php}
  217. +2 −0 src/Lunr/Spark/CentralAuthenticationStore.php
  218. +28 −26 src/Lunr/Spark/Contentful/Api.php
  219. +11 −16 src/Lunr/Spark/Contentful/DeliveryApi.php
  220. +16 −17 src/Lunr/Spark/Contentful/ManagementApi.php
  221. +6 −6 src/Lunr/Spark/Contentful/PreviewApi.php
  222. +39 −19 src/Lunr/Spark/Contentful/Tests/ApiBaseTest.php
  223. +10 −14 src/Lunr/Spark/Contentful/Tests/ApiGetBaseUrlTest.php
  224. +1 −5 src/Lunr/Spark/Contentful/Tests/ApiSetTest.php
  225. +28 −13 src/Lunr/Spark/Contentful/Tests/{ApiTest.php → ApiTestCase.php}
  226. +4 −4 src/Lunr/Spark/Contentful/Tests/DeliveryApiBaseTest.php
  227. +56 −32 src/Lunr/Spark/Contentful/Tests/DeliveryApiGetAssetsTest.php
  228. +50 −26 src/Lunr/Spark/Contentful/Tests/DeliveryApiGetEntriesTest.php
  229. +10 −10 src/Lunr/Spark/Contentful/Tests/DeliveryApiGetJsonResultsTest.php
  230. +28 −13 src/Lunr/Spark/Contentful/Tests/{DeliveryApiTest.php → DeliveryApiTestCase.php}
  231. +4 −4 src/Lunr/Spark/Contentful/Tests/ManagementApiBaseTest.php
  232. +17 −9 src/Lunr/Spark/Contentful/Tests/ManagementApiCreateEntryTest.php
  233. +17 −9 src/Lunr/Spark/Contentful/Tests/ManagementApiGetEntryTest.php
  234. +17 −9 src/Lunr/Spark/Contentful/Tests/ManagementApiPublishEntryTest.php
  235. +28 −13 src/Lunr/Spark/Contentful/Tests/{ManagementApiTest.php → ManagementApiTestCase.php}
  236. +17 −9 src/Lunr/Spark/Contentful/Tests/ManagementApiUnpublishEntryTest.php
  237. +18 −10 .../Spark/Contentful/Tests/{ManagementApiUpdateEntryTest.php → ManagementApiUpdateEntryTestCase.php}
  238. +4 −4 src/Lunr/Spark/Contentful/Tests/PreviewApiBaseTest.php
  239. +28 −13 src/Lunr/Spark/Contentful/Tests/{PreviewApiTest.php → PreviewApiTestCase.php}
  240. +13 −17 src/Lunr/Spark/Tests/CentralAuthenticationStoreBaseTest.php
  241. +14 −7 src/Lunr/Spark/Tests/{CentralAuthenticationStoreTest.php → CentralAuthenticationStoreTestCase.php}
  242. +1 −2 src/Lunr/Spark/Tests/LunrSoapClientHeaderTest.php
  243. +1 −1 src/Lunr/Spark/Tests/LunrSoapClientInitTest.php
  244. +12 −6 src/Lunr/Spark/Tests/{LunrSoapClientTest.php → LunrSoapClientTestCase.php}
  245. +0 −16 support/gen_l10n.sh
  246. +2 −0 tests/phan.config.php
  247. +4 −10 tests/phpstan.autoload.inc.php
  248. +7 −0 tests/phpstan.neon.dist
  249. +11 −119 tests/phpunit.xml
  250. +1 −0 tests/statics/Corona/Project/Package1/AnonymousTapsController.php
  251. +1 −0 tests/statics/Corona/Project/Package1/FooController.php
  252. +1 −0 tests/statics/Corona/Project/Package1/FrontController.php
  253. +1 −0 tests/statics/Corona/Project/Package1/FunctionController.php
  254. +1 −0 tests/statics/Corona/Project/Package2/FooController.php
  255. +0 −24 tests/statics/l10n/de_DE/LC_MESSAGES/Lunr.po
  256. +0 −20 tests/statics/l10n/de_DE/Lunr.php
  257. +0 −41 tests/system/EnvironmentTest.php
  258. +11 −8 tests/test.bootstrap.inc.php
  259. 0 tests/{statics/l10n/nl_NL/.gitignore → typos.toml}
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -16,13 +16,13 @@ charset = utf-8
indent_style = space
indent_size = 4

[{*.sh,*.bash}]
[{*.sh,*.bash,justfile}]
indent_style = space
indent_size = 2

[{*.md,*.txt}]
indent_style = space

[{Jenkinsfile,*.xml,*.json,*.neon.dist,*.jq,*.yml}]
[{*.xml,*.json,*.neon.dist,*.jq,*.yml}]
indent_style = space
indent_size = 4
13 changes: 13 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: Copyright 2023 Move Agency Group B.V., Zwolle, The Netherlands
# SPDX-License-Identifier: CC0-1.0

name: General Tests
on: [push, pull_request, workflow_dispatch]

jobs:
reuse:
uses: lunr-php/actions-templates/.github/workflows/reuse.yml@master
typos:
uses: lunr-php/actions-templates/.github/workflows/typos.yml@master
with:
config: tests/typos.toml
106 changes: 11 additions & 95 deletions .github/workflows/php-tests.yml
Original file line number Diff line number Diff line change
@@ -6,98 +6,14 @@ name: PHP Tests
on: [push, pull_request]

jobs:
phpunit:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
name: "PHP-${{ matrix.php-versions }}: PHPUnit"
strategy:
matrix:
php-versions: ['8.1']
experimental: [false]
include:
- php-versions: 8.2
experimental: true
- php-versions: 8.3
experimental: true
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit:9.5.x
extensions: http, msgpack, gettext, mysqli, uopz, xdebug, uuid

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

- name: Install dependencies
run: composer update

- name: Install GNU gettext
run: sudo apt install gettext language-pack-de language-pack-nl

- name: Generate German locale
run: sudo locale-gen de_DE

- name: Generate Dutch locale
run: sudo locale-gen nl_NL

- name: Generate localization files
run: support/gen_l10n.sh

- name: Run PHPunit
run: phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml

- name: Collect code coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml

phpcs:
runs-on: ubuntu-latest
continue-on-error: false
name: "PHPCS"
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Codestyle checkout
uses: actions/checkout@v3
with:
repository: 'lunr-php/lunr-coding-standard'

# Relative path under $GITHUB_WORKSPACE to place the repository
path: 'codestyle'

- name: Setup PHPCS
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: cs2pr, phpcs

- name: Run PHPCS
run: phpcs -q --report=checkstyle src --standard=$GITHUB_WORKSPACE/codestyle/Lunr | cs2pr

phpstan:
runs-on: ubuntu-latest
continue-on-error: false
name: "PHPStan"
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHPStan
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: phpstan
extensions: uopz

- name: Install dependencies
run: composer update

- name: Run PHPStan
run: phpstan analyze src -l4 --configuration tests/phpstan.neon.dist
php-tests:
uses: lunr-php/actions-templates/.github/workflows/php-composer.yml@master
with:
phpstan-level: 5
allow-style-failures: false
allow-phpstan-failures: false
codestyle-branch: '0.10.2'
phpcs-whitelist: index.php.sample tests/phan.config.php tests/phpstan.autoload.inc.php tests/test.bootstrap.inc.php
php-extensions: http, msgpack, uopz, xdebug, uuid
stable-php-versions: '["8.1"]'
experimental-php-versions: '["8.2","8.3"]'
18 changes: 0 additions & 18 deletions .github/workflows/reuse.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -37,9 +37,3 @@ Files: tests/statics/Spark/*
Copyright: 2015 M2mobi B.V., Amsterdam, The Netherlands
2022 Move Agency Group B.V., Zwolle, The Netherlands
License: MIT

Files: tests/statics/l10n/*
Copyright: 2012 M2mobi B.V., Amsterdam, The Netherlands
2022 Move Agency Group B.V., Zwolle, The Netherlands
License: CC0-1.0

14 changes: 0 additions & 14 deletions .reviewboardrc

This file was deleted.

158 changes: 0 additions & 158 deletions Jenkinsfile

This file was deleted.

13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -12,16 +12,14 @@ Installation
Community
---------

* [Join the Lunr usergroup][3] or dive right into development with the [developer group][4].
* Follow us on [GitHub][5].
* Follow us on [GitHub][3].

Contributing
------------

Lunr is an Open Source, community-driven project. Join by contributing code or documentation.
To do that, make your changes and upload them to our reviewboard at [reviews.lunr.nl][6]

If you encounter any issues when using Lunr you can report them [on github][7]
If you encounter any issues when using Lunr you can report them [on github][4]

About Us
--------
@@ -30,8 +28,5 @@ Lunr development is spearheaded by [Move][1].

[1]: https://moveagency.com
[2]: https://semver.org
[3]: https://groups.google.com/forum/#!forum/lunr-users
[4]: https://groups.google.com/forum/#!forum/lunr-developers
[5]: https://github.com/lunr-php/lunr
[6]: https://reviews.lunr.nl
[7]: https://github.com/lunr-php/lunr/issues
[3]: https://github.com/lunr-php/lunr
[4]: https://github.com/lunr-php/lunr/issues
Loading