Changeset 34374 for trunk/tests/phpunit/tests/image/meta.php
- Timestamp:
- 09/22/2015 04:18:02 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/meta.php
r29789 r34374 139 139 $this->assertFalse($out); 140 140 } 141 142 143 /** 144 * @ticket 33772 145 */ 146 public function test_exif_keywords() { 147 $out = wp_read_image_metadata(DIR_TESTDATA.'/images/33772.jpg'); 148 149 $this->assertEquals( '8', $out['aperture'] ); 150 $this->assertEquals( 'Photoshop Author', $out['credit'] ); 151 $this->assertEquals( 'DMC-LX2', $out['camera'] ); 152 $this->assertEquals( 'Photoshop Description', $out['caption'] ); 153 $this->assertEquals( 1306315327, $out['created_timestamp'] ); 154 $this->assertEquals( 'Photoshop Copyrright Notice', $out['copyright'] ); 155 $this->assertEquals( '6.3', $out['focal_length'] ); 156 $this->assertEquals( '100', $out['iso'] ); 157 $this->assertEquals( '0.0025', $out['shutter_speed'] ); 158 $this->assertEquals( 'Photoshop Document Ttitle', $out['title'] ); 159 $this->assertEquals( 1, $out['orientation']); 160 $this->assertEquals( array( 'beach', 'baywatch', 'LA', 'sunset' ), $out['keywords'] ); 161 } 162 141 163 }
Note: See TracChangeset
for help on using the changeset viewer.