xref: /PHP-5.3/ext/spl/tests/bug28822.phpt (revision 610c7fbe)
1--TEST--
2Bug #28822 (ArrayObject::offsetExists() works inverted)
3--FILE--
4<?php
5
6$array = new ArrayObject();
7$array->offsetSet('key', 'value');
8var_dump($array->offsetExists('key'));
9var_dump($array->offsetExists('nokey'));
10
11?>
12===DONE===
13--EXPECT--
14bool(true)
15bool(false)
16===DONE===
17