release 2.1.6
[m6w6/ext-pq] / tests / trans002.phpt
1 --TEST--
2 txn properties
3 --SKIPIF--
4 <?php include "_skipif.inc"; ?>
5 --FILE--
6 <?php
7 echo "Test\n";
8
9 include "_setup.inc";
10
11 $t = new pq\Transaction(new pq\Connection(PQ_DSN));
12 var_dump(
13 $t->isolation,
14 $t->readonly,
15 $t->deferrable
16 );
17
18 $t->isolation = pq\Transaction::SERIALIZABLE;
19 $t->readonly = true;
20 $t->deferrable = true;
21 var_dump(
22 $t->isolation,
23 $t->readonly,
24 $t->deferrable
25 );
26 ?>
27 DONE
28 --EXPECTF--
29 Test
30 int(0)
31 bool(false)
32 bool(false)
33 int(2)
34 bool(true)
35 bool(true)
36 DONE