xref: /PHP-8.0/ext/dba/tests/dba_db3.phpt (revision c5401854)
1--TEST--
2DBA DB3 handler test
3--SKIPIF--
4<?php
5    $handler = 'db3';
6    require_once __DIR__ .'/skipif.inc';
7?>
8--FILE--
9<?php
10    $handler = 'db3';
11    require_once __DIR__ .'/test.inc';
12    require_once __DIR__ .'/dba_handler.inc';
13?>
14--EXPECT--
15database handler: db3
163NYNYY
17Content String 2
18Content 2 replaced
19Read during write: not allowed
20"key number 6" written
21Failed to write "key number 6" 2nd time
22Content 2 replaced 2nd time
23The 6th value
24array(3) {
25  ["key number 6"]=>
26  string(13) "The 6th value"
27  ["key2"]=>
28  string(27) "Content 2 replaced 2nd time"
29  ["key5"]=>
30  string(23) "The last content string"
31}
32--NO-LOCK--
333NYNYY
34Content String 2
35Content 2 replaced
36Read during write: not allowed
37"key number 6" written
38Failed to write "key number 6" 2nd time
39Content 2 replaced 2nd time
40The 6th value
41array(3) {
42  ["key number 6"]=>
43  string(13) "The 6th value"
44  ["key2"]=>
45  string(27) "Content 2 replaced 2nd time"
46  ["key5"]=>
47  string(23) "The last content string"
48}
49