Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Use __construct instead of AbstractTest constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 20, 2015
1 parent 1414837 commit 84a48d5
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion core/src/core/classes/class.AbstractTest.php
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.AJXPVersion.php
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.Client.php
Expand Up @@ -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'];
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPCLI.php
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPDomXML.php
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPErrorLevel.php
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPExif.php
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPGDVersion.php
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPLimits.php
Expand Up @@ -28,7 +28,7 @@
*/
class PHPLimits extends AbstractTest
{
public function __construct() { parent::AbstractTest("PHP Limits variables", "<b>Testing configs</b>"); }
public function __construct() { parent::__construct("PHP Limits variables", "<b>Testing configs</b>"); }
public function doTest()
{
$this->testedParams["Upload Max Size"] = ini_get("upload_max_filesize");
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPMCrypt.php
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPOS.php
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPSession.php
Expand Up @@ -28,7 +28,7 @@
*/
class PHPSession extends AbstractTest
{
public function __construct() { parent::AbstractTest("PHP Session", "<b>Testing configs</b>"); }
public function __construct() { parent::__construct("PHP Session", "<b>Testing configs</b>"); }
public function doTest()
{
$handler = ini_get("session.save_handler");
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHPVersion.php
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHP_APC.php
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHP_OB.php
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.PHP_magic_quotes.php
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.SSLEncryption.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.ServerEncoding.php
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.Upload.php
Expand Up @@ -28,7 +28,7 @@
*/
class Upload extends AbstractTest
{
public function __construct() { parent::AbstractTest("Upload particularities", "<b>Testing configs</b>"); }
public function __construct() { parent::__construct("Upload particularities", "<b>Testing configs</b>"); }
public function doTest()
{
$tmpDir = ini_get("upload_tmp_dir");
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.UsersConfig.php
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.Writeability.php
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/tests/test.Zlib.php
Expand Up @@ -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");
Expand Down

0 comments on commit 84a48d5

Please sign in to comment.