From: David Soria Parra Date: Sun, 22 Jun 2008 05:34:06 +0000 (+0000) Subject: Testfest task 93. Written by Sebastian Deutsch. X-Git-Tag: php-5.3.0alpha1~669 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b72322de22e51ea3aea1f7a6e7eed99916155f7a;p=php Testfest task 93. Written by Sebastian Deutsch. --- diff --git a/ext/curl/tests/curl_001.phpt b/ext/curl/tests/curl_001.phpt new file mode 100644 index 0000000000..35dca3dcd0 --- /dev/null +++ b/ext/curl/tests/curl_001.phpt @@ -0,0 +1,41 @@ +--TEST-- +Test curl_exec() function with basic functionality +--CREDITS-- +Sebastian Deutsch +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing curl_exec() : basic functionality *** +string(25) "Hello World! +Hello World!" +===DONE=== diff --git a/ext/curl/tests/curl_002.phpt b/ext/curl/tests/curl_002.phpt new file mode 100644 index 0000000000..2836c0c535 --- /dev/null +++ b/ext/curl/tests/curl_002.phpt @@ -0,0 +1,37 @@ +--TEST-- +Test curl_opt() function with CURLOPT_RETURNTRANSFER paremter set to 1 +--CREDITS-- +Sebastian Deutsch +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); *** +string(25) "Hello World! +Hello World!" +===DONE=== diff --git a/ext/curl/tests/curl_003.phpt b/ext/curl/tests/curl_003.phpt new file mode 100644 index 0000000000..e64ab9b30a --- /dev/null +++ b/ext/curl/tests/curl_003.phpt @@ -0,0 +1,52 @@ +--TEST-- +Test curl_opt() function with POST parameters +--CREDITS-- +Sebastian Deutsch +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing curl sending through GET an POST *** +string(208) "array(2) { + ["test"]=> + string(7) "getpost" + ["get_param"]=> + string(11) "Hello World" +} +array(3) { + ["Hello"]=> + string(5) "World" + ["Foo"]=> + string(3) "Bar" + ["Person"]=> + string(8) "John Doe" +} +" +===DONE=== diff --git a/ext/curl/tests/curl_004.phpt b/ext/curl/tests/curl_004.phpt new file mode 100644 index 0000000000..fbbb5bdab3 --- /dev/null +++ b/ext/curl/tests/curl_004.phpt @@ -0,0 +1,37 @@ +--TEST-- +Test curl_opt() function with setting referer +--CREDITS-- +Sebastian Deutsch +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing curl setting referer *** +string(19) "http://www.refer.er" +===DONE=== diff --git a/ext/curl/tests/curl_005.phpt b/ext/curl/tests/curl_005.phpt new file mode 100644 index 0000000000..1fd8e2d32e --- /dev/null +++ b/ext/curl/tests/curl_005.phpt @@ -0,0 +1,37 @@ +--TEST-- +Test curl_opt() function with user agent +--CREDITS-- +Sebastian Deutsch +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing curl with user agent *** +string(9) "cURL phpt" +===DONE=== diff --git a/ext/curl/tests/responder/get.php b/ext/curl/tests/responder/get.php new file mode 100644 index 0000000000..630ed09684 --- /dev/null +++ b/ext/curl/tests/responder/get.php @@ -0,0 +1,18 @@ + \ No newline at end of file