diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it_url.t | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/it_url.t b/tests/it_url.t index 379a4cb..d2fbae0 100755 --- a/tests/it_url.t +++ b/tests/it_url.t @@ -279,6 +279,22 @@ handle_server( ) ); +handle_server( + is( + it_url::get(U('http://user:password@localhost:8000/get_server_value', array('key' => 'PHP_AUTH_USER'))), + 'user', + 'it_url::get() basic authentication user' + ) +); + +handle_server( + is( + it_url::get(U('http://user:password@localhost:8000/get_server_value', array('key' => 'PHP_AUTH_PW'))), + 'password', + 'it_url::get() basic authentication password' + ) +); + $pages = it_url::get_multi(array('urls' => array('a' => 'http://www.gna.ch/', 'b' => 'http://search.ch/'))); ok(strpos($pages['a'], '</html>'), 'it_url::get_multi got first url'); # UTF8SAFE ok(strpos($pages['b'], '</html>'), 'it_url::get_multi got second url'); # UTF8SAFE |