Andrew Nicols
c370c0cc5e
MDL-81521 core: Update all possibly data providers to be static
...
Note: Some data providers could not be automatically be converted to
being static. These will be handled in a separate issue.
2024-11-15 12:50:44 +08:00
Eloy Lafuente (stronk7)
ad5fe71868
MDL-82207 phpunit: fix various @covers annotations (take#1)
...
This fixes various (not all) wrong @covers annotations that
are reported as warnings by PHPUnit when it's run with
code-coverage enabled.
When possible, the preferred solution is to change to
@covers at class level, that is the recommended way.
If multiple classes are involved, then a mix of @coversDefaultClass
and @covers at method level are used (always trying to use the
minimum needed patch).
This is the first of a series of issues created as sub-tasks
of MDL-82142.
2024-06-24 12:07:39 +02:00
Eloy Lafuente (stronk7)
361dfe8145
MDL-75952 general: Since php81, refection->setAccessible() is no-op
...
Refereces:
- https://wiki.php.net/rfc/make-reflection-setaccessible-no-op
- https://www.php.net/manual/en/reflectionproperty.setaccessible.php
- https://www.php.net/manual/en/reflectionmethod.setaccessible.php
As of PHP 8.1.0, calling this method has no effect; all methods are
invokable by default. So, let's remove all uses from core, they are
no-op.
2024-03-10 21:15:00 +01:00
Petr Skoda
16729b7f02
MDL-78192 external: allow nullable non-scalar params and results
2023-06-23 11:12:08 +02:00
Philipp Memmel
31bad4ffcd
MDL-78049 core_external: Run test_all_external_info in separate process
2023-04-27 08:27:07 +02:00
Petr Skoda
176191dab5
MDL-74936 core: tidy up context API
2023-03-31 23:09:39 +02:00
Jun Pataleta
7a85d041d7
MDL-75085 core_external: Pass proper $required param value in tests
2023-02-02 09:08:29 +08:00
Andrew Nicols
a3cc26f8bb
MDL-76583 core: Update uses of external_* classes
2023-01-19 07:34:09 +08:00
Andrew Nicols
188dfcbf8c
MDL-76583 core_external: External API Test coding style fixes
2023-01-19 07:33:47 +08:00
Andrew Nicols
cdd51a663b
MDL-76583 core_external: Move external_api unit tests
2023-01-19 07:33:34 +08:00