Browse Source

Comment on test

Laurent Destailleur 3 years ago
parent
commit
dbf330b49c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      test/phpunit/DateLibTzFranceTest.php

+ 4 - 1
test/phpunit/DateLibTzFranceTest.php

@@ -83,7 +83,10 @@ class DateLibTzFranceTest extends PHPUnit\Framework\TestCase
 		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(1);
+			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";
+			print "You can launch the test from command line with:\n";
+			print "php -d date.timezone='Europe/Paris' phpunit DateLibTzFranceTest.php\n";
+			die(1);
 		}
 
 		$db->begin();	// This is to have all actions inside a transaction even if test launched without suite.