diff --git a/core/src/core/classes/class.AbstractTest.php b/core/src/core/classes/class.AbstractTest.php index 0adb3c6163..da6b56cdff 100644 --- a/core/src/core/classes/class.AbstractTest.php +++ b/core/src/core/classes/class.AbstractTest.php @@ -44,7 +44,7 @@ class AbstractTest /** The test parameters */ public $params; - public function AbstractTest($name, $failedInfo, $params = NULL) + public function __construct($name, $failedInfo, $params = NULL) { $this->name = $name; $this->failedInfo = $failedInfo; diff --git a/core/src/core/tests/test.AJXPVersion.php b/core/src/core/tests/test.AJXPVersion.php index baf75771c9..c01376d799 100644 --- a/core/src/core/tests/test.AJXPVersion.php +++ b/core/src/core/tests/test.AJXPVersion.php @@ -29,7 +29,7 @@ */ class AJXPVersion extends AbstractTest { - public function __construct() { parent::AbstractTest("Pydio version", "Version : ".AJXP_VERSION); } + public function __construct() { parent::__construct("Pydio version", "Version : ".AJXP_VERSION); } public function doTest() { $this->failedLevel = "info"; diff --git a/core/src/core/tests/test.Client.php b/core/src/core/tests/test.Client.php index 1ea61b0872..c8c25c576d 100644 --- a/core/src/core/tests/test.Client.php +++ b/core/src/core/tests/test.Client.php @@ -29,7 +29,7 @@ */ class Client extends AbstractTest { - public function __construct() { parent::AbstractTest("Client Browser", "Current client ".$_SERVER['HTTP_USER_AGENT']); } + public function __construct() { parent::__construct("Client Browser", "Current client ".$_SERVER['HTTP_USER_AGENT']); } public function doTest() { $this->testedParams["Client"] = $_SERVER['HTTP_USER_AGENT']; diff --git a/core/src/core/tests/test.PHPCLI.php b/core/src/core/tests/test.PHPCLI.php index 750f04ceb6..f36276d7a0 100644 --- a/core/src/core/tests/test.PHPCLI.php +++ b/core/src/core/tests/test.PHPCLI.php @@ -28,7 +28,7 @@ */ class PHPCLI extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP Command Line", "Testing PHP command line (default is php)"); } + public function __construct() { parent::__construct("PHP Command Line", "Testing PHP command line (default is php)"); } public function doTest() { if (!is_writable(AJXP_CACHE_DIR)) { diff --git a/core/src/core/tests/test.PHPDomXML.php b/core/src/core/tests/test.PHPDomXML.php index d10a55860d..2ca9e0fed1 100644 --- a/core/src/core/tests/test.PHPDomXML.php +++ b/core/src/core/tests/test.PHPDomXML.php @@ -28,7 +28,7 @@ */ class PHPDomXML extends AbstractTest { - public function __construct() { parent::AbstractTest("DOM Xml enabled", "Dom XML is required, you may have to install the php-xml extension."); } + public function __construct() { parent::__construct("DOM Xml enabled", "Dom XML is required, you may have to install the php-xml extension."); } public function doTest() { $this->failedLevel = "error"; diff --git a/core/src/core/tests/test.PHPErrorLevel.php b/core/src/core/tests/test.PHPErrorLevel.php index ca74244972..5367ff63e5 100644 --- a/core/src/core/tests/test.PHPErrorLevel.php +++ b/core/src/core/tests/test.PHPErrorLevel.php @@ -28,7 +28,7 @@ */ class PHPErrorLevel extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP error level", PHPErrorLevel::error2string(error_reporting())); } + public function __construct() { parent::__construct("PHP error level", PHPErrorLevel::error2string(error_reporting())); } public function doTest() { if (error_reporting() & E_NOTICE) { diff --git a/core/src/core/tests/test.PHPExif.php b/core/src/core/tests/test.PHPExif.php index 1030633342..bea215976c 100644 --- a/core/src/core/tests/test.PHPExif.php +++ b/core/src/core/tests/test.PHPExif.php @@ -29,7 +29,7 @@ class PHPExif extends AbstractTest { public function __construct() { - parent::AbstractTest("Exif Extension enabled", "Installing php-exif extension is recommended if you plan to handle images"); + parent::__construct("Exif Extension enabled", "Installing php-exif extension is recommended if you plan to handle images"); } public function doTest() { diff --git a/core/src/core/tests/test.PHPGDVersion.php b/core/src/core/tests/test.PHPGDVersion.php index 5e8d648c1c..d7db74e82a 100644 --- a/core/src/core/tests/test.PHPGDVersion.php +++ b/core/src/core/tests/test.PHPGDVersion.php @@ -28,7 +28,7 @@ */ class PHPGDVersion extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP GD version", "GD is required for generating thumbnails"); } + public function __construct() { parent::__construct("PHP GD version", "GD is required for generating thumbnails"); } public function doTest() { $this->failedLevel = "warning"; diff --git a/core/src/core/tests/test.PHPLimits.php b/core/src/core/tests/test.PHPLimits.php index 4a4ebe9eae..36674347e7 100644 --- a/core/src/core/tests/test.PHPLimits.php +++ b/core/src/core/tests/test.PHPLimits.php @@ -28,7 +28,7 @@ */ class PHPLimits extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP Limits variables", "Testing configs"); } + public function __construct() { parent::__construct("PHP Limits variables", "Testing configs"); } public function doTest() { $this->testedParams["Upload Max Size"] = ini_get("upload_max_filesize"); diff --git a/core/src/core/tests/test.PHPMCrypt.php b/core/src/core/tests/test.PHPMCrypt.php index 86af5d91b0..2dca6118f8 100644 --- a/core/src/core/tests/test.PHPMCrypt.php +++ b/core/src/core/tests/test.PHPMCrypt.php @@ -28,7 +28,7 @@ */ class PHPMCrypt extends AbstractTest { - public function __construct() { parent::AbstractTest("MCrypt enabled", "MCrypt is required by all security functions."); } + public function __construct() { parent::__construct("MCrypt enabled", "MCrypt is required by all security functions."); } public function doTest() { $this->failedLevel = "error"; diff --git a/core/src/core/tests/test.PHPOS.php b/core/src/core/tests/test.PHPOS.php index 34bb27ed81..de08f0ec70 100644 --- a/core/src/core/tests/test.PHPOS.php +++ b/core/src/core/tests/test.PHPOS.php @@ -28,7 +28,7 @@ */ class PHPOS extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP operating system", "Current operating system ".PHP_OS); } + public function __construct() { parent::__construct("PHP operating system", "Current operating system ".PHP_OS); } public function doTest() { $this->testedParams["Server OS"] = PHP_OS; diff --git a/core/src/core/tests/test.PHPSession.php b/core/src/core/tests/test.PHPSession.php index 8b01cfae37..5e665ca4a6 100644 --- a/core/src/core/tests/test.PHPSession.php +++ b/core/src/core/tests/test.PHPSession.php @@ -28,7 +28,7 @@ */ class PHPSession extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP Session", "Testing configs"); } + public function __construct() { parent::__construct("PHP Session", "Testing configs"); } public function doTest() { $handler = ini_get("session.save_handler"); diff --git a/core/src/core/tests/test.PHPVersion.php b/core/src/core/tests/test.PHPVersion.php index c93195ee2d..bbb11a7a1c 100644 --- a/core/src/core/tests/test.PHPVersion.php +++ b/core/src/core/tests/test.PHPVersion.php @@ -28,7 +28,7 @@ */ class PHPVersion extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP version", "Minimum required version is PHP 5.3.0"); } + public function __construct() { parent::__construct("PHP version", "Minimum required version is PHP 5.3.0"); } public function doTest() { $version = phpversion(); diff --git a/core/src/core/tests/test.PHP_APC.php b/core/src/core/tests/test.PHP_APC.php index a1c5b267ce..ee6915e187 100644 --- a/core/src/core/tests/test.PHP_APC.php +++ b/core/src/core/tests/test.PHP_APC.php @@ -28,7 +28,7 @@ */ class PHP_APC extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP APC extension", "Pydio framework loads a lot of PHP files at each query, and using a PHP accelerator is greatly recommanded."); } + public function __construct() { parent::__construct("PHP APC extension", "Pydio framework loads a lot of PHP files at each query, and using a PHP accelerator is greatly recommanded."); } public function doTest() { $this->failedLevel = "warning"; diff --git a/core/src/core/tests/test.PHP_OB.php b/core/src/core/tests/test.PHP_OB.php index 0b479a9ca8..51e207c3df 100644 --- a/core/src/core/tests/test.PHP_OB.php +++ b/core/src/core/tests/test.PHP_OB.php @@ -28,7 +28,7 @@ */ class PHP_OB extends AbstractTest { - public function __construct() { parent::AbstractTest("PHP Output Buffer disabled", "You should disable php output_buffering parameter for better performances with Pydio."); } + public function __construct() { parent::__construct("PHP Output Buffer disabled", "You should disable php output_buffering parameter for better performances with Pydio."); } public function doTest() { $this->failedLevel = "warning"; diff --git a/core/src/core/tests/test.PHP_magic_quotes.php b/core/src/core/tests/test.PHP_magic_quotes.php index 8296217dbb..5320a2090e 100644 --- a/core/src/core/tests/test.PHP_magic_quotes.php +++ b/core/src/core/tests/test.PHP_magic_quotes.php @@ -28,7 +28,7 @@ */ class PHP_magic_quotes extends AbstractTest { - public function __construct() { parent::AbstractTest("Magic quotes disabled", "Magic quotes need to be disabled, only relevent for php 5.3"); } + public function __construct() { parent::__construct("Magic quotes disabled", "Magic quotes need to be disabled, only relevent for php 5.3"); } public function doTest() { $this->failedLevel = "error"; diff --git a/core/src/core/tests/test.SSLEncryption.php b/core/src/core/tests/test.SSLEncryption.php index d808962166..e2a6514fac 100644 --- a/core/src/core/tests/test.SSLEncryption.php +++ b/core/src/core/tests/test.SSLEncryption.php @@ -28,7 +28,7 @@ */ class SSLEncryption extends AbstractTest { - public function __construct() { parent::AbstractTest("SSL Encryption", "You are not using SSL encryption, or it was not detected by the server. Be aware that it is strongly recommended to secure all communication of data over the network."); } + public function __construct() { parent::__construct("SSL Encryption", "You are not using SSL encryption, or it was not detected by the server. Be aware that it is strongly recommended to secure all communication of data over the network."); } public function doTest() { // Get the locale diff --git a/core/src/core/tests/test.ServerEncoding.php b/core/src/core/tests/test.ServerEncoding.php index a77a7a8d02..6de7c0c8e1 100644 --- a/core/src/core/tests/test.ServerEncoding.php +++ b/core/src/core/tests/test.ServerEncoding.php @@ -28,7 +28,7 @@ */ class ServerEncoding extends AbstractTest { - public function __construct() { parent::AbstractTest("Server charset encoding", "You must set a correct charset encoding + public function __construct() { parent::__construct("Server charset encoding", "You must set a correct charset encoding in your locale definition in the form: en_us.UTF-8. Please refer to setlocale man page. If your detected locale is C, simply type echo \$LANG on your server command line to read the correct value."); } public function doTest() diff --git a/core/src/core/tests/test.Upload.php b/core/src/core/tests/test.Upload.php index a265de65f6..8ae92fd904 100644 --- a/core/src/core/tests/test.Upload.php +++ b/core/src/core/tests/test.Upload.php @@ -28,7 +28,7 @@ */ class Upload extends AbstractTest { - public function __construct() { parent::AbstractTest("Upload particularities", "Testing configs"); } + public function __construct() { parent::__construct("Upload particularities", "Testing configs"); } public function doTest() { $tmpDir = ini_get("upload_tmp_dir"); diff --git a/core/src/core/tests/test.UsersConfig.php b/core/src/core/tests/test.UsersConfig.php index 754e9f7bdf..7d0eb8459c 100644 --- a/core/src/core/tests/test.UsersConfig.php +++ b/core/src/core/tests/test.UsersConfig.php @@ -28,7 +28,7 @@ */ class UsersConfig extends AbstractTest { - public function __construct() { parent::AbstractTest("Users Configuration", "Current config for users"); } + public function __construct() { parent::__construct("Users Configuration", "Current config for users"); } public function doTest() { $this->testedParams["Users enabled"] = AuthService::usersEnabled(); diff --git a/core/src/core/tests/test.Writeability.php b/core/src/core/tests/test.Writeability.php index 4af1fb18d0..154c19b0f4 100644 --- a/core/src/core/tests/test.Writeability.php +++ b/core/src/core/tests/test.Writeability.php @@ -28,7 +28,7 @@ */ class Writeability extends AbstractTest { - public function __construct() { parent::AbstractTest("Required writeable folder", "One of the following folder should be writeable and is not : "); } + public function __construct() { parent::__construct("Required writeable folder", "One of the following folder should be writeable and is not : "); } public function doTest() { $checks = array(); diff --git a/core/src/core/tests/test.Zlib.php b/core/src/core/tests/test.Zlib.php index 76337ed40a..8df48ee272 100644 --- a/core/src/core/tests/test.Zlib.php +++ b/core/src/core/tests/test.Zlib.php @@ -28,7 +28,7 @@ */ class Zlib extends AbstractTest { - public function __construct() { parent::AbstractTest("Zlib extension (ZIP)", "Extension enabled : ".((function_exists('gzopen')||function_exists('gzopen64'))?"1":"0")); } + public function __construct() { parent::__construct("Zlib extension (ZIP)", "Extension enabled : ".((function_exists('gzopen')||function_exists('gzopen64'))?"1":"0")); } public function doTest() { $this->testedParams["Zlib Enabled"] = ((function_exists('gzopen')||function_exists('gzopen64'))?"Yes":"No");