integration
1 year ago
unit
1 year ago
bootstrap.php
1 year ago
composer.json
1 year ago
composer.lock
1 year ago
docker-compose.yml
1 year ago
helpers.php
1 year ago
helpers.php
16 lines
| 1 | <?php |
| 2 | |
| 3 | namespace cybot\cookiebot\tests { |
| 4 | /** |
| 5 | * Returns the file content from the WordPress repository. |
| 6 | * |
| 7 | * @param $url |
| 8 | * |
| 9 | * @return string |
| 10 | */ |
| 11 | function remote_get_svn_contents( $url ) { |
| 12 | $response = wp_remote_get( $url ); |
| 13 | return wp_remote_retrieve_body( $response ); |
| 14 | } |
| 15 | } |
| 16 |