From 352b77694b9b6d9c50f9fcfaa6db34817308d11e Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 6 Feb 2013 22:04:19 +0100 Subject: [PATCH] simple persistent connection test --- tests/persistent001.phpt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/persistent001.phpt diff --git a/tests/persistent001.phpt b/tests/persistent001.phpt new file mode 100644 index 0000000..b2c72c3 --- /dev/null +++ b/tests/persistent001.phpt @@ -0,0 +1,34 @@ +--TEST-- +persistent handles +--SKIPIF-- + +--FILE-- +exec(""); +} +var_dump(raphf\stat_persistent_handles()->{"pq\\Connection"}); +?> +DONE +--EXPECTF-- +Test +array(1) { + ["%s"]=> + array(2) { + ["used"]=> + int(1) + ["free"]=> + int(2) + } +} +DONE -- 2.30.2