From 64de2d2d45eedee41340c5e25d88d2ec8c58b5e2 Mon Sep 17 00:00:00 2001 From: Ant Phillips Date: Tue, 22 Apr 2008 16:04:00 +0000 Subject: New set of session extension tests for PHP 5.2 branch. These hopefully test a reasonable set of basic, error and variations for the twenty or so session functions. Note however that they do not test all the session configuration settings, nor do they test anything with register_globals enabled. --- .../tests/session_get_cookie_params_basic.phpt | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 ext/session/tests/session_get_cookie_params_basic.phpt (limited to 'ext/session/tests/session_get_cookie_params_basic.phpt') diff --git a/ext/session/tests/session_get_cookie_params_basic.phpt b/ext/session/tests/session_get_cookie_params_basic.phpt new file mode 100644 index 0000000000..5cadc7947d --- /dev/null +++ b/ext/session/tests/session_get_cookie_params_basic.phpt @@ -0,0 +1,68 @@ +--TEST-- +Test session_get_cookie_params() function : basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +*** Testing session_get_cookie_params() : basic functionality *** +array(5) { + ["lifetime"]=> + int(0) + ["path"]=> + string(1) "/" + ["domain"]=> + string(0) "" + ["secure"]=> + bool(false) + ["httponly"]=> + bool(false) +} +NULL +array(5) { + ["lifetime"]=> + int(3600) + ["path"]=> + string(5) "/path" + ["domain"]=> + string(4) "blah" + ["secure"]=> + bool(false) + ["httponly"]=> + bool(false) +} +NULL +array(5) { + ["lifetime"]=> + int(1234567890) + ["path"]=> + string(5) "/guff" + ["domain"]=> + string(3) "foo" + ["secure"]=> + bool(true) + ["httponly"]=> + bool(true) +} +Done + -- cgit v1.2.1