Changeset 53527
- Timestamp:
- 06/19/2022 03:43:34 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/image/functions.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r53526 r53527 65 65 66 66 /** 67 * @dataProvider data_ is_image_positive67 * @dataProvider data_file_is_valid_image_positive 68 68 * 69 69 * @covers ::file_is_valid_image … … 72 72 * @param string $file File name. 73 73 */ 74 public function test_ is_image_positive( $file ) {74 public function test_file_is_valid_image_positive( $file ) { 75 75 $this->assertTrue( 76 76 file_is_valid_image( DIR_TESTDATA . '/images/' . $file ), … … 84 84 * @return array 85 85 */ 86 public function data_ is_image_positive() {86 public function data_file_is_valid_image_positive() { 87 87 // These are all image files recognized by PHP. 88 88 $files = array( … … 109 109 110 110 /** 111 * @dataProvider data_ is_image_negative111 * @dataProvider data_file_is_valid_image_negative 112 112 * 113 113 * @covers ::file_is_valid_image … … 116 116 * @param string $file File name. 117 117 */ 118 public function test_ is_image_negative( $file ) {118 public function test_file_is_valid_image_negative( $file ) { 119 119 $this->assertFalse( 120 120 file_is_valid_image( DIR_TESTDATA . '/images/' . $file ), … … 128 128 * @return array 129 129 */ 130 public function data_ is_image_negative() {130 public function data_file_is_valid_image_negative() { 131 131 // These are actually image files but aren't recognized or usable by PHP. 132 132 $files = array( … … 140 140 141 141 /** 142 * @dataProvider data_ is_displayable_image_positive142 * @dataProvider data_file_is_displayable_image_positive 143 143 * 144 144 * @covers ::file_is_displayable_image … … 146 146 * @param string $file File name. 147 147 */ 148 public function test_ is_displayable_image_positive( $file ) {148 public function test_file_is_displayable_image_positive( $file ) { 149 149 $this->assertTrue( 150 150 file_is_displayable_image( DIR_TESTDATA . '/images/' . $file ), … … 158 158 * @return array 159 159 */ 160 public function data_ is_displayable_image_positive() {160 public function data_file_is_displayable_image_positive() { 161 161 // These are all usable in typical web browsers. 162 162 $files = array( … … 182 182 183 183 /** 184 * @dataProvider data_ is_displayable_image_negative184 * @dataProvider data_file_is_displayable_image_negative 185 185 * 186 186 * @covers ::file_is_displayable_image … … 188 188 * @param string $file File name. 189 189 */ 190 public function test_ is_displayable_image_negative( $file ) {190 public function test_file_is_displayable_image_negative( $file ) { 191 191 $this->assertFalse( 192 192 file_is_displayable_image( DIR_TESTDATA . '/images/' . $file ), … … 200 200 * @return array 201 201 */ 202 public function data_ is_displayable_image_negative() {202 public function data_file_is_displayable_image_negative() { 203 203 // These are image files but aren't suitable for web pages because of compatibility or size issues. 204 204 $files = array(
Note: See TracChangeset
for help on using the changeset viewer.