mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°3091 Update PHPUnit to 8.5 : fix setUp and teardDown methods signatures on support/3.0 new tests
This commit is contained in:
@@ -20,7 +20,7 @@ class MFCompilerTest extends ItopTestCase {
|
||||
|
||||
private $sTmpDir;
|
||||
|
||||
public function setUp() {
|
||||
public function setUp(): void {
|
||||
parent::setUp();
|
||||
require_once(APPROOT.'setup/compiler.class.inc.php');
|
||||
require_once(APPROOT.'setup/modelfactory.class.inc.php');
|
||||
@@ -30,7 +30,7 @@ class MFCompilerTest extends ItopTestCase {
|
||||
$this->oMFCompiler = new SubMFCompiler($this->createMock(\ModelFactory::class), '');
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
public function tearDown(): void {
|
||||
parent::tearDown();
|
||||
$this->RecurseRmdir($this->sTmpDir);
|
||||
}
|
||||
@@ -88,7 +88,7 @@ class MFCompilerTest extends ItopTestCase {
|
||||
}*/
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
public static function tearDownAfterClass(): void
|
||||
{
|
||||
if (is_null(self::$aFoldersToCleanup)){
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user