* simplify HTTPi_Response::send() a lot
[m6w6/ext-http] / tests / 011_abs_uri.phpt
1 --TEST--
2 http_absolute_uri() with proto
3 --SKIPIF--
4 <?php
5 extension_loaded('http') or die('ext/http not available');
6 strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
7 ?>
8 --FILE--
9 <?php
10 echo http_absolute_uri('sec', 'https'), "\n";
11 echo http_absolute_uri('/pub', 'ftp'), "\n";
12 echo http_absolute_uri('/', null), "\n";
13 ?>
14 --EXPECTF--
15 Content-type: text/html
16 X-Powered-By: PHP/%s
17
18 https://localhost/sec
19 ftp://localhost/pub
20 http://localhost/