N°6097 - Tests: Introduce autoloader for "utility" classes and move them to a sub-folder for better organization as folder was still messy

Note that unittestautoload.php is now useless. We just keep for now until everything is migrated (projects / branches / modules)
This commit is contained in:
Molkobain
2023-07-20 17:37:11 +02:00
parent f002aa04cd
commit 1ad28312ec
7 changed files with 57 additions and 272 deletions

View File

@@ -1,10 +1,7 @@
<?php
// Main autoload, this is the one to use in the PHPUnit configuration
// It is customized to include both
// - Vendors
//
// It was previously used to include both the vendor autoloader and our custom base test case classes, but these are now autoloaded from ./src/BasetestCase
// This file should then no longer be necessary, but we have to keep it until projects / branches / modules have been corrected.
require_once 'vendor/autoload.php';
// - Custom test case PHP classes
require_once 'ItopTestCase.php';
require_once 'ItopDataTestCase.php';
require_once 'ItopCustomDatamodelTestCase.php';