From 713aedfe65adcbf16f7cbd9c543abe03ba464485 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Sun, 11 Aug 2013 18:33:33 +0900 Subject: [PATCH] Add 00version.phpt to get server/protocol/client version. Revise test script description --- ext/pgsql/tests/00version.phpt | 26 ++++++++++++++++++++++++++ ext/pgsql/tests/14pg_update_9.phpt | 2 +- ext/pgsql/tests/80_bug14383.phpt | 2 +- ext/pgsql/tests/80_bug24499.phpt | 2 +- ext/pgsql/tests/80_bug32223.phpt | 2 +- ext/pgsql/tests/80_bug32223b.phpt | 2 +- ext/pgsql/tests/80_bug36625.phpt | 2 +- ext/pgsql/tests/80_bug39971.phpt | 2 +- ext/pgsql/tests/80_bug42783.phpt | 2 +- 9 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 ext/pgsql/tests/00version.phpt diff --git a/ext/pgsql/tests/00version.phpt b/ext/pgsql/tests/00version.phpt new file mode 100644 index 0000000000..9aef34cf0d --- /dev/null +++ b/ext/pgsql/tests/00version.phpt @@ -0,0 +1,26 @@ +--TEST-- +PostgreSQL version +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +array(3) { + ["client"]=> + string(%d) "%s" + ["protocol"]=> + int(%d) + ["server"]=> + string(%d) "%s" +} +OK diff --git a/ext/pgsql/tests/14pg_update_9.phpt b/ext/pgsql/tests/14pg_update_9.phpt index e766c1f380..c33f1afbd6 100644 --- a/ext/pgsql/tests/14pg_update_9.phpt +++ b/ext/pgsql/tests/14pg_update_9.phpt @@ -1,5 +1,5 @@ --TEST-- -PostgreSQL pg_update() (9.0) +PostgreSQL pg_update() (9.0+) --SKIPIF--