Changeset 25409 for trunk/tests/phpunit/tests/image/size.php
- Timestamp:
- 09/12/2013 06:37:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/size.php
r25402 r25409 7 7 */ 8 8 class Tests_Image_Size extends WP_UnitTestCase { 9 protected $deprecated_functions = array( 'wp_shrink_dimensions' ); 10 9 11 10 function test_constrain_dims_zero() { 12 11 if (!is_callable('wp_constrain_dimensions')) … … 98 97 } 99 98 99 /** 100 * @expectedDeprecated wp_shrink_dimensions 101 */ 100 102 function test_shrink_dimensions_default() { 101 103 $out = wp_shrink_dimensions(640, 480); … … 106 108 } 107 109 110 /** 111 * @expectedDeprecated wp_shrink_dimensions 112 */ 108 113 function test_shrink_dimensions_smaller() { 109 114 // image size is smaller than the constraint - no effect … … 115 120 } 116 121 122 /** 123 * @expectedDeprecated wp_shrink_dimensions 124 */ 117 125 function test_shrink_dimensions_equal() { 118 126 // image size is equal to the constraint - no effect … … 124 132 } 125 133 134 /** 135 * @expectedDeprecated wp_shrink_dimensions 136 */ 126 137 function test_shrink_dimensions_larger() { 127 138 // image size is larger than the constraint - result should be constrained … … 133 144 } 134 145 146 /** 147 * @expectedDeprecated wp_shrink_dimensions 148 */ 135 149 function test_shrink_dimensions_boundary() { 136 150 // one dimension is larger than the constraint, one smaller - result should be constrained
Note: See TracChangeset
for help on using the changeset viewer.