From 4580a7fd8e9f9b7a3dd0027c1279828eb04f741b Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 7 Jul 2005 15:34:46 +0000 Subject: [PATCH] using new tests --- ext/pdo_pgsql/tests/connection.inc | 13 --- ext/pdo_pgsql/tests/pdo_001.phpt | 41 ------- ext/pdo_pgsql/tests/pdo_002.phpt | 41 ------- ext/pdo_pgsql/tests/pdo_003.phpt | 53 --------- ext/pdo_pgsql/tests/pdo_004.phpt | 41 ------- ext/pdo_pgsql/tests/pdo_005.phpt | 120 ------------------- ext/pdo_pgsql/tests/pdo_006.phpt | 64 ---------- ext/pdo_pgsql/tests/pdo_007.phpt | 52 --------- ext/pdo_pgsql/tests/pdo_008.phpt | 30 ----- ext/pdo_pgsql/tests/pdo_009.phpt | 89 -------------- ext/pdo_pgsql/tests/pdo_010.phpt | 76 ------------ ext/pdo_pgsql/tests/pdo_011.phpt | 181 ----------------------------- ext/pdo_pgsql/tests/pdo_012.phpt | 70 ----------- ext/pdo_pgsql/tests/pdo_013.phpt | 58 --------- ext/pdo_pgsql/tests/pdo_014.phpt | 51 -------- ext/pdo_pgsql/tests/pdo_015.phpt | 76 ------------ ext/pdo_pgsql/tests/pdo_016.phpt | 117 ------------------- ext/pdo_pgsql/tests/pdo_017.phpt | 22 ---- ext/pdo_pgsql/tests/pdo_018.phpt | 152 ------------------------ ext/pdo_pgsql/tests/pdo_019.phpt | 52 --------- ext/pdo_pgsql/tests/pdo_020.phpt | 21 ---- ext/pdo_pgsql/tests/pdo_021.phpt | 20 ---- ext/pdo_pgsql/tests/pdo_022.phpt | 74 ------------ ext/pdo_pgsql/tests/pdo_023.phpt | 60 ---------- ext/pdo_pgsql/tests/pdo_024.phpt | 21 ---- ext/pdo_pgsql/tests/pdo_025.phpt | 68 ----------- ext/pdo_pgsql/tests/pdo_026.phpt | 50 -------- ext/pdo_pgsql/tests/prepare.inc | 21 ---- ext/pdo_pgsql/tests/skipif.inc | 12 -- 29 files changed, 1746 deletions(-) delete mode 100755 ext/pdo_pgsql/tests/connection.inc delete mode 100755 ext/pdo_pgsql/tests/pdo_001.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_002.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_003.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_004.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_005.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_006.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_007.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_008.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_009.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_010.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_011.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_012.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_013.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_014.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_015.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_016.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_017.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_018.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_019.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_020.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_021.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_022.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_023.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_024.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_025.phpt delete mode 100755 ext/pdo_pgsql/tests/pdo_026.phpt delete mode 100755 ext/pdo_pgsql/tests/prepare.inc delete mode 100755 ext/pdo_pgsql/tests/skipif.inc diff --git a/ext/pdo_pgsql/tests/connection.inc b/ext/pdo_pgsql/tests/connection.inc deleted file mode 100755 index e2185278c0..0000000000 --- a/ext/pdo_pgsql/tests/connection.inc +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/ext/pdo_pgsql/tests/pdo_001.phpt b/ext/pdo_pgsql/tests/pdo_001.phpt deleted file mode 100755 index 67ff5b1086..0000000000 --- a/ext/pdo_pgsql/tests/pdo_001.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_ASSOC ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECT-- -array(3) { - [0]=> - array(2) { - ["id"]=> - int(1) - ["val"]=> - string(1) "A" - } - [1]=> - array(2) { - ["id"]=> - int(2) - ["val"]=> - string(1) "B" - } - [2]=> - array(2) { - ["id"]=> - int(3) - ["val"]=> - string(1) "C" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_002.phpt b/ext/pdo_pgsql/tests/pdo_002.phpt deleted file mode 100755 index 02d5a2034e..0000000000 --- a/ext/pdo_pgsql/tests/pdo_002.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_NUM ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECT-- -array(3) { - [0]=> - array(2) { - [0]=> - int(1) - [1]=> - string(1) "A" - } - [1]=> - array(2) { - [0]=> - int(2) - [1]=> - string(1) "B" - } - [2]=> - array(2) { - [0]=> - int(3) - [1]=> - string(1) "C" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_003.phpt b/ext/pdo_pgsql/tests/pdo_003.phpt deleted file mode 100755 index bdddb14979..0000000000 --- a/ext/pdo_pgsql/tests/pdo_003.phpt +++ /dev/null @@ -1,53 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_BOTH ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECT-- -array(3) { - [0]=> - array(4) { - ["id"]=> - int(1) - [0]=> - int(1) - ["val"]=> - string(1) "A" - [1]=> - string(1) "A" - } - [1]=> - array(4) { - ["id"]=> - int(2) - [0]=> - int(2) - ["val"]=> - string(1) "B" - [1]=> - string(1) "B" - } - [2]=> - array(4) { - ["id"]=> - int(3) - [0]=> - int(3) - ["val"]=> - string(1) "C" - [1]=> - string(1) "C" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_004.phpt b/ext/pdo_pgsql/tests/pdo_004.phpt deleted file mode 100755 index d9f66a9d96..0000000000 --- a/ext/pdo_pgsql/tests/pdo_004.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_OBJ ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(3) { - [0]=> - object(stdClass)#%d (2) { - ["id"]=> - int(1) - ["val"]=> - string(1) "A" - } - [1]=> - object(stdClass)#%d (2) { - ["id"]=> - int(2) - ["val"]=> - string(1) "B" - } - [2]=> - object(stdClass)#%d (2) { - ["id"]=> - int(3) - ["val"]=> - string(1) "C" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_005.phpt b/ext/pdo_pgsql/tests/pdo_005.phpt deleted file mode 100755 index 3243084b05..0000000000 --- a/ext/pdo_pgsql/tests/pdo_005.phpt +++ /dev/null @@ -1,120 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_CLASS ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(3) { - [0]=> - object(stdClass)#%d (3) { - ["id"]=> - int(1) - ["val"]=> - string(1) "A" - ["val2"]=> - string(2) "AA" - } - [1]=> - object(stdClass)#%d (3) { - ["id"]=> - int(2) - ["val"]=> - string(1) "B" - ["val2"]=> - string(2) "BB" - } - [2]=> - object(stdClass)#%d (3) { - ["id"]=> - int(3) - ["val"]=> - string(1) "C" - ["val2"]=> - string(2) "CC" - } -} -array(3) { - [0]=> - object(TestBase)#%d (3) { - ["id"]=> - int(1) - ["val:protected"]=> - string(1) "A" - ["val2:private"]=> - string(2) "AA" - } - [1]=> - object(TestBase)#%d (3) { - ["id"]=> - int(2) - ["val:protected"]=> - string(1) "B" - ["val2:private"]=> - string(2) "BB" - } - [2]=> - object(TestBase)#%d (3) { - ["id"]=> - int(3) - ["val:protected"]=> - string(1) "C" - ["val2:private"]=> - string(2) "CC" - } -} -TestDerived::__construct(0,1) -TestDerived::__construct(1,2) -TestDerived::__construct(2,3) -array(3) { - [0]=> - object(TestDerived)#%d (5) { - ["row:protected"]=> - int(0) - ["id"]=> - int(1) - ["val:protected"]=> - string(1) "A" - ["val2:private"]=> - NULL - ["val2"]=> - string(2) "AA" - } - [1]=> - object(TestDerived)#%d (5) { - ["row:protected"]=> - int(1) - ["id"]=> - int(2) - ["val:protected"]=> - string(1) "B" - ["val2:private"]=> - NULL - ["val2"]=> - string(2) "BB" - } - [2]=> - object(TestDerived)#%d (5) { - ["row:protected"]=> - int(2) - ["id"]=> - int(3) - ["val:protected"]=> - string(1) "C" - ["val2:private"]=> - NULL - ["val2"]=> - string(2) "CC" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_006.phpt b/ext/pdo_pgsql/tests/pdo_006.phpt deleted file mode 100755 index 9ea5a563e3..0000000000 --- a/ext/pdo_pgsql/tests/pdo_006.phpt +++ /dev/null @@ -1,64 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_GROUP ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(2) { - ["A"]=> - array(2) { - [0]=> - array(1) { - [0]=> - int(1) - } - [1]=> - array(1) { - [0]=> - int(2) - } - } - ["C"]=> - array(1) { - [0]=> - array(1) { - [0]=> - int(3) - } - } -} -array(2) { - ["A"]=> - array(2) { - [0]=> - array(1) { - ["id"]=> - int(1) - } - [1]=> - array(1) { - ["id"]=> - int(2) - } - } - ["C"]=> - array(1) { - [0]=> - array(1) { - ["id"]=> - int(3) - } - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_007.phpt b/ext/pdo_pgsql/tests/pdo_007.phpt deleted file mode 100755 index 7cc900be7f..0000000000 --- a/ext/pdo_pgsql/tests/pdo_007.phpt +++ /dev/null @@ -1,52 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_UNIQUE ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(3) { - ["A"]=> - array(1) { - [0]=> - string(1) "A" - } - ["B"]=> - array(1) { - [0]=> - string(1) "A" - } - ["C"]=> - array(1) { - [0]=> - string(1) "C" - } -} -array(3) { - ["A"]=> - array(1) { - ["val"]=> - string(1) "A" - } - ["B"]=> - array(1) { - ["val"]=> - string(1) "A" - } - ["C"]=> - array(1) { - ["val"]=> - string(1) "C" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_008.phpt b/ext/pdo_pgsql/tests/pdo_008.phpt deleted file mode 100755 index 35a3ee793f..0000000000 --- a/ext/pdo_pgsql/tests/pdo_008.phpt +++ /dev/null @@ -1,30 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_UNIQUE conflict ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(2) { - ["A"]=> - array(1) { - [0]=> - string(1) "B" - } - ["C"]=> - array(1) { - [0]=> - string(1) "C" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_009.phpt b/ext/pdo_pgsql/tests/pdo_009.phpt deleted file mode 100755 index 9896f9b274..0000000000 --- a/ext/pdo_pgsql/tests/pdo_009.phpt +++ /dev/null @@ -1,89 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_CLASSTYPE ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(4) { - [0]=> - array(3) { - [0]=> - string(8) "stdClass" - [1]=> - int(1) - [2]=> - string(1) "A" - } - [1]=> - array(3) { - [0]=> - string(5) "Test1" - [1]=> - int(2) - [2]=> - string(1) "B" - } - [2]=> - array(3) { - [0]=> - string(5) "Test2" - [1]=> - int(3) - [2]=> - string(1) "C" - } - [3]=> - array(3) { - [0]=> - NULL - [1]=> - int(4) - [2]=> - string(1) "D" - } -} -Test1::__construct() -Test2::__construct() -Test3::__construct() -array(4) { - [0]=> - object(stdClass)#%d (2) { - ["id"]=> - int(1) - ["val"]=> - string(1) "A" - } - [1]=> - object(Test1)#%d (2) { - ["id"]=> - int(2) - ["val"]=> - string(1) "B" - } - [2]=> - object(Test2)#%d (2) { - ["id"]=> - int(3) - ["val"]=> - string(1) "C" - } - [3]=> - object(Test3)#%d (2) { - ["id"]=> - int(4) - ["val"]=> - string(1) "D" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_010.phpt b/ext/pdo_pgsql/tests/pdo_010.phpt deleted file mode 100755 index dfca2b7641..0000000000 --- a/ext/pdo_pgsql/tests/pdo_010.phpt +++ /dev/null @@ -1,76 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_(CLASSTYPE and GROUP/UNIQUE) ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -Test1::__construct() -Test2::__construct() -Test3::__construct() -array(2) { - ["Group1"]=> - array(2) { - [0]=> - object(stdClass)#%d (2) { - ["id"]=> - int(1) - ["val"]=> - string(1) "A" - } - [1]=> - object(Test1)#%d (2) { - ["id"]=> - int(2) - ["val"]=> - string(1) "B" - } - } - ["Group2"]=> - array(2) { - [0]=> - object(Test2)#%d (2) { - ["id"]=> - int(3) - ["val"]=> - string(1) "C" - } - [1]=> - object(Test3)#%d (2) { - ["id"]=> - int(4) - ["val"]=> - string(1) "D" - } - } -} -Test1::__construct() -Test2::__construct() -Test3::__construct() -array(2) { - ["Group1"]=> - object(Test1)#%d (2) { - ["id"]=> - int(2) - ["val"]=> - string(1) "B" - } - ["Group2"]=> - object(Test3)#%d (2) { - ["id"]=> - int(4) - ["val"]=> - string(1) "D" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_011.phpt b/ext/pdo_pgsql/tests/pdo_011.phpt deleted file mode 100755 index fabadc220b..0000000000 --- a/ext/pdo_pgsql/tests/pdo_011.phpt +++ /dev/null @@ -1,181 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_FUNC and statement overloading ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -Test1::__construct(0,0) -test(1,N/A) -test(2,N/A) -test(3,N/A) -test(4,N/A) -array(2) { - ["Group1"]=> - array(2) { - [0]=> - array(1) { - [1]=> - string(3) "N/A" - } - [1]=> - array(1) { - [2]=> - string(3) "N/A" - } - } - ["Group2"]=> - array(2) { - [0]=> - array(1) { - [3]=> - string(3) "N/A" - } - [1]=> - array(1) { - [4]=> - string(3) "N/A" - } - } -} -test(1,A) -test(2,B) -test(3,C) -test(4,D) -array(4) { - [0]=> - array(1) { - [1]=> - string(1) "A" - } - [1]=> - array(1) { - [2]=> - string(1) "B" - } - [2]=> - array(1) { - [3]=> - string(1) "C" - } - [3]=> - array(1) { - [4]=> - string(1) "D" - } -} -Test1::factory(1,A) -Test1::__construct(1,A) -Test1::factory(2,B) -Test1::__construct(2,B) -Test1::factory(3,C) -Test1::__construct(3,C) -Test1::factory(4,D) -Test1::__construct(4,D) -array(4) { - [0]=> - object(Test1)#%d (2) { - ["id"]=> - int(1) - ["val"]=> - string(1) "A" - } - [1]=> - object(Test1)#%d (2) { - ["id"]=> - int(2) - ["val"]=> - string(1) "B" - } - [2]=> - object(Test1)#%d (2) { - ["id"]=> - int(3) - ["val"]=> - string(1) "C" - } - [3]=> - object(Test1)#%d (2) { - ["id"]=> - int(4) - ["val"]=> - string(1) "D" - } -} -Test1::factory(1,A) -Test1::__construct(1,A) -Test1::factory(2,B) -Test1::__construct(2,B) -Test1::factory(3,C) -Test1::__construct(3,C) -Test1::factory(4,D) -Test1::__construct(4,D) -array(4) { - [0]=> - object(Test1)#%d (2) { - ["id"]=> - int(1) - ["val"]=> - string(1) "A" - } - [1]=> - object(Test1)#%d (2) { - ["id"]=> - int(2) - ["val"]=> - string(1) "B" - } - [2]=> - object(Test1)#%d (2) { - ["id"]=> - int(3) - ["val"]=> - string(1) "C" - } - [3]=> - object(Test1)#%d (2) { - ["id"]=> - int(4) - ["val"]=> - string(1) "D" - } -} -DerivedStatement::__construct(Overloaded) -string(16) "DerivedStatement" -DerivedStatement::retrieve(1,A) -DerivedStatement::retrieve(2,B) -DerivedStatement::retrieve(3,C) -DerivedStatement::retrieve(4,D) -array(4) { - [0]=> - array(1) { - [1]=> - string(1) "A" - } - [1]=> - array(1) { - [2]=> - string(1) "B" - } - [2]=> - array(1) { - [3]=> - string(1) "C" - } - [3]=> - array(1) { - [4]=> - string(1) "D" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_012.phpt b/ext/pdo_pgsql/tests/pdo_012.phpt deleted file mode 100755 index f7113dce77..0000000000 --- a/ext/pdo_pgsql/tests/pdo_012.phpt +++ /dev/null @@ -1,70 +0,0 @@ ---TEST-- -PDO_PGSQL: PDOStatement::setFetchMode ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(2) { - [0]=> - array(2) { - [0]=> - string(1) "A" - [1]=> - string(6) "Group1" - } - [1]=> - array(2) { - [0]=> - string(1) "B" - [1]=> - string(6) "Group2" - } -} -Test::__construct(N/A) -Test::__construct(N/A) -array(2) { - [0]=> - object(Test)#%d (2) { - ["val"]=> - string(1) "A" - ["grp"]=> - string(6) "Group1" - } - [1]=> - object(Test)#%d (2) { - ["val"]=> - string(1) "B" - ["grp"]=> - string(6) "Group2" - } -} -Test::__construct(Changed) -Test::__construct(Changed) -array(2) { - [0]=> - object(Test)#%d (2) { - ["val"]=> - string(1) "A" - ["grp"]=> - string(6) "Group1" - } - [1]=> - object(Test)#%d (2) { - ["val"]=> - string(1) "B" - ["grp"]=> - string(6) "Group2" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_013.phpt b/ext/pdo_pgsql/tests/pdo_013.phpt deleted file mode 100755 index 8956e6de08..0000000000 --- a/ext/pdo_pgsql/tests/pdo_013.phpt +++ /dev/null @@ -1,58 +0,0 @@ ---TEST-- -PDO_PGSQL: PDOStatement is Traversable ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(2) { - [0]=> - string(1) "A" - [1]=> - string(6) "Group1" -} -array(2) { - [0]=> - string(1) "B" - [1]=> - string(6) "Group2" -} -Test::__construct(N/A) -object(Test)#%d (2) { - ["val"]=> - string(1) "A" - ["grp"]=> - string(6) "Group1" -} -Test::__construct(N/A) -object(Test)#%d (2) { - ["val"]=> - string(1) "B" - ["grp"]=> - string(6) "Group2" -} -Test::__construct(WOW) -object(Test)#%d (2) { - ["val"]=> - string(1) "A" - ["grp"]=> - string(6) "Group1" -} -Test::__construct(WOW) -object(Test)#%d (2) { - ["val"]=> - string(1) "B" - ["grp"]=> - string(6) "Group2" -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_014.phpt b/ext/pdo_pgsql/tests/pdo_014.phpt deleted file mode 100755 index eed5575c85..0000000000 --- a/ext/pdo_pgsql/tests/pdo_014.phpt +++ /dev/null @@ -1,51 +0,0 @@ ---TEST-- -PDO_PGSQL: PDOStatement and SPL Iterators ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -Test::__construct(WOW) -object(Test)#4 (2) { - ["val"]=> - string(1) "A" - ["grp"]=> - string(6) "Group1" -} -Test::__construct(WOW) -object(Test)#6 (2) { - ["val"]=> - string(1) "B" - ["grp"]=> - string(6) "Group2" -} -NULL -bool(false) -PDOStatementAggregate::__construct -PDOStatementAggregate::getIterator -array(2) { - [0]=> - string(1) "A" - [1]=> - string(6) "Group1" -} -array(2) { - [0]=> - string(1) "B" - [1]=> - string(6) "Group2" -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_015.phpt b/ext/pdo_pgsql/tests/pdo_015.phpt deleted file mode 100755 index b3a6b108e4..0000000000 --- a/ext/pdo_pgsql/tests/pdo_015.phpt +++ /dev/null @@ -1,76 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_COLUMN ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -array(2) { - [0]=> - int(1) - [1]=> - int(2) -} -array(2) { - [0]=> - string(2) "A2" - [1]=> - string(2) "B2" -} -array(2) { - [1]=> - array(1) { - [0]=> - string(1) "A" - } - [2]=> - array(1) { - [0]=> - string(1) "A" - } -} -array(2) { - [1]=> - string(1) "A" - [2]=> - string(1) "A" -} -array(2) { - [1]=> - int(1) - [2]=> - int(2) -} -array(2) { - [1]=> - string(1) "A" - [2]=> - string(1) "A" -} -array(2) { - [1]=> - string(2) "A2" - [2]=> - string(2) "B2" -} -array(1) { - ["A"]=> - array(2) { - [0]=> - string(2) "A2" - [1]=> - string(2) "B2" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_016.phpt b/ext/pdo_pgsql/tests/pdo_016.phpt deleted file mode 100755 index f09290ba9b..0000000000 --- a/ext/pdo_pgsql/tests/pdo_016.phpt +++ /dev/null @@ -1,117 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_BOUND ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -===INIT=== -int(1) -int(1) -int(1) -string(1) "3" -array(3) { - [0]=> - string(7) "String0" - [1]=> - string(7) "String1" - [2]=> - string(7) "String2" -} -===WHILE=== -array(1) { - [0]=> - string(7) "String0" -} -array(1) { - [1]=> - string(7) "String1" -} -array(1) { - [2]=> - string(7) "String2" -} -===ALONE=== -array(1) { - [0]=> - string(7) "String0" -} -bool(true) -bool(true) -bool(true) -bool(true) -array(1) { - [0]=> - string(7) "String0" -} -array(1) { - [1]=> - string(7) "String1" -} -bool(true) -bool(true) -bool(true) -bool(true) -array(1) { - [1]=> - string(7) "String1" -} -array(1) { - [2]=> - string(7) "String2" -} -bool(true) -bool(true) -bool(true) -bool(true) -array(1) { - [2]=> - string(7) "String2" -} -===REBIND/SAME=== -array(1) { - [0]=> - string(7) "String0" -} -bool(true) -bool(true) -string(7) "String0" -bool(true) -bool(true) -int(0) -array(1) { - [1]=> - string(7) "String1" -} -bool(true) -bool(true) -string(7) "String1" -bool(true) -bool(true) -int(1) -array(1) { - [2]=> - string(7) "String2" -} -bool(true) -bool(true) -string(7) "String2" -bool(true) -bool(true) -int(2) -===REBIND/CONFLICT=== -string(7) "String0" -string(7) "String1" -string(7) "String2" -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_017.phpt b/ext/pdo_pgsql/tests/pdo_017.phpt deleted file mode 100755 index 4f48f14da8..0000000000 --- a/ext/pdo_pgsql/tests/pdo_017.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO::beginTransaction / PDO::rollBack ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECT-- -Counted 3 rows after insert. -Counted 0 rows after delete. -Counted 3 rows after rollback. -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_018.phpt b/ext/pdo_pgsql/tests/pdo_018.phpt deleted file mode 100755 index 635d9947b6..0000000000 --- a/ext/pdo_pgsql/tests/pdo_018.phpt +++ /dev/null @@ -1,152 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO Unserializing ---SKIPIF-- - ---FILE-- - 0)'); -set_sql('select5', 'SELECT classtypes.name AS name, test.val AS val FROM test LEFT JOIN classtypes ON test.classtype=classtypes.id WHERE (classtypes.id IS NULL OR classtypes.id > 0)'); - -require_once($PDO_TESTS . 'pdo_018.inc'); - -?> -===DONE=== - ---EXPECTF-- -===INIT=== -int(1) -int(1) -int(1) -string(1) "3" -array(3) { - [0]=> - string(8) "stdClass" - [1]=> - string(8) "TestBase" - [2]=> - string(11) "TestDerived" -} -===TYPES=== -array(4) { - ["stdClass"]=> - int(0) - ["TestBase"]=> - int(1) - ["TestDerived"]=> - int(2) - ["TestLeaf"]=> - NULL -} -===INSERT=== -TestBase::serialize() = 'a:3:{s:7:"BasePub";s:6:"Public";s:7:"BasePro";s:9:"Protected";s:7:"BasePri";s:7:"Private";}' -TestDerived::serialize() -TestBase::serialize() = 'a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}' -TestDerived::serialize() -TestBase::serialize() = 'a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}' -===DATA=== -array(4) { - [0]=> - NULL - [1]=> - string(91) "a:3:{s:7:"BasePub";s:6:"Public";s:7:"BasePro";s:9:"Protected";s:7:"BasePri";s:7:"Private";}" - [2]=> - string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}" - [3]=> - string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}" -} -===FAILURE=== -Exception:SQLSTATE[HY000]: General error: cannot unserialize class -===COUNT=== -string(1) "3" -===DATABASE=== -array(3) { - [0]=> - array(2) { - ["name"]=> - string(8) "TestBase" - ["val"]=> - string(91) "a:3:{s:7:"BasePub";s:6:"Public";s:7:"BasePro";s:9:"Protected";s:7:"BasePri";s:7:"Private";}" - } - [1]=> - array(2) { - ["name"]=> - string(11) "TestDerived" - ["val"]=> - string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}" - } - [2]=> - array(2) { - ["name"]=> - NULL - ["val"]=> - string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}" - } -} -===FETCHCLASS=== -TestBase::unserialize[22](a:3:{s:7:"BasePub";s:6:"Public";s:7:"BasePro";s:9:"Protected";s:7:"BasePri";s:7:"Private";}) -TestDerived::unserialize() -TestBase::unserialize[22](a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}) -TestDerived::unserialize() -TestBase::unserialize[22](a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}) -array(3) { - [0]=> - object(TestBase)#%d (3) { - ["BasePub"]=> - string(7) "#Public" - ["BasePro:protected"]=> - string(10) "#Protected" - ["BasePri:private"]=> - string(8) "#Private" - } - [1]=> - object(TestDerived)#%d (6) { - ["BasePub"]=> - string(14) "#DerivedPublic" - ["BasePro:protected"]=> - string(17) "#DerivdeProtected" - ["DerivedPub"]=> - string(7) "#Public" - ["DerivedPro:protected"]=> - string(10) "#Protected" - ["DerivedPri:private"]=> - string(7) "Private" - ["BasePri:private"]=> - string(7) "Private" - } - [2]=> - object(TestLeaf)#%d (6) { - ["BasePub"]=> - string(14) "#DerivedPublic" - ["BasePro:protected"]=> - string(17) "#DerivdeProtected" - ["DerivedPub"]=> - string(7) "#Public" - ["DerivedPro:protected"]=> - string(10) "#Protected" - ["DerivedPri:private"]=> - string(7) "Private" - ["BasePri:private"]=> - string(7) "Private" - } -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_019.phpt b/ext/pdo_pgsql/tests/pdo_019.phpt deleted file mode 100755 index 21d12a75cd..0000000000 --- a/ext/pdo_pgsql/tests/pdo_019.phpt +++ /dev/null @@ -1,52 +0,0 @@ ---TEST-- -PDO_PGSQL: fetch() and while() ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -===INIT=== -int(1) -int(1) -int(1) -int(1) -string(1) "4" -array(4) { - [0]=> - string(7) "String0" - [1]=> - string(7) "String1" - [2]=> - string(7) "String2" - [3]=> - string(7) "String3" -} -===WHILE=== -array(1) { - [0]=> - string(7) "String0" -} -array(1) { - [1]=> - string(7) "String1" -} -array(1) { - [2]=> - string(7) "String2" -} -array(1) { - [3]=> - string(7) "String3" -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_020.phpt b/ext/pdo_pgsql/tests/pdo_020.phpt deleted file mode 100755 index ae5a6a0ef3..0000000000 --- a/ext/pdo_pgsql/tests/pdo_020.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -PDO_PGSQL: PDOStatement::columnCount ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECT-- -Counted 2 columns after select1. -Counted 3 columns after select2. -Counted 1 columns after select3. -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_021.phpt b/ext/pdo_pgsql/tests/pdo_021.phpt deleted file mode 100755 index 46f2302ee8..0000000000 --- a/ext/pdo_pgsql/tests/pdo_021.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -PDO_PGSQL: PDOStatement::execute with parameter markers. ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECT-- -There are 6 rows in the table. -There are 12 rows in the table. -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_022.phpt b/ext/pdo_pgsql/tests/pdo_022.phpt deleted file mode 100755 index cd4d931c90..0000000000 --- a/ext/pdo_pgsql/tests/pdo_022.phpt +++ /dev/null @@ -1,74 +0,0 @@ ---TEST-- -PDO_PGSQL: PDOStatement::getColumnMeta ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECT-- -array(6) { - ["pgsql:oid"]=> - int(23) - ["native_type"]=> - string(4) "int4" - ["name"]=> - string(2) "id" - ["len"]=> - int(4) - ["precision"]=> - int(-1) - ["pdo_type"]=> - int(1) -} -array(6) { - ["pgsql:oid"]=> - int(1043) - ["native_type"]=> - string(7) "varchar" - ["name"]=> - string(3) "val" - ["len"]=> - int(-1) - ["precision"]=> - int(14) - ["pdo_type"]=> - int(2) -} -array(6) { - ["pgsql:oid"]=> - int(1043) - ["native_type"]=> - string(7) "varchar" - ["name"]=> - string(4) "val2" - ["len"]=> - int(-1) - ["precision"]=> - int(20) - ["pdo_type"]=> - int(2) -} -array(6) { - ["pgsql:oid"]=> - int(20) - ["native_type"]=> - string(4) "int8" - ["name"]=> - string(5) "count" - ["len"]=> - int(8) - ["precision"]=> - int(-1) - ["pdo_type"]=> - int(2) -} -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_023.phpt b/ext/pdo_pgsql/tests/pdo_023.phpt deleted file mode 100755 index 5aa86aa41a..0000000000 --- a/ext/pdo_pgsql/tests/pdo_023.phpt +++ /dev/null @@ -1,60 +0,0 @@ ---TEST-- -PDO_PGSQL: Overloading ---SKIPIF-- - ---FILE-- -setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_WARNING); - -require_once($PDO_TESTS . 'pdo_023.inc'); - -?> -===DONE=== - ---EXPECTF-- -int(1) -int(2) -object(PDODatabaseX)#%d (2) { - ["test1"]=> - int(1) - ["test2"]=> - int(22) -} -PDODatabaseX::query() -PDOStatementX::__construct() -PDOStatementX::__destruct() -PDODatabaseX::query() -PDOStatementX::__construct() -PDOStatementX::__destruct() -PDODatabaseX::query() -PDOStatementX::__construct() -PDOStatementX::__destruct() -PDODatabaseX::query() -PDOStatementX::__construct() -object(PDOStatementX)#%d (3) { - ["test1"]=> - int(1) - ["queryString"]=> - string(24) "SELECT val, id FROM test" - ["test2"]=> - int(22) -} -array(2) { - ["A"]=> - int(0) - ["B"]=> - int(1) -} -PDOStatementX::__destruct() -PDODatabaseX::__destruct() -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_024.phpt b/ext/pdo_pgsql/tests/pdo_024.phpt deleted file mode 100755 index 634e0bca4f..0000000000 --- a/ext/pdo_pgsql/tests/pdo_024.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -PDO_PGSQL: Bind does not convert NULL ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -bind: success -bool(true) -NULL -===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_025.phpt b/ext/pdo_pgsql/tests/pdo_025.phpt deleted file mode 100755 index 1c0892e0d1..0000000000 --- a/ext/pdo_pgsql/tests/pdo_025.phpt +++ /dev/null @@ -1,68 +0,0 @@ ---TEST-- -PDO_PGSQL: PDO_FETCH_INTO ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECTF-- -object(Test)#%d (3) { - ["id"]=> - int(10) - ["val"]=> - string(3) "Abc" - ["val2"]=> - string(3) "zxy" -} -object(Test)#%d (3) { - ["id"]=> - int(20) - ["val"]=> - string(3) "Def" - ["val2"]=> - string(3) "wvu" -} -object(Test)#%d (3) { - ["id"]=> - int(30) - ["val"]=> - string(3) "Ghi" - ["val2"]=> - string(3) "tsr" -} -object(Test)#%d (3) { - ["id"]=> - int(40) - ["val"]=> - string(3) "Jkl" - ["val2"]=> - string(3) "qpo" -} -object(Test)#%d (3) { - ["id"]=> - int(50) - ["val"]=> - string(3) "Mno" - ["val2"]=> - string(3) "nml" -} -object(Test)#%d (3) { - ["id"]=> - int(60) - ["val"]=> - string(3) "Pqr" - ["val2"]=> - string(3) "kji" -} -===FAIL=== - -Fatal error: Cannot access protected property Fail::$id in %spdo_025.inc on line %d diff --git a/ext/pdo_pgsql/tests/pdo_026.phpt b/ext/pdo_pgsql/tests/pdo_026.phpt deleted file mode 100755 index 12ac290c52..0000000000 --- a/ext/pdo_pgsql/tests/pdo_026.phpt +++ /dev/null @@ -1,50 +0,0 @@ ---TEST-- -PDO_PGSQL: Deriving PDO ---SKIPIF-- - ---FILE-- - -===DONE=== - ---EXPECT-- -string(11) "PDODatabase" -string(12) "PDOStatement" -PDODatabase::query() -PDOStatementX::__construct() -string(13) "PDOStatementX" -string(11) "PDODatabase" -array(3) { - ["id"]=> - int(10) - ["val"]=> - string(3) "Abc" - ["val2"]=> - string(3) "zxy" -} -array(3) { - ["id"]=> - int(20) - ["val"]=> - string(3) "Def" - ["val2"]=> - string(3) "wvu" -} -array(3) { - ["id"]=> - int(30) - ["val"]=> - string(3) "Ghi" - ["val2"]=> - string(3) "tsr" -} -===DONE=== -PDODatabase::__destruct() -PDOStatementX::__destruct() diff --git a/ext/pdo_pgsql/tests/prepare.inc b/ext/pdo_pgsql/tests/prepare.inc deleted file mode 100755 index 5667ac6b43..0000000000 --- a/ext/pdo_pgsql/tests/prepare.inc +++ /dev/null @@ -1,21 +0,0 @@ -query('DROP TABLE '.$name.' CASCADE'); -} - -$DB->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_WARNING); - -?> diff --git a/ext/pdo_pgsql/tests/skipif.inc b/ext/pdo_pgsql/tests/skipif.inc deleted file mode 100755 index 0e19c74480..0000000000 --- a/ext/pdo_pgsql/tests/skipif.inc +++ /dev/null @@ -1,12 +0,0 @@ - -- 2.40.0