X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fmctest.php;h=243f97c20eedce2104866327863091a5a6422736;hb=2f9cfa3d26fd11e4d816502df9f3e4a68b5bc4c4;hp=28b041aaefce016e1af3c46055ecbdce4564a844;hpb=8a4524600946b1785b4b954479e94c381a0613b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mctest.php b/maintenance/mctest.php index 28b041aaef..243f97c20e 100644 --- a/maintenance/mctest.php +++ b/maintenance/mctest.php @@ -30,7 +30,7 @@ require_once __DIR__ . '/Maintenance.php'; * * @ingroup Maintenance */ -class mcTest extends Maintenance { +class McTest extends Maintenance { public function __construct() { parent::__construct(); $this->mDescription = "Makes several 'set', 'incr' and 'get' requests on every" @@ -80,7 +80,7 @@ class mcTest extends Maintenance { $get = 0; $time_start = $this->microtime_float(); for ( $i = 1; $i <= $iterations; $i++ ) { - if ( !is_null( $mcc->set( "test$i", $i ) ) ) { + if ( $mcc->set( "test$i", $i ) ) { $set++; } } @@ -111,5 +111,5 @@ class mcTest extends Maintenance { } } -$maintClass = "mcTest"; +$maintClass = "McTest"; require_once RUN_MAINTENANCE_IF_MAIN;