Make WordPress Core

Changeset 50 in tests


Ignore:
Timestamp:
10/08/2007 03:07:39 AM (17 years ago)
Author:
tellyworth
Message:

skip tests if wp_read_image_metadata is unavailable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_image.php

    r49 r50  
    44
    55    function test_exif_d70() {
     6        if (!is_callable('wp_read_image_metadata'))
     7            $this->markTestSkipped();
     8
    69        // exif from a Nikon D70
    7 
    810        $out = wp_read_image_metadata(DIR_TESTDATA.'/images/2004-07-22-DSC_0008.jpg');
    911
     
    2022
    2123    function test_exif_d70_mf() {
     24        if (!is_callable('wp_read_image_metadata'))
     25            $this->markTestSkipped();
     26
    2227        // exif from a Nikon D70 - manual focus lens, so some data is unavailable
    23 
    2428        $out = wp_read_image_metadata(DIR_TESTDATA.'/images/2007-06-17DSC_4173.JPG');
    2529
     
    3640
    3741    function test_exif_d70_iptc() {
     42        if (!is_callable('wp_read_image_metadata'))
     43            $this->markTestSkipped();
     44
    3845        // exif from a Nikon D70 with IPTC data added later
    39 
    4046        $out = wp_read_image_metadata(DIR_TESTDATA.'/images/2004-07-22-DSC_0007.jpg');
    4147
Note: See TracChangeset for help on using the changeset viewer.