Files
archived-pecl-web-services-…/tests/oauth_urlencode.phpt
Tjerk Anne Meesters feffcc4d6f * fixed segfault due to changing sig_method to a long, bad idea :-(
* simplified oauth_generate_sig_base() by merging hashes together to prevent null values from coming back as empty strings
* revamped server.inc to work on php-5.1.0 (stream_copy_to_stream just wouldn't work)
* fixed up the test cases yet again
* removed streams warning about implicit content-type


git-svn-id: https://svn.php.net/repository/pecl/oauth/branches/OAUTH_1A_STREAMS@280909 c90b9560-bf6c-de11-be94-00142212c4b1
2009-05-21 15:59:58 +00:00

13 lines
235 B
PHP

--TEST--
OAuth urlencode
--FILE--
<?php
echo oauth_urlencode('http://www.example.com'),"\n";
echo oauth_urlencode('http://www.example.com/~user'),"\n";
?>
--EXPECTF--
http%3A%2F%2Fwww.example.com
http%3A%2F%2Fwww.example.com%2F~user