Changeset 52010 for trunk/tests/phpunit/tests/image/resize.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/resize.php
r51568 r52010 21 21 } 22 22 23 function test_resize_jpg() {23 public function test_resize_jpg() { 24 24 $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.jpg', 25, 25 ); 25 25 … … 33 33 } 34 34 35 function test_resize_png() {35 public function test_resize_png() { 36 36 $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.png', 25, 25 ); 37 37 … … 49 49 } 50 50 51 function test_resize_gif() {51 public function test_resize_gif() { 52 52 $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.gif', 25, 25 ); 53 53 … … 65 65 } 66 66 67 function test_resize_webp() {67 public function test_resize_webp() { 68 68 $file = DIR_TESTDATA . '/images/test-image.webp'; 69 69 $editor = wp_get_image_editor( $file ); … … 83 83 } 84 84 85 function test_resize_larger() {85 public function test_resize_larger() { 86 86 // image_resize() should refuse to make an image larger. 87 87 $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.jpg', 100, 100 ); … … 91 91 } 92 92 93 function test_resize_thumb_128x96() {93 public function test_resize_thumb_128x96() { 94 94 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 128, 96 ); 95 95 … … 103 103 } 104 104 105 function test_resize_thumb_128x0() {105 public function test_resize_thumb_128x0() { 106 106 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 128, 0 ); 107 107 … … 115 115 } 116 116 117 function test_resize_thumb_0x96() {117 public function test_resize_thumb_0x96() { 118 118 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 0, 96 ); 119 119 … … 127 127 } 128 128 129 function test_resize_thumb_150x150_crop() {129 public function test_resize_thumb_150x150_crop() { 130 130 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 150, 150, true ); 131 131 … … 139 139 } 140 140 141 function test_resize_thumb_150x100_crop() {141 public function test_resize_thumb_150x100_crop() { 142 142 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 150, 100, true ); 143 143 … … 151 151 } 152 152 153 function test_resize_thumb_50x150_crop() {153 public function test_resize_thumb_50x150_crop() { 154 154 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 50, 150, true ); 155 155
Note: See TracChangeset
for help on using the changeset viewer.