Changeset 49571
- Timestamp:
- 11/12/2020 05:23:44 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r49535 r49571 17 17 "wp-coding-standards/wpcs": "~2.3.0", 18 18 "phpcompatibility/phpcompatibility-wp": "^2.1.0", 19 "phpunit/phpunit": "^7.5", 20 "ext-gd": "*" 19 "phpunit/phpunit": "^7.5" 21 20 }, 22 21 "autoload-dev": { -
trunk/composer.lock
r49535 r49571 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " fcf040d9233a22165eeffaeb98694436",7 "content-hash": "463db2b4afb439fb63d93173c0852e27", 8 8 "packages": [], 9 9 "packages-dev": [ … … 131 131 "constructor", 132 132 "instantiate" 133 ],134 "funding": [135 {136 "url": "https://www.doctrine-project.org/sponsorship.html",137 "type": "custom"138 },139 {140 "url": "https://www.patreon.com/phpdoctrine",141 "type": "patreon"142 },143 {144 "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",145 "type": "tidelift"146 }147 133 ], 148 134 "time": "2020-05-29T17:27:14+00:00" … … 1852 1838 "php": ">=5.6" 1853 1839 }, 1854 "platform-dev": { 1855 "ext-gd": "*" 1856 }, 1840 "platform-dev": [], 1857 1841 "plugin-api-version": "1.1.0" 1858 1842 } -
trunk/tests/phpunit/includes/bootstrap.php
r49570 r49571 54 54 } 55 55 56 $required_extensions = array( 57 'gd', 58 ); 59 $missing_extensions = array(); 60 61 foreach ( $required_extensions as $extension ) { 62 if ( ! extension_loaded( $extension ) ) { 63 $missing_extensions[] = $extension; 64 } 65 } 66 67 if ( $missing_extensions ) { 68 printf( 69 "Error: The following required PHP extensions are missing from the testing environment: %s.\n", 70 implode( ', ', $missing_extensions ) 56 // If running core tests, check if all the required PHP extensions are loaded before running the test suite. 57 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 58 $required_extensions = array( 59 'gd', 71 60 ); 72 echo "Please make sure they are installed and enabled.\n", 73 exit( 1 ); 61 $missing_extensions = array(); 62 63 foreach ( $required_extensions as $extension ) { 64 if ( ! extension_loaded( $extension ) ) { 65 $missing_extensions[] = $extension; 66 } 67 } 68 69 if ( $missing_extensions ) { 70 printf( 71 "Error: The following required PHP extensions are missing from the testing environment: %s.\n", 72 implode( ', ', $missing_extensions ) 73 ); 74 echo "Please make sure they are installed and enabled.\n", 75 exit( 1 ); 76 } 74 77 } 75 78
Note: See TracChangeset
for help on using the changeset viewer.