8 protected function setUp() {
10 $this->filePath = __DIR__ .
'/../../data/media/';
20 'Png-native-test.png' );
21 $expected =
"foo bar baz foo foo foo foof foo foo foo foo";
22 $this->assertArrayHasKey(
'text', $meta );
23 $meta = $meta[
'text'];
24 $this->assertArrayHasKey(
'Make', $meta );
25 $this->assertArrayHasKey(
'x-default', $meta[
'Make'] );
27 $this->assertEquals( $expected, $meta[
'Make'][
'x-default'] );
35 'Png-native-test.png' );
36 $expected =
"Some long image desc";
37 $this->assertArrayHasKey(
'text', $meta );
38 $meta = $meta[
'text'];
39 $this->assertArrayHasKey(
'ImageDescription', $meta );
40 $this->assertArrayHasKey(
'x-default', $meta[
'ImageDescription'] );
41 $this->assertArrayHasKey(
'_type', $meta[
'ImageDescription'] );
43 $this->assertEquals( $expected, $meta[
'ImageDescription'][
'x-default'] );
52 'Png-native-test.png' );
57 $expected =
"© 2010 Bawolff";
59 $this->assertArrayHasKey(
'text', $meta );
60 $meta = $meta[
'text'];
61 $this->assertArrayHasKey(
'Copyright', $meta );
62 $this->assertArrayHasKey(
'x-default', $meta[
'Copyright'] );
64 $this->assertEquals( $expected, $meta[
'Copyright'][
'x-default'] );
90 'Png-native-test.png' );
92 $this->assertEquals( 0, $meta[
'frameCount'] );
93 $this->assertEquals( 1, $meta[
'loopCount'] );
94 $this->assertEquals( 0, $meta[
'duration'] );
103 'Animated_PNG_example_bouncing_beach_ball.png' );
105 $this->assertEquals( 20, $meta[
'frameCount'] );
107 $this->assertEquals( 0, $meta[
'loopCount'] );
108 $this->assertEquals( 1.5, $meta[
'duration'],
'', 0.00001 );
113 'Png-native-test.png' );
115 $this->assertEquals( 8, $meta[
'bitDepth'] );
121 $this->assertEquals( 1, $meta[
'bitDepth'] );
126 'Png-native-test.png' );
128 $this->assertEquals(
'index-coloured', $meta[
'colorType'] );
134 $this->assertEquals(
'truecolour-alpha', $meta[
'colorType'] );
140 $this->assertEquals(
'truecolour', $meta[
'colorType'] );
145 'greyscale-png.png' );
146 $this->assertEquals(
'greyscale-alpha', $meta[
'colorType'] );
151 'greyscale-na-png.png' );
152 $this->assertEquals(
'greyscale', $meta[
'colorType'] );