xref: /PHP-5.6/ext/spl/tests/observer_007.phpt (revision cd63e52c)
1--TEST--
2SPL: SplObjectStorage comapred with ==
3--FILE--
4<?php
5$a = new SplObjectStorage;
6$b = new SplObjectStorage;
7var_dump($a == $b);
8$b[$b] = 2;
9var_dump($a == $b);
10$a[$b] = 2;
11var_dump($a == $b);
12$a[$b] = 3;
13var_dump($a == $b);
14?>
15===DONE===
16<?php exit(0); ?>
17--EXPECTF--
18bool(true)
19bool(false)
20bool(true)
21bool(false)
22===DONE===
23