stronk7

Untitled

Nov 16th, 2021 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.46 KB | None | 0 0
  1. $ local/codechecker/phpcs/bin/phpcs --standard=moodle --sniffs=moodle.PHPUnit.TestCaseNames course && echo "yay"
  2.  
  3. FILE: /Users/stronk7/git_moodle/moodle/course/tests/indicators_test.php
  4. ------------------------------------------------------------------------------------------------------------------------------------
  5. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  6. ------------------------------------------------------------------------------------------------------------------------------------
  7. 41 | WARNING | PHPUnit testcase name "core_course_indicators_testcase" does not match file name "indicators_test"
  8. 41 | WARNING | PHUnit class "core_course_indicators_testcase" does not have any namespace. It is recommended to add it to the
  9. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  10. ------------------------------------------------------------------------------------------------------------------------------------
  11.  
  12.  
  13. FILE: /Users/stronk7/git_moodle/moodle/course/tests/services_content_item_service_test.php
  14. ------------------------------------------------------------------------------------------------------------------------------------
  15. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  16. ------------------------------------------------------------------------------------------------------------------------------------
  17. 25 | ERROR | PHPUnit class namespace "tests\course" does not match expected file namespace "core_course"
  18. 38 | WARNING | PHPUnit testcase name "services_content_item_service_testcase" does not match file name
  19. | | "services_content_item_service_test"
  20. ------------------------------------------------------------------------------------------------------------------------------------
  21.  
  22.  
  23. FILE: /Users/stronk7/git_moodle/moodle/course/tests/events_test.php
  24. ------------------------------------------------------------------------------------------------------------------------------------
  25. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  26. ------------------------------------------------------------------------------------------------------------------------------------
  27. 34 | WARNING | PHPUnit testcase name "core_course_events_testcase" does not match file name "events_test"
  28. 34 | WARNING | PHUnit class "core_course_events_testcase" does not have any namespace. It is recommended to add it to the
  29. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  30. ------------------------------------------------------------------------------------------------------------------------------------
  31.  
  32.  
  33. FILE: /Users/stronk7/git_moodle/moodle/course/tests/exporters_content_item_test.php
  34. ------------------------------------------------------------------------------------------------------------------------------------
  35. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  36. ------------------------------------------------------------------------------------------------------------------------------------
  37. 25 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  38. 38 | WARNING | PHPUnit testcase name "exporters_course_content_item_testcase" does not match file name
  39. | | "exporters_content_item_test"
  40. ------------------------------------------------------------------------------------------------------------------------------------
  41.  
  42.  
  43. FILE: /Users/stronk7/git_moodle/moodle/course/tests/targets_test.php
  44. ------------------------------------------------------------------------------------------------------------------------------------
  45. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  46. ------------------------------------------------------------------------------------------------------------------------------------
  47. 42 | WARNING | PHPUnit testcase name "core_analytics_targets_testcase" does not match file name "targets_test"
  48. 42 | WARNING | PHUnit class "core_analytics_targets_testcase" does not have any namespace. It is recommended to add it to the
  49. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  50. ------------------------------------------------------------------------------------------------------------------------------------
  51.  
  52.  
  53. FILE: /Users/stronk7/git_moodle/moodle/course/tests/modlib_test.php
  54. ------------------------------------------------------------------------------------------------------------------------------------
  55. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  56. ------------------------------------------------------------------------------------------------------------------------------------
  57. 32 | WARNING | PHPUnit testcase name "core_course_modlib_testcase" does not match file name "modlib_test"
  58. 32 | WARNING | PHUnit class "core_course_modlib_testcase" does not have any namespace. It is recommended to add it to the
  59. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  60. ------------------------------------------------------------------------------------------------------------------------------------
  61.  
  62.  
  63. FILE: /Users/stronk7/git_moodle/moodle/course/tests/management_helper_test.php
  64. ------------------------------------------------------------------------------------------------------------------------------------
  65. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  66. ------------------------------------------------------------------------------------------------------------------------------------
  67. 36 | WARNING | PHPUnit testcase name "core_course_management_helper_test" does not match file name "management_helper_test"
  68. 36 | WARNING | PHUnit class "core_course_management_helper_test" does not have any namespace. It is recommended to add it to the
  69. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  70. ------------------------------------------------------------------------------------------------------------------------------------
  71.  
  72.  
  73. FILE: /Users/stronk7/git_moodle/moodle/course/tests/content_item_readonly_repository_test.php
  74. ------------------------------------------------------------------------------------------------------------------------------------
  75. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  76. ------------------------------------------------------------------------------------------------------------------------------------
  77. 25 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  78. 38 | WARNING | PHPUnit testcase name "content_item_readonly_repository_testcase" does not match file name
  79. | | "content_item_readonly_repository_test"
  80. ------------------------------------------------------------------------------------------------------------------------------------
  81.  
  82.  
  83. FILE: /Users/stronk7/git_moodle/moodle/course/tests/notifications_test.php
  84. ---------------------------------------------------------------------------------------------------------------
  85. FOUND 1 ERROR AFFECTING 1 LINE
  86. ---------------------------------------------------------------------------------------------------------------
  87. 17 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  88. ---------------------------------------------------------------------------------------------------------------
  89.  
  90.  
  91. FILE: /Users/stronk7/git_moodle/moodle/course/tests/courselib_test.php
  92. ------------------------------------------------------------------------------------------------------------------------------------
  93. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  94. ------------------------------------------------------------------------------------------------------------------------------------
  95. 33 | WARNING | PHPUnit testcase name "core_course_courselib_testcase" does not match file name "courselib_test"
  96. 33 | WARNING | PHUnit class "core_course_courselib_testcase" does not have any namespace. It is recommended to add it to the
  97. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  98. ------------------------------------------------------------------------------------------------------------------------------------
  99.  
  100.  
  101. FILE: /Users/stronk7/git_moodle/moodle/course/tests/category_test.php
  102. ------------------------------------------------------------------------------------------------------------------------------------
  103. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  104. ------------------------------------------------------------------------------------------------------------------------------------
  105. 31 | WARNING | PHPUnit testcase name "core_course_category_testcase" does not match file name "category_test"
  106. 31 | WARNING | PHUnit class "core_course_category_testcase" does not have any namespace. It is recommended to add it to the
  107. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  108. ------------------------------------------------------------------------------------------------------------------------------------
  109.  
  110.  
  111. FILE: /Users/stronk7/git_moodle/moodle/course/tests/caching_content_item_readonly_repository_test.php
  112. ------------------------------------------------------------------------------------------------------------------------------------
  113. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  114. ------------------------------------------------------------------------------------------------------------------------------------
  115. 25 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  116. 38 | WARNING | PHPUnit testcase name "caching_content_item_readonly_repository_testcase" does not match file name
  117. | | "caching_content_item_readonly_repository_test"
  118. ------------------------------------------------------------------------------------------------------------------------------------
  119.  
  120.  
  121. FILE: /Users/stronk7/git_moodle/moodle/course/tests/restore_test.php
  122. ------------------------------------------------------------------------------------------------------------------------------------
  123. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  124. ------------------------------------------------------------------------------------------------------------------------------------
  125. 38 | WARNING | PHPUnit testcase name "core_course_restore_testcase" does not match file name "restore_test"
  126. 38 | WARNING | PHUnit class "core_course_restore_testcase" does not have any namespace. It is recommended to add it to the
  127. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  128. ------------------------------------------------------------------------------------------------------------------------------------
  129.  
  130.  
  131. FILE: /Users/stronk7/git_moodle/moodle/course/tests/course_delete_modules_test.php
  132. ---------------------------------------------------------------------------------------------------------------
  133. FOUND 1 ERROR AFFECTING 1 LINE
  134. ---------------------------------------------------------------------------------------------------------------
  135. 25 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  136. ---------------------------------------------------------------------------------------------------------------
  137.  
  138.  
  139. FILE: /Users/stronk7/git_moodle/moodle/course/tests/course_summary_exporter_test.php
  140. ---------------------------------------------------------------------------------------------------------------------------------
  141. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  142. ---------------------------------------------------------------------------------------------------------------------------------
  143. 17 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  144. 32 | WARNING | PHPUnit testcase name "course_summary_exporter_testcase" does not match file name "course_summary_exporter_test"
  145. ---------------------------------------------------------------------------------------------------------------------------------
  146.  
  147.  
  148. FILE: /Users/stronk7/git_moodle/moodle/course/tests/exporters_content_items_test.php
  149. ------------------------------------------------------------------------------------------------------------------------------------
  150. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  151. ------------------------------------------------------------------------------------------------------------------------------------
  152. 25 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  153. 38 | WARNING | PHPUnit testcase name "exporters_course_content_items_testcase" does not match file name
  154. | | "exporters_content_items_test"
  155. ------------------------------------------------------------------------------------------------------------------------------------
  156.  
  157.  
  158. FILE: /Users/stronk7/git_moodle/moodle/course/tests/content_item_test.php
  159. -----------------------------------------------------------------------------------------------------------------
  160. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  161. -----------------------------------------------------------------------------------------------------------------
  162. 25 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  163. 41 | WARNING | PHPUnit testcase name "content_item_testcase" does not match file name "content_item_test"
  164. -----------------------------------------------------------------------------------------------------------------
  165.  
  166.  
  167. FILE: /Users/stronk7/git_moodle/moodle/course/tests/courserequest_test.php
  168. ------------------------------------------------------------------------------------------------------------------------------------
  169. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  170. ------------------------------------------------------------------------------------------------------------------------------------
  171. 32 | WARNING | PHPUnit testcase name "core_course_courserequest_testcase" does not match file name "courserequest_test"
  172. 32 | WARNING | PHUnit class "core_course_courserequest_testcase" does not have any namespace. It is recommended to add it to the
  173. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  174. ------------------------------------------------------------------------------------------------------------------------------------
  175.  
  176.  
  177. FILE: /Users/stronk7/git_moodle/moodle/course/tests/course_image_cache_test.php
  178. -----------------------------------------------------------------------------------------------------------------------
  179. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  180. -----------------------------------------------------------------------------------------------------------------------
  181. 17 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  182. 34 | WARNING | PHPUnit testcase name "course_image_cache_testcase" does not match file name "course_image_cache_test"
  183. -----------------------------------------------------------------------------------------------------------------------
  184.  
  185.  
  186. FILE: /Users/stronk7/git_moodle/moodle/course/tests/category_hooks_test.php
  187. ---------------------------------------------------------------------------------------------------------------------------
  188. FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
  189. ---------------------------------------------------------------------------------------------------------------------------
  190. 26 | ERROR | PHPUnit class namespace "tests\core_course" does not match expected file namespace "core_course"
  191. 38 | WARNING | PHPUnit testcase name "core_course_category_hooks_testcase" does not match file name "category_hooks_test"
  192. ---------------------------------------------------------------------------------------------------------------------------
  193.  
  194.  
  195. FILE: /Users/stronk7/git_moodle/moodle/course/tests/externallib_test.php
  196. ------------------------------------------------------------------------------------------------------------------------------------
  197. FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
  198. ------------------------------------------------------------------------------------------------------------------------------------
  199. 40 | WARNING | PHUnit class "externallib_test" does not have any namespace. It is recommended to add it to the "core_course"
  200. | | namespace, using more levels if needed, in order to match the code being tested
  201. ------------------------------------------------------------------------------------------------------------------------------------
  202.  
  203.  
  204. FILE: /Users/stronk7/git_moodle/moodle/course/tests/privacy_test.php
  205. ------------------------------------------------------------------------------------------------------------------------------------
  206. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  207. ------------------------------------------------------------------------------------------------------------------------------------
  208. 38 | WARNING | PHPUnit testcase name "core_course_privacy_testcase" does not match file name "privacy_test"
  209. 38 | WARNING | PHUnit class "core_course_privacy_testcase" does not have any namespace. It is recommended to add it to the
  210. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  211. ------------------------------------------------------------------------------------------------------------------------------------
  212.  
  213.  
  214. FILE: /Users/stronk7/git_moodle/moodle/course/tests/customfield_test.php
  215. ------------------------------------------------------------------------------------------------------------------------------------
  216. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  217. ------------------------------------------------------------------------------------------------------------------------------------
  218. 38 | WARNING | PHPUnit testcase name "core_course_customfield_testcase" does not match file name "customfield_test"
  219. 38 | WARNING | PHUnit class "core_course_customfield_testcase" does not have any namespace. It is recommended to add it to the
  220. | | "core_course" namespace, using more levels if needed, in order to match the code being tested
  221. ------------------------------------------------------------------------------------------------------------------------------------
  222.  
  223.  
  224. FILE: /Users/stronk7/git_moodle/moodle/course/tests/search_test.php
  225. ------------------------------------------------------------------------------------------------------------------------------------
  226. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  227. ------------------------------------------------------------------------------------------------------------------------------------
  228. 39 | WARNING | PHPUnit testcase name "course_search_testcase" does not match file name "search_test"
  229. 39 | WARNING | PHUnit class "course_search_testcase" does not have any namespace. It is recommended to add it to the "core_course"
  230. | | namespace, using more levels if needed, in order to match the code being tested
  231. ------------------------------------------------------------------------------------------------------------------------------------
  232.  
  233.  
  234. FILE: /Users/stronk7/git_moodle/moodle/course/format/weeks/tests/format_weeks_test.php
  235. ------------------------------------------------------------------------------------------------------------------------------------
  236. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  237. ------------------------------------------------------------------------------------------------------------------------------------
  238. 37 | WARNING | PHPUnit testcase name "format_weeks_testcase" does not match file name "format_weeks_test"
  239. 37 | WARNING | PHUnit class "format_weeks_testcase" does not have any namespace. It is recommended to add it to the "format_weeks"
  240. | | namespace, using more levels if needed, in order to match the code being tested
  241. ------------------------------------------------------------------------------------------------------------------------------------
  242.  
  243.  
  244. FILE: /Users/stronk7/git_moodle/moodle/course/format/weeks/tests/observer_test.php
  245. ------------------------------------------------------------------------------------------------------------------------------------
  246. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  247. ------------------------------------------------------------------------------------------------------------------------------------
  248. 34 | WARNING | PHPUnit testcase name "format_weeks_observer_testcase" does not match file name "observer_test"
  249. 34 | WARNING | PHUnit class "format_weeks_observer_testcase" does not have any namespace. It is recommended to add it to the
  250. | | "format_weeks" namespace, using more levels if needed, in order to match the code being tested
  251. ------------------------------------------------------------------------------------------------------------------------------------
  252.  
  253.  
  254. FILE: /Users/stronk7/git_moodle/moodle/course/format/tests/base_test.php
  255. ------------------------------------------------------------------------------------------------------------------------------------
  256. FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
  257. ------------------------------------------------------------------------------------------------------------------------------------
  258. 26 | WARNING | PHUnit class "base_test" does not have any namespace. It is recommended to add it to the "core_courseformat"
  259. | | namespace, using more levels if needed, in order to match the code being tested
  260. ------------------------------------------------------------------------------------------------------------------------------------
  261.  
  262.  
  263. FILE: /Users/stronk7/git_moodle/moodle/course/format/topics/tests/format_topics_test.php
  264. ------------------------------------------------------------------------------------------------------------------------------------
  265. FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
  266. ------------------------------------------------------------------------------------------------------------------------------------
  267. 37 | WARNING | PHPUnit testcase name "format_topics_testcase" does not match file name "format_topics_test"
  268. 37 | WARNING | PHUnit class "format_topics_testcase" does not have any namespace. It is recommended to add it to the
  269. | | "format_topics" namespace, using more levels if needed, in order to match the code being tested
  270. ------------------------------------------------------------------------------------------------------------------------------------
  271.  
  272. Time: 8.42 secs; Memory: 64.01MB
Add Comment
Please, Sign In to add comment