diff --git a/composer.json b/composer.json
index 41368ef25e..cb0fbb1740 100644
a
|
b
|
|
16 | 16 | "dealerdirect/phpcodesniffer-composer-installer": "~0.6.0", |
17 | 17 | "wp-coding-standards/wpcs": "~2.3.0", |
18 | 18 | "phpcompatibility/phpcompatibility-wp": "^2.1.0", |
19 | | "phpunit/phpunit": "^7.5" |
| 19 | "phpunit/phpunit": "^7.5", |
| 20 | "ext-gd": "*" |
20 | 21 | }, |
21 | 22 | "autoload-dev": { |
22 | 23 | "files": [ |
diff --git a/composer.lock b/composer.lock
index d189396da6..bea756ca50 100644
a
|
b
|
|
4 | 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", |
5 | 5 | "This file is @generated automatically" |
6 | 6 | ], |
7 | | "content-hash": "798cd84a945e4caa3d0161ff63ec3743", |
| 7 | "content-hash": "8653a7e68436fb7041821f76d02cceda", |
8 | 8 | "packages": [], |
9 | 9 | "packages-dev": [ |
10 | 10 | { |
… |
… |
|
127 | 127 | "constructor", |
128 | 128 | "instantiate" |
129 | 129 | ], |
| 130 | "funding": [ |
| 131 | { |
| 132 | "url": "https://www.doctrine-project.org/sponsorship.html", |
| 133 | "type": "custom" |
| 134 | }, |
| 135 | { |
| 136 | "url": "https://www.patreon.com/phpdoctrine", |
| 137 | "type": "patreon" |
| 138 | }, |
| 139 | { |
| 140 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", |
| 141 | "type": "tidelift" |
| 142 | } |
| 143 | ], |
130 | 144 | "time": "2020-05-29T17:27:14+00:00" |
131 | 145 | }, |
132 | 146 | { |
… |
… |
|
1833 | 1847 | "platform": { |
1834 | 1848 | "php": ">=5.6" |
1835 | 1849 | }, |
1836 | | "platform-dev": [], |
| 1850 | "platform-dev": { |
| 1851 | "ext-gd": "*" |
| 1852 | }, |
1837 | 1853 | "plugin-api-version": "1.1.0" |
1838 | 1854 | } |
diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php
index 65c1c370c4..97f1f6e7e3 100644
a
|
b
|
|
34 | 34 | exit( 1 ); |
35 | 35 | } |
36 | 36 | |
| 37 | $required_extensions = array( |
| 38 | 'gd', |
| 39 | ); |
| 40 | $missing_extensions = array(); |
| 41 | |
| 42 | foreach ( $required_extensions as $required_extension ) { |
| 43 | if ( ! extension_loaded( $required_extension ) ) { |
| 44 | $missing_extensions[] = $required_extension; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | if ( ! empty( $missing_extensions ) ) { |
| 49 | echo "Error: The following required extension(s) are missing from the testing environment.\n"; |
| 50 | echo implode( ', ', $missing_extensions ); |
| 51 | exit( 1 ); |
| 52 | } |
| 53 | |
37 | 54 | require_once $config_file_path; |
38 | 55 | require_once __DIR__ . '/functions.php'; |
39 | 56 | |