diff options
Diffstat (limited to 'ext/spl/tests/observer_003.phpt')
-rw-r--r-- | ext/spl/tests/observer_003.phpt | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/ext/spl/tests/observer_003.phpt b/ext/spl/tests/observer_003.phpt index c7041051b8..36ead92336 100644 --- a/ext/spl/tests/observer_003.phpt +++ b/ext/spl/tests/observer_003.phpt @@ -5,12 +5,12 @@ SPL: SplObjectStorage serialization class TestClass { - public $test = 25; + public $test = 25; - public function __construct($test = 42) - { - $this->test = $test; - } + public function __construct($test = 42) + { + $this->test = $test; + } } $storage = new SplObjectStorage(); @@ -24,7 +24,7 @@ var_dump(count($storage)); foreach($storage as $object) { - var_dump($object->test); + var_dump($object->test); } var_dump(serialize($storage)); @@ -36,12 +36,10 @@ var_dump(count($storage2)); foreach($storage2 as $object) { - var_dump($object->test); + var_dump($object->test); } ?> -===DONE=== -<?php exit(0); ?> --EXPECTF-- int(4) int(1) @@ -55,4 +53,3 @@ int(1) string(1) "2" string(3) "foo" bool(true) -===DONE=== |