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