67b1bebbef4aee482dfa13eea5c0140a4df3fd6a
[m6w6/ext-http] / tests / 010_abs_uri.phpt
1 --TEST--
2 http_absolute_uri() with relative paths
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('page'), "\n";
11 echo http_absolute_uri('with/some/path/'), "\n";
12 ?>
13 --EXPECTF--
14 Content-type: text/html
15 X-Powered-By: PHP/%s
16
17 http://localhost/page
18 http://localhost/with/some/path/