xref: /PHP-8.3/ext/dba/tests/dba_flags_arg.phpt (revision 04f6fe4b)
1--TEST--
2DBA new flags ValueError test
3--EXTENSIONS--
4dba
5--FILE--
6<?php
7try {
8    dba_open('irrelevant', 'c', 'handler', flags: -1);
9} catch (\ValueError $e) {
10    echo $e->getMessage(), \PHP_EOL;
11}
12?>
13--EXPECT--
14dba_open(): Argument #6 ($flags) must be greater than or equal to 0
15