From 9e41e0fda31c95e98088b02879b82cbdfcead9e3 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 27 Dec 2006 19:22:29 +0000 Subject: [PATCH] fix tests --- ext/session/tests/001.phpt | 5 +++-- ext/session/tests/004.phpt | 2 +- ext/session/tests/005.phpt | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ext/session/tests/001.phpt b/ext/session/tests/001.phpt index 790ce6f6c4..8dfd6be9a6 100644 --- a/ext/session/tests/001.phpt +++ b/ext/session/tests/001.phpt @@ -25,7 +25,8 @@ $arr[3]->method(); session_start(); $_SESSION["baz"] = $baz; $_SESSION["arr"] = $arr; -print session_encode(); +var_dump(session_encode()); session_destroy(); +?> --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";}} +string(126) "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";}}" diff --git a/ext/session/tests/004.phpt b/ext/session/tests/004.phpt index 56507ea866..5505ffe00d 100644 --- a/ext/session/tests/004.phpt +++ b/ext/session/tests/004.phpt @@ -91,7 +91,7 @@ array(1) { int(2) } } -WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}} +WRITE: abtest, baz|O:3:"foo":2:{S:3:"bar";S:2:"ok";S:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{S:3:"bar";S:2:"ok";S:3:"yes";i:2;}} OPEN: PHPSESSID READ: abtest object(foo)#%d (2) { diff --git a/ext/session/tests/005.phpt b/ext/session/tests/005.phpt index efc7f239d0..9b8d5e3eb2 100644 --- a/ext/session/tests/005.phpt +++ b/ext/session/tests/005.phpt @@ -107,7 +107,7 @@ array(1) { int(2) } } -WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}} +WRITE: abtest, baz|O:3:"foo":2:{S:3:"bar";S:2:"ok";S:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{S:3:"bar";S:2:"ok";S:3:"yes";i:2;}} CLOSE OPEN: PHPSESSID READ: abtest @@ -127,7 +127,7 @@ array(1) { } } int(123) -WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}}c|i:123; +WRITE: abtest, baz|O:3:"foo":2:{S:3:"bar";S:2:"ok";S:3:"yes";i:3;}arr|a:1:{i:3;O:3:"foo":2:{S:3:"bar";S:2:"ok";S:3:"yes";i:3;}}c|i:123; CLOSE OPEN: PHPSESSID READ: abtest -- 2.50.1