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