MDL-75880 phpunit: fix all @coversDefaultClass missing @covers

Because @coversDefaultClass doesn't indicate any coverage (it's
just an alias to avoid having to write the class name in @covers),
this commit fixes all the files that were using that annotation
and missing any @covers.

Basically, replacing one by the other and done.
This commit is contained in:
Eloy Lafuente (stronk7) 2022-10-30 00:23:05 +02:00
parent fee1b8ce5f
commit d590b08dfa
17 changed files with 45 additions and 89 deletions

View file

@ -14,15 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Unit tests for core_files\local\archive_writer/zip_archive.
*
* @package core_files
* @category test
* @copyright 2020 Mark Nelson <mdjnelson@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
*/
namespace core_files;
use advanced_testcase;
@ -31,7 +22,11 @@ use core_files\local\archive_writer\zip_writer;
/**
* Unit tests for \core_files\archive_writer.
*
* @coversDefaultClass \core_files\archive_writer
* @package core_files
* @category test
* @copyright 2020 Mark Nelson <mdjnelson@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @covers \core_files\archive_writer
*/
class archive_writer_test extends advanced_testcase {

View file

@ -14,15 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Unit tests for \core_files\local\archive_writer\zip_writer.
*
* @package core_files
* @category test
* @copyright 2020 Mark Nelson <mdjnelson@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
*/
namespace core_files\local\archive_writer;
use advanced_testcase;
@ -33,7 +24,11 @@ use ZipArchive;
/**
* Unit tests for \core_files\local\archive_writer\zip_writer.
*
* @coversDefaultClass \core_files\local\archive_writer\zip_writer
* @package core_files
* @category test
* @copyright 2020 Mark Nelson <mdjnelson@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @covers \core_files\local\archive_writer\zip_writer
*/
class zip_writer_test extends advanced_testcase {