X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=php5-apc.git;a=blobdiff_plain;f=tests%2Fapc_003.phpt;h=8f4876e04637fea5fd58a173eccb77a7a0fe52f7;hp=4f5b5ff5fffe8e609cd32430ef6934a12da11c2f;hb=10aea07a14325aa0bfb5fe75ddcf19432c6e2c64;hpb=3682e0a7a26931aabca2b6e54eb08efd7dc0430b diff --git a/tests/apc_003.phpt b/tests/apc_003.phpt index 4f5b5ff..8f4876e 100644 --- a/tests/apc_003.phpt +++ b/tests/apc_003.phpt @@ -11,13 +11,13 @@ apc.file_update_protection=0 class foo { } $foo = new foo; -var_dump($foo); +print_r($foo); apc_store('foo',$foo); unset($foo); $bar = apc_fetch('foo'); -var_dump($bar); +print_r($bar); $bar->a = true; -var_dump($bar); +print_r($bar); class bar extends foo { @@ -48,65 +48,52 @@ class baz extends bar } $baz = new baz; -var_dump($baz); +print_r($baz); $baz->change(); -var_dump($baz); +print_r($baz); apc_store('baz', $baz); unset($baz); -var_dump(apc_fetch('baz')); +print_r(apc_fetch('baz')); ?> ===DONE=== --EXPECTF-- -object(foo)#%d (0) { -} -object(foo)#%d (0) { -} -object(foo)#%d (1) { - ["a"]=> - bool(true) -} -object(baz)#%d (6) { - ["pri:private"]=> - string(3) "baz" - ["pub"]=> - string(3) "bar" - ["pro:protected"]=> - string(3) "bar" - ["pri:private"]=> - string(3) "bar" - ["bar"]=> - bool(true) - ["baz"]=> - bool(true) -} -object(baz)#%d (6) { - ["pri:private"]=> - string(3) "baz" - ["pub"]=> - string(3) "bar" - ["pro:protected"]=> - string(3) "bar" - ["pri:private"]=> - string(3) "mod" - ["bar"]=> - bool(true) - ["baz"]=> - bool(true) -} -object(baz)#%d (6) { - ["pri:private"]=> - string(3) "baz" - ["pub"]=> - string(3) "bar" - ["pro:protected"]=> - string(3) "bar" - ["pri:private"]=> - string(3) "mod" - ["bar"]=> - bool(true) - ["baz"]=> - bool(true) -} +foo Object +( +) +foo Object +( +) +foo Object +( + [a] => 1 +) +baz Object +( + [pri%sprivate] => baz + [pub] => bar + [pro:protected] => bar + [pri%sprivate] => bar + [bar] => 1 + [baz] => 1 +) +baz Object +( + [pri%sprivate] => baz + [pub] => bar + [pro:protected] => bar + [pri%sprivate] => mod + [bar] => 1 + [baz] => 1 +) +baz Object +( + [pri%sprivate] => baz + [pub] => bar + [pro:protected] => bar + [pri%sprivate] => mod + [bar] => 1 + [baz] => 1 +) ===DONE===