xref: /PHP-8.1/ext/dba/tests/dba_cdb.phpt (revision b5a14e6c)
1--TEST--
2DBA CDB handler test
3--EXTENSIONS--
4dba
5--SKIPIF--
6<?php
7    $handler = 'cdb';
8    require_once(__DIR__ .'/skipif.inc');
9    die('info CDB does not support replace or delete');
10?>
11--FILE--
12<?php
13    $handler = 'cdb';
14    require_once(__DIR__ .'/test.inc');
15    require_once(__DIR__ .'/dba_handler.inc');
16?>
17--CLEAN--
18<?php
19    require(__DIR__ .'/clean.inc');
20?>
21--EXPECT--
22database handler: cdb
235YYYYY
24Content String 2
25array(5) {
26  ["key1"]=>
27  string(16) "Content String 1"
28  ["key2"]=>
29  string(16) "Content String 2"
30  ["key3"]=>
31  string(20) "Third Content String"
32  ["key4"]=>
33  string(22) "Another Content String"
34  ["key5"]=>
35  string(23) "The last content string"
36}
37--NO-LOCK--
385YYYYY
39Content String 2
40array(5) {
41  ["key1"]=>
42  string(16) "Content String 1"
43  ["key2"]=>
44  string(16) "Content String 2"
45  ["key3"]=>
46  string(20) "Third Content String"
47  ["key4"]=>
48  string(22) "Another Content String"
49  ["key5"]=>
50  string(23) "The last content string"
51}
52