Make WordPress Core


Ignore:
Timestamp:
09/12/2013 06:37:32 PM (12 years ago)
Author:
nacin
Message:

Use @expectedDeprecated. see #25282, [25408].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/size.php

    r25402 r25409  
    77 */
    88class Tests_Image_Size extends WP_UnitTestCase {
    9     protected $deprecated_functions = array( 'wp_shrink_dimensions' );
    10    
     9
    1110    function test_constrain_dims_zero() {
    1211        if (!is_callable('wp_constrain_dimensions'))
     
    9897    }
    9998
     99    /**
     100     * @expectedDeprecated wp_shrink_dimensions
     101     */
    100102    function test_shrink_dimensions_default() {
    101103        $out = wp_shrink_dimensions(640, 480);
     
    106108    }
    107109
     110    /**
     111     * @expectedDeprecated wp_shrink_dimensions
     112     */
    108113    function test_shrink_dimensions_smaller() {
    109114        // image size is smaller than the constraint - no effect
     
    115120    }
    116121
     122    /**
     123     * @expectedDeprecated wp_shrink_dimensions
     124     */
    117125    function test_shrink_dimensions_equal() {
    118126        // image size is equal to the constraint - no effect
     
    124132    }
    125133
     134    /**
     135     * @expectedDeprecated wp_shrink_dimensions
     136     */
    126137    function test_shrink_dimensions_larger() {
    127138        // image size is larger than the constraint - result should be constrained
     
    133144    }
    134145
     146    /**
     147     * @expectedDeprecated wp_shrink_dimensions
     148     */
    135149    function test_shrink_dimensions_boundary() {
    136150        // one dimension is larger than the constraint, one smaller - result should be constrained
Note: See TracChangeset for help on using the changeset viewer.