X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php81-pecl-oauth_2.0.7-2.el8/tests
opt
/
alt
/
tests
/
alt-php81-pecl-oauth_2.0.7-2.el8
/
tests
/
ðŸ“
..
📄
bug21426.phpt
(296 B)
📄
bug_64308.phpt
(348 B)
📄
oauth.inc
(274 B)
📄
oauth_curl_debug_handler.phpt
(869 B)
📄
oauth_reqtoken.phpt
(2.48 KB)
📄
oauth_sbs.phpt
(2.11 KB)
📄
oauth_standard.phpt
(3.12 KB)
📄
oauth_urlencode.phpt
(235 B)
📄
oauthprovider_001.phpt
(440 B)
📄
oauthprovider_002.phpt
(322 B)
📄
oauthprovider_003.phpt
(425 B)
📄
oauthprovider_004.phpt
(401 B)
📄
oauthprovider_005.phpt
(473 B)
📄
oauthprovider_006.phpt
(775 B)
📄
oauthprovider_007.phpt
(928 B)
📄
oauthprovider_008.phpt
(201 B)
📄
plaintext.phpt
(1.03 KB)
📄
plaintext2.phpt
(1.61 KB)
📄
reqtoken_bug44603.phpt
(2.03 KB)
📄
reqtoken_php.phpt
(2.17 KB)
📄
sbs.phpt
(1.9 KB)
📄
server.inc
(1.72 KB)
📄
skip.inc
(1.22 KB)
📄
test.pem
(493 B)
📄
urlencode.phpt
(235 B)
Editing: oauth_sbs.phpt
--TEST-- OAuth SBS function --FILE-- <?php echo "-- only two parameters --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/'),"\n"; echo "-- using empty array --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/', array()),"\n"; echo "-- using string instead of array --\n"; try { echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/',''),"\n"; } catch (TypeError $e) { echo $e->getMessage()."\n"; } echo "-- using numeric keys masked as a string --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/',array('1'=>'hello')),"\n"; echo "-- using string keys --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/',array('test'=>'hello')),"\n"; echo "-- using same var in url and params --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/?test=hi',array('test'=>'hello')),"\n"; echo "-- using null inside params --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/',array('test'=>null)),"\n"; echo "-- putting oauth_signature inside by mistake --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/',array('oauth_signature'=>'hello world')),"\n"; echo "-- merging url query and extra params --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/script?arg1=1',array('arg2' => '2')),"\n"; echo "-- with array value --\n"; echo oauth_get_sbs('GET', 'http://127.0.0.1:12342/script',array('arg2' => [1, 2, 3])),"\n"; ?> --EXPECTF-- -- only two parameters -- GET&http%3A%2F%2F127.0.0.1%3A12342%2F& -- using empty array -- GET&http%3A%2F%2F127.0.0.1%3A12342%2F& -- using string instead of array -- %Astring given%A -- using numeric keys masked as a string -- GET&http%3A%2F%2F127.0.0.1%3A12342%2F&1%3Dhello -- using string keys -- GET&http%3A%2F%2F127.0.0.1%3A12342%2F&test%3Dhello -- using same var in url and params -- GET&http%3A%2F%2F127.0.0.1%3A12342%2F&test%3Dhi -- using null inside params -- GET&http%3A%2F%2F127.0.0.1%3A12342%2F&test%3D -- putting oauth_signature inside by mistake -- GET&http%3A%2F%2F127.0.0.1%3A12342%2F& -- merging url query and extra params -- GET&http%3A%2F%2F127.0.0.1%3A12342%2Fscript&arg1%3D1%26arg2%3D2 -- with array value -- GET&http%3A%2F%2F127.0.0.1%3A12342%2Fscript&arg2%3D1%26arg2%3D2%26arg2%3D3
Upload File
Create Folder