From a72741e313dddc202556260c2b12cfb84150f888 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Mon, 19 Aug 2019 19:59:17 +0200 Subject: [PATCH] Use Maintenance::addDescription It is better to use a setter function than setting a property Change-Id: I1df2d03cfaede53867daf9db8e26af5931c77ef9 --- maintenance/MathGenerateTests.php | 2 +- tests/wfTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/MathGenerateTests.php b/maintenance/MathGenerateTests.php index 0cfeb8b..0bbf9c7 100644 --- a/maintenance/MathGenerateTests.php +++ b/maintenance/MathGenerateTests.php @@ -27,7 +27,7 @@ class MathGenerateTests extends Maintenance { public function __construct() { parent::__construct(); $this->requireExtension( 'Math' ); - $this->mDescription = 'Rebuilds the MathCoverage tests'; + $this->addDescription( 'Rebuilds the MathCoverage tests' ); $this->addArg( 'page', "The page used for the testset generation.", false ); $this->addOption( 'offset', "If set the first n equations on the page are skipped", false, true, "o" diff --git a/tests/wfTest.php b/tests/wfTest.php index 0a18a0a..ce04432 100644 --- a/tests/wfTest.php +++ b/tests/wfTest.php @@ -13,7 +13,7 @@ class DummyTest extends Maintenance { public function __construct() { parent::__construct(); $this->requireExtension( 'Math' ); - $this->mDescription = 'Test Mathoid CLI'; + $this->addDescription( 'Test Mathoid CLI' ); $this->addArg( 'page', "The page used for the testset generation.", false ); $this->addOption( 'offset', "If set the first n equations on the page are skipped", false, true, "o" );