xref: /PHP-8.3/ext/spl/tests/observer_007.phpt (revision a555cc0b)
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--EXPECT--
16bool(true)
17bool(false)
18bool(true)
19bool(false)
20