rv r96424, Roan had his fun
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 7 Sep 2011 13:04:40 +0000 (13:04 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 7 Sep 2011 13:04:40 +0000 (13:04 +0000)
tests/parser/parserTests.txt
tests/phpunit/includes/ArticleTest.php
tests/phpunit/includes/GlobalFunctions/wfExpandUrlTest.php

index 5d73d01..bde769c 100644 (file)
@@ -719,7 +719,7 @@ External links: protocol-relative URL in brackets
 !! input
 [//example.com/ Test]
 !! result
-<p><a rel="nofollow" class="external text testingJenkins" href="//example.com/">Test</a>
+<p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
 </p>
 !! end
 
index 9ec2295..56384cf 100644 (file)
@@ -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" );
        }
 
index a593c90..ab54602 100644 (file)
@@ -47,7 +47,7 @@ class wfExpandUrl extends MediaWikiTestCase {
                                                $retval[] = array( 'http://example.com', 'http://example.com', $defaultProto, $server, $canServer, $httpsMode, "Testing fully qualified http URLs (no need to expand) (defaultProto: $protoDesc , wgServer: $server, wgCanonicalServer: $canServer, current request protocol: $mode )" );
                                                $retval[] = array( 'https://example.com', 'https://example.com', $defaultProto, $server, $canServer, $httpsMode, "Testing fully qualified https URLs (no need to expand) (defaultProto: $protoDesc , wgServer: $server, wgCanonicalServer: $canServer, current request protocol: $mode )" );
                                                # Would be nice to support this, see fixme on wfExpandUrl()
-                                               $retval[] = array( "wiki/FooBar/TestingJenkins", 'wiki/FooBar', $defaultProto, $server, $canServer, $httpsMode, "Test non-expandable relative URLs (defaultProto: $protoDesc , wgServer: $server, wgCanonicalServer: $canServer, current request protocol: $mode )" );
+                                               $retval[] = array( "wiki/FooBar", 'wiki/FooBar', $defaultProto, $server, $canServer, $httpsMode, "Test non-expandable relative URLs (defaultProto: $protoDesc , wgServer: $server, wgCanonicalServer: $canServer, current request protocol: $mode )" );
                                                
                                                // Determine expected protocol
                                                $p = $protoDesc . ':'; // default case