X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=php5-apc.git;a=blobdiff_plain;f=tests%2Fapc_003.phpt;fp=tests%2Fapc_003.phpt;h=0000000000000000000000000000000000000000;hp=8f4876e04637fea5fd58a173eccb77a7a0fe52f7;hb=a34ea625346aecd2d2b227b8ca4f114eaa607213;hpb=b0895ef8074c6dd090f9b0a65d58179941541756 diff --git a/tests/apc_003.phpt b/tests/apc_003.phpt deleted file mode 100644 index 8f4876e..0000000 --- a/tests/apc_003.phpt +++ /dev/null @@ -1,99 +0,0 @@ ---TEST-- -APC: apc_store/fetch with objects ---SKIPIF-- - ---INI-- -apc.enabled=1 -apc.enable_cli=1 -apc.file_update_protection=0 ---FILE-- -a = true; -print_r($bar); - -class bar extends foo -{ - public $pub = 'bar'; - protected $pro = 'bar'; - private $pri = 'bar'; // we don't see this, we'd need php 5.1 new serialization - - function __construct() - { - $this->bar = true; - } - - function change() - { - $this->pri = 'mod'; - } -} - -class baz extends bar -{ - private $pri = 'baz'; - - function __construct() - { - parent::__construct(); - $this->baz = true; - } -} - -$baz = new baz; -print_r($baz); -$baz->change(); -print_r($baz); -apc_store('baz', $baz); -unset($baz); -print_r(apc_fetch('baz')); - -?> -===DONE=== - ---EXPECTF-- -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===