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