Index: trunk/phase3/tests/phpunit/includes/api/format/ApiFormatPhpTest.php |
— | — | @@ -5,7 +5,8 @@ |
6 | 6 | * @group Database |
7 | 7 | */ |
8 | 8 | class ApiFormatPhpTest extends ApiFormatTestBase { |
9 | | - function testValidPHPSyntax() { |
| 9 | + |
| 10 | + function testValidPhpSyntax() { |
10 | 11 | |
11 | 12 | $data = $this->apiRequest( 'php', array( 'action' => 'query', 'meta' => 'siteinfo' ) ); |
12 | 13 | |
Index: trunk/phase3/tests/phpunit/includes/media/PNGMetadataExtractorTest.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | /** |
5 | 5 | * Tests zTXt tag (compressed textual metadata) |
6 | 6 | */ |
7 | | - function testPNGNativetzTXt() { |
| 7 | + function testPngNativetZtxt() { |
8 | 8 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
9 | 9 | '/Png-native-test.png' ); |
10 | 10 | $expected = "foo bar baz foo foo foo foof foo foo foo foo"; |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | /** |
20 | 20 | * Test tEXt tag (Uncompressed textual metadata) |
21 | 21 | */ |
22 | | - function testPNGNativetEXt() { |
| 22 | + function testPngNativeText() { |
23 | 23 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
24 | 24 | '/Png-native-test.png' ); |
25 | 25 | $expected = "Some long image desc"; |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | * tEXt tags must be encoded iso-8859-1 (vs iTXt which are utf-8) |
37 | 37 | * Make sure non-ascii characters get converted properly |
38 | 38 | */ |
39 | | - function testPNGNativettEXtNonASCII() { |
| 39 | + function testPngNativeTextNonAscii() { |
40 | 40 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
41 | 41 | '/Png-native-test.png' ); |
42 | 42 | |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | /** |
58 | 58 | * Test extraction of pHYs tags, which can tell what the |
59 | 59 | * actual resolution of the image is (aka in dots per meter). |
60 | | - function testPNGpHYsTag () { |
| 60 | + function testPngPhysTag () { |
61 | 61 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
62 | 62 | '/Png-native-test.png' ); |
63 | 63 | |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | /** |
73 | 73 | * Given a normal static PNG, check the animation metadata returned. |
74 | 74 | */ |
75 | | - function testStaticPNGAnimationMetadata() { |
| 75 | + function testStaticPngAnimationMetadata() { |
76 | 76 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
77 | 77 | '/Png-native-test.png' ); |
78 | 78 | |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | * Given an animated APNG image file |
86 | 86 | * check it gets animated metadata right. |
87 | 87 | */ |
88 | | - function testAPNGAnimationMetadata() { |
| 88 | + function testApngAnimationMetadata() { |
89 | 89 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
90 | 90 | '/Animated_PNG_example_bouncing_beach_ball.png' ); |
91 | 91 | |
— | — | @@ -94,41 +94,41 @@ |
95 | 95 | $this->assertEquals( 1.5, $meta['duration'], '', 0.00001 ); |
96 | 96 | } |
97 | 97 | |
98 | | - function testPNGBitDepth8() { |
| 98 | + function testPngBitDepth8() { |
99 | 99 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
100 | 100 | '/Png-native-test.png' ); |
101 | 101 | |
102 | 102 | $this->assertEquals( 8, $meta['bitDepth'] ); |
103 | 103 | } |
104 | | - function testPNGBitDepth1() { |
| 104 | + function testPngBitDepth1() { |
105 | 105 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
106 | 106 | '/1bit-png.png' ); |
107 | 107 | $this->assertEquals( 1, $meta['bitDepth'] ); |
108 | 108 | } |
109 | 109 | |
110 | 110 | |
111 | | - function testPNGindexColour() { |
| 111 | + function testPngIndexColour() { |
112 | 112 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
113 | 113 | '/Png-native-test.png' ); |
114 | 114 | |
115 | 115 | $this->assertEquals( 'index-coloured', $meta['colorType'] ); |
116 | 116 | } |
117 | | - function testPNGrgbColour() { |
| 117 | + function testPngRgbColour() { |
118 | 118 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
119 | 119 | '/rgb-png.png' ); |
120 | 120 | $this->assertEquals( 'truecolour-alpha', $meta['colorType'] ); |
121 | 121 | } |
122 | | - function testPNGrgbNoAlphaColour() { |
| 122 | + function testPngRgbNoAlphaColour() { |
123 | 123 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
124 | 124 | '/rgb-na-png.png' ); |
125 | 125 | $this->assertEquals( 'truecolour', $meta['colorType'] ); |
126 | 126 | } |
127 | | - function testPNGgreyscaleColour() { |
| 127 | + function testPngGreyscaleColour() { |
128 | 128 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
129 | 129 | '/greyscale-png.png' ); |
130 | 130 | $this->assertEquals( 'greyscale-alpha', $meta['colorType'] ); |
131 | 131 | } |
132 | | - function testPNGgreyscaleNoAlphaColour() { |
| 132 | + function testPngGreyscaleNoAlphaColour() { |
133 | 133 | $meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) . |
134 | 134 | '/greyscale-na-png.png' ); |
135 | 135 | $this->assertEquals( 'greyscale', $meta['colorType'] ); |
Index: trunk/phase3/tests/phpunit/includes/SiteConfigurationTest.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | } |
95 | 95 | |
96 | 96 | |
97 | | - function testSiteFromDB() { |
| 97 | + function testSiteFromDb() { |
98 | 98 | $this->assertEquals( |
99 | 99 | array( 'wikipedia', 'en' ), |
100 | 100 | $this->mConf->siteFromDB( 'enwiki' ), |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | ); |
128 | 128 | } |
129 | 129 | |
130 | | - function testGet() { |
| 130 | + function testGetConfVariables() { |
131 | 131 | $this->assertEquals( |
132 | 132 | 'enwiki', |
133 | 133 | $this->mConf->get( 'simple', 'enwiki', 'wiki' ), |
— | — | @@ -238,7 +238,7 @@ |
239 | 239 | ); |
240 | 240 | } |
241 | 241 | |
242 | | - function testSiteFromDBWithCallback() { |
| 242 | + function testSiteFromDbWithCallback() { |
243 | 243 | $this->mConf->siteParamsCallback = 'getSiteParams'; |
244 | 244 | |
245 | 245 | $this->assertEquals( |
— | — | @@ -258,7 +258,7 @@ |
259 | 259 | ); |
260 | 260 | } |
261 | 261 | |
262 | | - function testParamReplacement() { |
| 262 | + function testParameterReplacement() { |
263 | 263 | $this->mConf->siteParamsCallback = 'getSiteParams'; |
264 | 264 | |
265 | 265 | $this->assertEquals( |
— | — | @@ -288,7 +288,7 @@ |
289 | 289 | ); |
290 | 290 | } |
291 | 291 | |
292 | | - function testGetAll() { |
| 292 | + function testGetAllGlobals() { |
293 | 293 | $this->mConf->siteParamsCallback = 'getSiteParams'; |
294 | 294 | |
295 | 295 | $getall = array( |
Index: trunk/phase3/tests/phpunit/includes/JsonTest.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | class JsonTest extends MediaWikiTestCase { |
5 | 5 | |
6 | | - function testPHPBug46944Test() { |
| 6 | + function testPhpBug46944Test() { |
7 | 7 | |
8 | 8 | $this->assertNotEquals( |
9 | 9 | '\ud840\udc00', |
Index: trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php |
— | — | @@ -384,7 +384,7 @@ |
385 | 385 | $this->title->userCan( 'bogus' ) ); |
386 | 386 | } |
387 | 387 | |
388 | | - function testCSSandJSPermissions() { |
| 388 | + function testCssAndJavascriptPermissions() { |
389 | 389 | $this->setUser( $this->userName ); |
390 | 390 | global $wgUser; |
391 | 391 | $wgUser = $this->user; |
Index: trunk/phase3/tests/phpunit/languages/LanguageTest.php |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | /** |
149 | 149 | * @dataProvider provideHTMLTruncateData() |
150 | 150 | */ |
151 | | - function testTruncateHTML( $len, $ellipsis, $input, $expected ) { |
| 151 | + function testTruncateHtml( $len, $ellipsis, $input, $expected ) { |
152 | 152 | // Actual HTML... |
153 | 153 | $this->assertEquals( |
154 | 154 | $expected, |