Skip to content

Commit d112a90

Browse files
committed
adding test
1 parent 69c5d43 commit d112a90

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ext/pgsql/tests/pg_trace.phpt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
pg_trace
3+
--EXTENSIONS--
4+
pgsql
5+
--SKIPIF--
6+
<?php include("skipif.inc"); ?>
7+
--FILE--
8+
<?php
9+
10+
include('config.inc');
11+
12+
$db = pg_connect($conn_str);
13+
$tracefile = __DIR__ . '/trace.tmp';
14+
15+
var_dump(pg_trace($tracefile, 'w', $db));
16+
$res = pg_query($db, 'select 1');
17+
18+
?>
19+
--EXPECTF--
20+
bool(true)

0 commit comments

Comments
 (0)