Merge "Clean up database cloning for tests."
[lhc/web/wiklou.git] / tests / phpunit / includes / ArticleTest.php
index 744417b..20952b1 100644 (file)
@@ -2,21 +2,27 @@
 
 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() {
+               parent::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() {
+               parent::tearDown();
+               $this->title = null;
                $this->article = null;
-
        }
 
        function testImplementsGetMagic() {