Fix phpcs

This commit is contained in:
Laurent Destailleur
2021-03-02 02:06:09 +01:00
parent ebc3210308
commit 0670a00b83
6 changed files with 46 additions and 50 deletions

View File

@@ -78,13 +78,12 @@ class DateLibTzFranceTest extends PHPUnit\Framework\TestCase
*
* @return void
*/
public static function setUpBeforeClass()
{
public static function setUpBeforeClass() {
global $conf,$user,$langs,$db;
if (getServerTimeZoneString() != 'Europe/Paris' && getServerTimeZoneString() != 'Europe/Berlin') {
print "\n".__METHOD__." This PHPUnit test can be launched manually only onto a server with PHP timezone set to TZ=Europe/Paris, not a TZ=".getServerTimeZoneString().".\n"; die();
}
if (getServerTimeZoneString() != 'Europe/Paris' && getServerTimeZoneString() != 'Europe/Berlin') {
print "\n".__METHOD__." This PHPUnit test can be launched manually only onto a server with PHP timezone set to TZ=Europe/Paris, not a TZ=".getServerTimeZoneString().".\n"; die();
}
$db->begin(); // This is to have all actions inside a transaction even if test launched without suite.
@@ -96,8 +95,7 @@ class DateLibTzFranceTest extends PHPUnit\Framework\TestCase
*
* @return void
*/
public static function tearDownAfterClass()
{
public static function tearDownAfterClass() {
global $conf,$user,$langs,$db;
$db->rollback();