[buddypress-trac] [BuddyPress Trac] #7432: Test depends on PHP EXIF support; should fail more gracefully when absent

buddypress-trac noreply at wordpress.org
Wed Feb 1 20:10:49 UTC 2017


#7432: Test depends on PHP EXIF support; should fail more gracefully when absent
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.9
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 Related: #7019

 If PHP is not compiled with EXIF support,
 `BP_Tests_BP_Attachment_TestCases::test_bp_attachment_get_image_data()`
 fails. The test is written in a way that makes it dependent on data
 fetched via `exif_read_data()` (as opposed to some of the other data
 fetched by `wp_read_image_metadata()`). I think this is probably fine, but
 we should skip the test if EXIF support is not in place:

 {{{
 if ( ! is_callable( 'exif_read_data' ) ) {
     $this->markTestSkipped( 'This test requires PHP to be compiled with
 EXIF support.' );
 }
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7432>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list