- return zvals directly and don'T assume a type
[m6w6/ext-http] / tests / HttpRequest_005.phpt
diff --git a/tests/HttpRequest_005.phpt b/tests/HttpRequest_005.phpt
new file mode 100644 (file)
index 0000000..7fc0dc5
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+HttpRequest accessors
+--SKIPIF--
+<?php
+include 'skip.inc';
+checkcls('HttpRequest');
+?>
+--FILE--
+<?php
+echo "-TEST\n";
+error_reporting(0);
+$r = new HttpRequest;
+foreach (get_class_methods('HttpRequest') as $method) {
+       try {
+               if (strlen($method) > 3 && substr($method, 0, 3) == 'get')
+                       $x = $r->$method();
+               else
+                       $x = $r->$method(null, null);
+       } catch (HttpException $e) {
+       }
+}
+echo "Done\n";
+?>
+--EXPECTF--
+%sTEST
+Done