xref: /PHP-8.2/ext/curl/tests/skipif-nocaddy.inc (revision 47d47880)
1<?php
2
3$ch = curl_init("https://localhost");
4curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
5
6$body = curl_exec($ch);
7
8curl_close($ch);
9
10if ($body !== "Caddy is up and running") {
11    die("skip test needs Caddy");
12}
13