xref: /PHP-8.1/ext/spl/tests/bug28822.phpt (revision a555cc0b)
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--EXPECT--
13bool(true)
14bool(false)
15