cvs: php4 /ext/session/tests 001.phpt 002.phpt

From: Date: Sun, 24 Dec 2000 15:57:05 +0000
Subject: cvs: php4 /ext/session/tests 001.phpt 002.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3293@lists.php.net to get a copy of this message
sas Sun Dec 24 07:57:05 2000 EDT Added files: /php4/ext/session/tests 001.phpt 002.phpt Log: Add two regression tests for the session module Index: php4/ext/session/tests/001.phpt +++ php4/ext/session/tests/001.phpt --TEST-- Session Object Serialization --FILE-- <? class foo { var $bar = "ok"; function method() { $this->yes = "done"; } } $baz = new foo; $baz->method(); $arr[3] = new foo; $arr[3]->method(); session_register("baz"); session_register("arr"); print session_encode()."\n"; session_destroy(); --GET-- --POST-- --EXPECT-- baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}} Index: php4/ext/session/tests/002.phpt +++ php4/ext/session/tests/002.phpt --TEST-- session_unset() without any session --FILE-- <? session_unset(); print "ok\n"; --GET-- --POST-- --EXPECT-- ok

« previous php.cvs (#3293) next »