Use the canonical class name: s/JavascriptContent/JavaScriptContent/
authorPlatonides <platonides@gmail.com>
Thu, 6 Dec 2012 22:11:16 +0000 (23:11 +0100)
committerPlatonides <platonides@gmail.com>
Thu, 6 Dec 2012 22:11:16 +0000 (23:11 +0100)
Change-Id: I95bfb8860f77d01bad027d1c2baf2d871e093758

tests/phpunit/includes/content/JavascriptContentTest.php
tests/phpunit/includes/content/TextContentTest.php
tests/phpunit/includes/content/WikitextContentTest.php

index e08252c..18df53f 100644 (file)
@@ -5,10 +5,10 @@
  * @group Database
  *        ^--- needed, because we do need the database to test link updates
  */
-class JavascriptContentTest extends TextContentTest {
+class JavaScriptContentTest extends TextContentTest {
 
        public function newContent( $text ) {
-               return new JavascriptContent( $text );
+               return new JavaScriptContent( $text );
        }
 
        public static function dataGetParserOutput() {
@@ -263,10 +263,10 @@ class JavascriptContentTest extends TextContentTest {
 
        public static function dataEquals( ) {
                return array(
-                       array( new JavascriptContent( "hallo" ), null, false ),
-                       array( new JavascriptContent( "hallo" ), new JavascriptContent( "hallo" ), true ),
-                       array( new JavascriptContent( "hallo" ), new CssContent( "hallo" ), false ),
-                       array( new JavascriptContent( "hallo" ), new JavascriptContent( "HALLO" ), false ),
+                       array( new JavaScriptContent( "hallo" ), null, false ),
+                       array( new JavaScriptContent( "hallo" ), new JavaScriptContent( "hallo" ), true ),
+                       array( new JavaScriptContent( "hallo" ), new CssContent( "hallo" ), false ),
+                       array( new JavaScriptContent( "hallo" ), new JavaScriptContent( "HALLO" ), false ),
                );
        }
 
index dd03340..3501aec 100644 (file)
@@ -318,7 +318,7 @@ class TextContentTest extends MediaWikiLangTestCase {
                return array(
                        array( new TextContent( "hallo" ), null, false ),
                        array( new TextContent( "hallo" ), new TextContent( "hallo" ), true ),
-                       array( new TextContent( "hallo" ), new JavascriptContent( "hallo" ), false ),
+                       array( new TextContent( "hallo" ), new JavaScriptContent( "hallo" ), false ),
                        array( new TextContent( "hallo" ), new WikitextContent( "hallo" ), false ),
                        array( new TextContent( "hallo" ), new TextContent( "HALLO" ), false ),
                );
index ceb6d48..b76e9aa 100644 (file)
@@ -362,7 +362,7 @@ just a test"
                return array(
                        array( new WikitextContent( "hallo" ), null, false ),
                        array( new WikitextContent( "hallo" ), new WikitextContent( "hallo" ), true ),
-                       array( new WikitextContent( "hallo" ), new JavascriptContent( "hallo" ), false ),
+                       array( new WikitextContent( "hallo" ), new JavaScriptContent( "hallo" ), false ),
                        array( new WikitextContent( "hallo" ), new TextContent( "hallo" ), false ),
                        array( new WikitextContent( "hallo" ), new WikitextContent( "HALLO" ), false ),
                );