Browse Source

Fix tests

migration/unlabaled-1.3.2
Marcus Boerger 23 years ago
parent
commit
d1c19eb5a1
  1. 4
      ext/session/tests/003.phpt
  2. 8
      ext/session/tests/004.phpt
  3. 12
      ext/session/tests/005.phpt
  4. 16
      ext/session/tests/006.phpt
  5. 8
      ext/session/tests/019.phpt

4
ext/session/tests/003.phpt

@ -27,7 +27,7 @@ var_dump($baz);
var_dump($arr); var_dump($arr);
session_destroy(); session_destroy();
--EXPECT-- --EXPECT--
object(foo)(2) {
object(foo)#1 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -35,7 +35,7 @@ object(foo)(2) {
} }
array(1) { array(1) {
[3]=> [3]=>
&object(foo)(2) {
object(foo)#2 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>

8
ext/session/tests/004.phpt

@ -75,7 +75,7 @@ session_destroy();
--EXPECT-- --EXPECT--
OPEN: PHPSESSID OPEN: PHPSESSID
READ: abtest READ: abtest
object(foo)(2) {
object(foo)#2 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -83,7 +83,7 @@ object(foo)(2) {
} }
array(1) { array(1) {
[3]=> [3]=>
&object(foo)(2) {
object(foo)#3 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -93,7 +93,7 @@ array(1) {
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 OPEN: PHPSESSID
READ: abtest READ: abtest
object(foo)(2) {
object(foo)#4 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -101,7 +101,7 @@ object(foo)(2) {
} }
array(1) { array(1) {
[3]=> [3]=>
object(foo)(2) {
object(foo)#2 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>

12
ext/session/tests/005.phpt

@ -87,7 +87,7 @@ session_destroy();
--EXPECT-- --EXPECT--
OPEN: PHPSESSID OPEN: PHPSESSID
READ: abtest READ: abtest
object(foo)(2) {
object(foo)#2 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -95,7 +95,7 @@ object(foo)(2) {
} }
array(1) { array(1) {
[3]=> [3]=>
&object(foo)(2) {
object(foo)#3 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -106,7 +106,7 @@ WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O
CLOSE CLOSE
OPEN: PHPSESSID OPEN: PHPSESSID
READ: abtest READ: abtest
object(foo)(2) {
object(foo)#4 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -114,7 +114,7 @@ object(foo)(2) {
} }
array(1) { array(1) {
[3]=> [3]=>
&object(foo)(2) {
object(foo)#2 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -126,7 +126,7 @@ WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}arr|a:1:{i:3;O
CLOSE CLOSE
OPEN: PHPSESSID OPEN: PHPSESSID
READ: abtest READ: abtest
object(foo)(2) {
object(foo)#3 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>
@ -134,7 +134,7 @@ object(foo)(2) {
} }
array(1) { array(1) {
[3]=> [3]=>
object(foo)(2) {
object(foo)#4 (2) {
["bar"]=> ["bar"]=>
string(2) "ok" string(2) "ok"
["yes"]=> ["yes"]=>

16
ext/session/tests/006.phpt

@ -43,28 +43,28 @@ session_start();
echo "values after session:\n"; echo "values after session:\n";
var_dump($a,$b); var_dump($a,$b);
?> ?>
--EXPECT--
--EXPECTF--
original values: original values:
object(a)(1) {
object(a)#%d (1) {
["test"]=> ["test"]=>
string(5) "hallo" string(5) "hallo"
} }
object(b)(1) {
object(b)#%d (1) {
["a"]=> ["a"]=>
&object(a)(1) {
&object(a)#%d (1) {
["test"]=> ["test"]=>
string(5) "hallo" string(5) "hallo"
} }
} }
values after session: values after session:
object(a)(1) {
object(a)#%d (1) {
["test"]=> ["test"]=>
string(5) "hallo" string(5) "hallo"
} }
object(b)(1) {
object(b)#%d (1) {
["a"]=> ["a"]=>
&object(a)(1) {
&object(a)#%d (1) {
["test"]=> ["test"]=>
string(5) "hallo" string(5) "hallo"
} }
}
}

8
ext/session/tests/019.phpt

@ -48,24 +48,24 @@ session_destroy();
--EXPECT-- --EXPECT--
array(2) { array(2) {
["o1"]=> ["o1"]=>
&object(tfoo)(1) {
&object(tfoo)#1 (1) {
["c"]=> ["c"]=>
int(42) int(42)
} }
["o2"]=> ["o2"]=>
&object(tfoo)(1) {
&object(tfoo)#1 (1) {
["c"]=> ["c"]=>
int(42) int(42)
} }
} }
array(2) { array(2) {
["o1"]=> ["o1"]=>
&object(tfoo)(1) {
&object(tfoo)#1 (1) {
["c"]=> ["c"]=>
int(44) int(44)
} }
["o2"]=> ["o2"]=>
&object(tfoo)(1) {
&object(tfoo)#1 (1) {
["c"]=> ["c"]=>
int(44) int(44)
} }

Loading…
Cancel
Save