diff --git a/tests/phpunit/tests/functions/deprecated.php b/tests/phpunit/tests/functions/deprecated.php
index 758ab0228a..843c68bf48 100644
a
|
b
|
protected function was_deprecated( $type, $name ) { |
143 | 143 | */ |
144 | 144 | public function test_wp_save_image_file_deprecated_with_gd_resource() { |
145 | 145 | if ( ! function_exists( 'imagejpeg' ) ) { |
146 | | $this->fail( 'jpeg support unavailable' ); |
| 146 | $this->markTestSkipped( 'jpeg support unavailable' ); |
147 | 147 | } |
148 | 148 | |
149 | 149 | // Call wp_save_image_file(). |
… |
… |
public function test_wp_save_image_file_deprecated_with_gd_resource() { |
166 | 166 | */ |
167 | 167 | public function test_wp_save_image_file_not_deprecated_with_wp_image_editor() { |
168 | 168 | if ( ! function_exists( 'imagejpeg' ) ) { |
169 | | $this->fail( 'jpeg support unavailable' ); |
| 169 | $this->markTestSkipped( 'jpeg support unavailable' ); |
170 | 170 | } |
171 | 171 | |
172 | 172 | // Call wp_save_image_file(). |
diff --git a/tests/phpunit/tests/image/functions.php b/tests/phpunit/tests/image/functions.php
index 4a7713d52b..a8fdf52b10 100644
a
|
b
|
public function test_load_directory() { |
303 | 303 | |
304 | 304 | public function test_wp_crop_image_file() { |
305 | 305 | if ( ! function_exists( 'imagejpeg' ) ) { |
306 | | $this->fail( 'jpeg support unavailable' ); |
| 306 | $this->markTestSkipped( 'jpeg support unavailable' ); |
307 | 307 | } |
308 | 308 | |
309 | 309 | $file = wp_crop_image( |
… |
… |
public function test_wp_crop_image_file() { |
327 | 327 | |
328 | 328 | public function test_wp_crop_image_url() { |
329 | 329 | if ( ! function_exists( 'imagejpeg' ) ) { |
330 | | $this->fail( 'jpeg support unavailable' ); |
| 330 | $this->markTestSkipped( 'jpeg support unavailable' ); |
331 | 331 | } |
332 | 332 | |
333 | 333 | if ( ! extension_loaded( 'openssl' ) ) { |
diff --git a/tests/phpunit/tests/image/intermediateSize.php b/tests/phpunit/tests/image/intermediateSize.php
index c7d8307afc..f20a4046e6 100644
a
|
b
|
function test_make_intermediate_size_no_size() { |
30 | 30 | |
31 | 31 | function test_make_intermediate_size_width() { |
32 | 32 | if ( ! function_exists( 'imagejpeg' ) ) { |
33 | | $this->fail( 'jpeg support unavailable' ); |
| 33 | $this->markTestSkipped( 'jpeg support unavailable' ); |
34 | 34 | } |
35 | 35 | |
36 | 36 | $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 100, 0, false ); |
… |
… |
function test_make_intermediate_size_width() { |
40 | 40 | |
41 | 41 | function test_make_intermediate_size_height() { |
42 | 42 | if ( ! function_exists( 'imagejpeg' ) ) { |
43 | | $this->fail( 'jpeg support unavailable' ); |
| 43 | $this->markTestSkipped( 'jpeg support unavailable' ); |
44 | 44 | } |
45 | 45 | |
46 | 46 | $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 0, 75, false ); |
… |
… |
function test_make_intermediate_size_height() { |
50 | 50 | |
51 | 51 | function test_make_intermediate_size_successful() { |
52 | 52 | if ( ! function_exists( 'imagejpeg' ) ) { |
53 | | $this->fail( 'jpeg support unavailable' ); |
| 53 | $this->markTestSkipped( 'jpeg support unavailable' ); |
54 | 54 | } |
55 | 55 | |
56 | 56 | $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 100, 75, true ); |
diff --git a/tests/phpunit/tests/post/attachments.php b/tests/phpunit/tests/post/attachments.php
index 8acb0b0068..2c30ab6097 100644
a
|
b
|
function test_insert_image_no_thumb() { |
56 | 56 | |
57 | 57 | function test_insert_image_thumb_only() { |
58 | 58 | if ( ! function_exists( 'imagejpeg' ) ) { |
59 | | $this->fail( 'jpeg support unavailable' ); |
| 59 | $this->markTestSkipped( 'jpeg support unavailable' ); |
60 | 60 | } |
61 | 61 | |
62 | 62 | update_option( 'medium_size_w', 0 ); |
… |
… |
function test_insert_image_thumb_only() { |
108 | 108 | |
109 | 109 | function test_insert_image_medium_sizes() { |
110 | 110 | if ( ! function_exists( 'imagejpeg' ) ) { |
111 | | $this->fail( 'jpeg support unavailable' ); |
| 111 | $this->markTestSkipped( 'jpeg support unavailable' ); |
112 | 112 | } |
113 | 113 | |
114 | 114 | update_option( 'medium_size_w', 400 ); |
… |
… |
function test_insert_image_medium_sizes() { |
167 | 167 | |
168 | 168 | function test_insert_image_delete() { |
169 | 169 | if ( ! function_exists( 'imagejpeg' ) ) { |
170 | | $this->fail( 'jpeg support unavailable' ); |
| 170 | $this->markTestSkipped( 'jpeg support unavailable' ); |
171 | 171 | } |
172 | 172 | |
173 | 173 | update_option( 'medium_size_w', 400 ); |