Improve PHPUNIT Test for phpunit7 and phpunit8

This commit is contained in:
Dany De Bontridder 2019-09-18 23:12:33 +02:00 committed by Dany De Bontridder
parent 18add2977e
commit 1af12b7d46
5 changed files with 226 additions and 302 deletions

View file

@ -16,7 +16,7 @@ class Acc_AccountTest extends TestCase
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
protected function setUp() :void
{
global $g_connection, $g_parameter, $g_user;
$_REQUEST['gDossier']=DOSSIER;
@ -27,14 +27,6 @@ class Acc_AccountTest extends TestCase
$this->object=new Acc_Account($cn, '400');
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* @covers Acc_Account::get_parameter