}
- function testSiteFromDB() {
+ function testSiteFromDb() {
$this->assertEquals(
array( 'wikipedia', 'en' ),
$this->mConf->siteFromDB( 'enwiki' ),
);
}
- function testGet() {
+ function testGetConfVariables() {
$this->assertEquals(
'enwiki',
$this->mConf->get( 'simple', 'enwiki', 'wiki' ),
);
}
- function testSiteFromDBWithCallback() {
+ function testSiteFromDbWithCallback() {
$this->mConf->siteParamsCallback = 'getSiteParams';
$this->assertEquals(
);
}
- function testParamReplacement() {
+ function testParameterReplacement() {
$this->mConf->siteParamsCallback = 'getSiteParams';
$this->assertEquals(
);
}
- function testGetAll() {
+ function testGetAllGlobals() {
$this->mConf->siteParamsCallback = 'getSiteParams';
$getall = array(
/**
* Tests zTXt tag (compressed textual metadata)
*/
- function testPNGNativetzTXt() {
+ function testPngNativetZtxt() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/Png-native-test.png' );
$expected = "foo bar baz foo foo foo foof foo foo foo foo";
/**
* Test tEXt tag (Uncompressed textual metadata)
*/
- function testPNGNativetEXt() {
+ function testPngNativeText() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/Png-native-test.png' );
$expected = "Some long image desc";
* tEXt tags must be encoded iso-8859-1 (vs iTXt which are utf-8)
* Make sure non-ascii characters get converted properly
*/
- function testPNGNativettEXtNonASCII() {
+ function testPngNativeTextNonAscii() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/Png-native-test.png' );
/**
* Test extraction of pHYs tags, which can tell what the
* actual resolution of the image is (aka in dots per meter).
- function testPNGpHYsTag () {
+ function testPngPhysTag () {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/Png-native-test.png' );
/**
* Given a normal static PNG, check the animation metadata returned.
*/
- function testStaticPNGAnimationMetadata() {
+ function testStaticPngAnimationMetadata() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/Png-native-test.png' );
* Given an animated APNG image file
* check it gets animated metadata right.
*/
- function testAPNGAnimationMetadata() {
+ function testApngAnimationMetadata() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/Animated_PNG_example_bouncing_beach_ball.png' );
$this->assertEquals( 1.5, $meta['duration'], '', 0.00001 );
}
- function testPNGBitDepth8() {
+ function testPngBitDepth8() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/Png-native-test.png' );
$this->assertEquals( 8, $meta['bitDepth'] );
}
- function testPNGBitDepth1() {
+ function testPngBitDepth1() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/1bit-png.png' );
$this->assertEquals( 1, $meta['bitDepth'] );
}
- function testPNGindexColour() {
+ function testPngIndexColour() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/Png-native-test.png' );
$this->assertEquals( 'index-coloured', $meta['colorType'] );
}
- function testPNGrgbColour() {
+ function testPngRgbColour() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/rgb-png.png' );
$this->assertEquals( 'truecolour-alpha', $meta['colorType'] );
}
- function testPNGrgbNoAlphaColour() {
+ function testPngRgbNoAlphaColour() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/rgb-na-png.png' );
$this->assertEquals( 'truecolour', $meta['colorType'] );
}
- function testPNGgreyscaleColour() {
+ function testPngGreyscaleColour() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/greyscale-png.png' );
$this->assertEquals( 'greyscale-alpha', $meta['colorType'] );
}
- function testPNGgreyscaleNoAlphaColour() {
+ function testPngGreyscaleNoAlphaColour() {
$meta = PNGMetadataExtractor::getMetadata( dirname( __FILE__ ) .
'/greyscale-na-png.png' );
$this->assertEquals( 'greyscale', $meta['colorType'] );