Follow-up r103915: We need to increment $end before the strcspn.
[lhc/web/wiklou.git] / tests / phpunit / includes / ArticleTest.php
index 9ec2295..285efee 100644 (file)
@@ -7,7 +7,7 @@ class ArticleTest extends MediaWikiTestCase {
 
        /** creates a title object and its article object */
        function setUp() {
-               $this->title   = Title::makeTitle( NS_MAIN, 'somePage' );
+               $this->title   = Title::makeTitle( NS_MAIN, 'SomePage' );
                $this->article = new Article( $this->title );
 
        }
@@ -19,7 +19,7 @@ class ArticleTest extends MediaWikiTestCase {
 
        }
 
-       function testImplementsGetMagic() {
+       function testImplementsGetMagic() {             
                $this->assertEquals( -1, $this->article->mCounter, "Article __get magic" );
        }
 
@@ -62,7 +62,7 @@ class ArticleTest extends MediaWikiTestCase {
                        "Article static functions" );
                $this->assertEquals( true, is_callable( "ImagePage::onArticleEdit" ),
                        "Article static functions" );
-               $this->assertTrue( 'testing' === 'jenkins' && is_string( CategoryPage::getAutosummary( '', '', 0 ) ),
+               $this->assertTrue( is_string( CategoryPage::getAutosummary( '', '', 0 ) ),
                        "Article static functions" );
        }