xref: /PHP-5.4/ext/dba/tests/dba_db4_000.phpt (revision 7b329d5a)
1--TEST--
2DBA DB4 handler test
3--SKIPIF--
4<?php
5$handler = 'db4';
6require_once(dirname(__FILE__) .'/skipif.inc');
7?>
8--FILE--
9<?php
10$handler = 'db4';
11require_once(dirname(__FILE__) .'/test.inc');
12require_once(dirname(__FILE__) .'/dba_handler.inc');
13?>
14===DONE===
15--CLEAN--
16<?php
17require(dirname(__FILE__) .'/clean.inc');
18?>
19--EXPECT--
20database handler: db4
213NYNYY
22Content String 2
23Content 2 replaced
24Read during write: not allowed
25Content 2 replaced 2nd time
26The 6th value
27array(3) {
28  ["key number 6"]=>
29  string(13) "The 6th value"
30  ["key2"]=>
31  string(27) "Content 2 replaced 2nd time"
32  ["key5"]=>
33  string(23) "The last content string"
34}
35--NO-LOCK--
363NYNYY
37Content String 2
38Content 2 replaced
39Read during write: not allowed
40Content 2 replaced 2nd time
41The 6th value
42array(3) {
43  ["key number 6"]=>
44  string(13) "The 6th value"
45  ["key2"]=>
46  string(27) "Content 2 replaced 2nd time"
47  ["key5"]=>
48  string(23) "The last content string"
49}
50===DONE===
51