File: urlencode.phpt

package info (click to toggle)
php-oauth 2.0.2%2B1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 816 kB
  • ctags: 950
  • sloc: ansic: 7,197; xml: 841; php: 536; makefile: 1
file content (12 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
--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