X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FArticleTest.php;h=46aaa4b04c3600c7467f5a7c889a30a164c405b9;hb=329d5b3516daa2a338101a6625f2f8513cf443fa;hp=744417b1fc9fd011314986c3951aef51b967e727;hpb=96f7db3f7b28150195817d31d8c6ba1eb3e8d0cf;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/ArticleTest.php b/tests/phpunit/includes/ArticleTest.php index 744417b1fc..46aaa4b04c 100644 --- a/tests/phpunit/includes/ArticleTest.php +++ b/tests/phpunit/includes/ArticleTest.php @@ -2,19 +2,25 @@ class ArticleTest extends MediaWikiTestCase { - private $title; // holds a Title object - private $article; // holds an article + /** + * @var Title + */ + private $title; + /** + * @var Article + */ + private $article; /** creates a title object and its article object */ - function setUp() { - $this->title = Title::makeTitle( NS_MAIN, 'SomePage' ); + protected function setUp() { + $this->title = Title::makeTitle( NS_MAIN, 'SomePage' ); $this->article = new Article( $this->title ); } /** cleanup title object and its article object */ - function tearDown() { - $this->title = null; + protected function tearDown() { + $this->title = null; $this->article = null; }