Changeset 51 in tests
- Timestamp:
- 10/08/2007 10:06:52 AM (17 years ago)
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_image.php
r50 r51 57 57 } 58 58 59 function test_exif_fuji() { 60 if (!is_callable('wp_read_image_metadata')) 61 $this->markTestSkipped(); 62 63 // exif from a Fuji FinePix S5600 (thanks Mark) 64 $out = wp_read_image_metadata(DIR_TESTDATA.'/images/a2-small.jpg'); 65 66 $this->assertEquals(4.5, $out['aperture']); 67 $this->assertEquals('', $out['credit']); 68 $this->assertEquals('FinePix S5600', $out['camera']); 69 $this->assertEquals('', $out['caption']); 70 $this->assertEquals(strtotime('2007-09-03 10:17:03'), $out['created_timestamp']); 71 $this->assertEquals('', $out['copyright']); 72 $this->assertEquals(6.3, $out['focal_length']); 73 $this->assertEquals(64, $out['iso']); 74 $this->assertEquals(1/320, $out['shutter_speed']); 75 $this->assertEquals('', $out['title']); 76 77 } 59 78 } 60 79
Note: See TracChangeset
for help on using the changeset viewer.