Changeset 40533
- Timestamp:
- 04/22/2017 10:54:15 PM (8 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions.php
r40522 r40533 62 62 63 63 function test_path_is_absolute() { 64 if ( !is_callable('path_is_absolute') )65 $this->markTestSkipped();66 67 64 $absolute_paths = array( 68 65 '/', … … 82 79 83 80 function test_path_is_not_absolute() { 84 if ( !is_callable('path_is_absolute') )85 $this->markTestSkipped();86 87 81 $relative_paths = array( 88 82 '', -
trunk/tests/phpunit/tests/image/size.php
r30660 r40533 9 9 10 10 function test_constrain_dims_zero() { 11 if (!is_callable('wp_constrain_dimensions'))12 $this->markTestSkipped('wp_constrain_dimensions() is not callable.');13 14 11 // no constraint - should have no effect 15 12 $out = wp_constrain_dimensions(640, 480, 0, 0); … … 27 24 28 25 function test_constrain_dims_smaller() { 29 if (!is_callable('wp_constrain_dimensions'))30 $this->markTestSkipped('wp_constrain_dimensions() is not callable.');31 32 26 // image size is smaller than the constraint - no effect 33 27 $out = wp_constrain_dimensions(500, 600, 1024, 768); … … 42 36 43 37 function test_constrain_dims_equal() { 44 if (!is_callable('wp_constrain_dimensions'))45 $this->markTestSkipped('wp_constrain_dimensions() is not callable.');46 47 38 // image size is equal to the constraint - no effect 48 39 $out = wp_constrain_dimensions(1024, 768, 1024, 768); … … 57 48 58 49 function test_constrain_dims_larger() { 59 if (!is_callable('wp_constrain_dimensions'))60 $this->markTestSkipped('wp_constrain_dimensions() is not callable.');61 62 50 // image size is larger than the constraint - result should be constrained 63 51 $out = wp_constrain_dimensions(1024, 768, 500, 600); … … 82 70 83 71 function test_constrain_dims_boundary() { 84 if (!is_callable('wp_constrain_dimensions'))85 $this->markTestSkipped('wp_constrain_dimensions() is not callable.');86 87 72 // one dimension is larger than the constraint, one smaller - result should be constrained 88 73 $out = wp_constrain_dimensions(1024, 768, 500, 800);
Note: See TracChangeset
for help on using the changeset viewer.