9 protected function setUp() {
11 $this->filePath = __DIR__ .
'/../../data/media/';
21 'Png-native-test.png' );
22 $expected =
"foo bar baz foo foo foo foof foo foo foo foo";
23 $this->assertArrayHasKey(
'text', $meta );
24 $meta = $meta[
'text'];
25 $this->assertArrayHasKey(
'Make', $meta );
26 $this->assertArrayHasKey(
'x-default', $meta[
'Make'] );
28 $this->assertEquals( $expected, $meta[
'Make'][
'x-default'] );
36 'Png-native-test.png' );
37 $expected =
"Some long image desc";
38 $this->assertArrayHasKey(
'text', $meta );
39 $meta = $meta[
'text'];
40 $this->assertArrayHasKey(
'ImageDescription', $meta );
41 $this->assertArrayHasKey(
'x-default', $meta[
'ImageDescription'] );
42 $this->assertArrayHasKey(
'_type', $meta[
'ImageDescription'] );
44 $this->assertEquals( $expected, $meta[
'ImageDescription'][
'x-default'] );
53 'Png-native-test.png' );
58 $expected =
"© 2010 Bawolff";
60 $this->assertArrayHasKey(
'text', $meta );
61 $meta = $meta[
'text'];
62 $this->assertArrayHasKey(
'Copyright', $meta );
63 $this->assertArrayHasKey(
'x-default', $meta[
'Copyright'] );
65 $this->assertEquals( $expected, $meta[
'Copyright'][
'x-default'] );
91 'Png-native-test.png' );
93 $this->assertEquals( 0, $meta[
'frameCount'] );
94 $this->assertEquals( 1, $meta[
'loopCount'] );
95 $this->assertEquals( 0, $meta[
'duration'] );
104 'Animated_PNG_example_bouncing_beach_ball.png' );
106 $this->assertEquals( 20, $meta[
'frameCount'] );
108 $this->assertEquals( 0, $meta[
'loopCount'] );
109 $this->assertEquals( 1.5, $meta[
'duration'],
'', 0.00001 );
114 'Png-native-test.png' );
116 $this->assertEquals( 8, $meta[
'bitDepth'] );
122 $this->assertEquals( 1, $meta[
'bitDepth'] );
127 'Png-native-test.png' );
129 $this->assertEquals(
'index-coloured', $meta[
'colorType'] );
135 $this->assertEquals(
'truecolour-alpha', $meta[
'colorType'] );
141 $this->assertEquals(
'truecolour', $meta[
'colorType'] );
146 'greyscale-png.png' );
147 $this->assertEquals(
'greyscale-alpha', $meta[
'colorType'] );
152 'greyscale-na-png.png' );
153 $this->assertEquals(
'greyscale', $meta[
'colorType'] );