php-src/ext/curl/tests/skipif-nocaddy.inc
2023-07-07 10:38:26 +02:00

12 lines
216 B
PHP

<?php
$ch = curl_init("https://localhost");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$body = curl_exec($ch);
curl_close($ch);
if ($body !== "Caddy is up and running") {
die("skip test needs Caddy");
}