From 93802526c06de30f9a4ace7bc8ed93f34ae010b3 Mon Sep 17 00:00:00 2001 From: v-makouz Date: Thu, 8 Dec 2022 10:16:14 -0800 Subject: [PATCH] Some PDO test fixes --- test/functional/pdo_sqlsrv/PDO31_Statement.phpt | 1 + test/functional/pdo_sqlsrv/PDO37_FetchMode.phpt | 1 + test/functional/pdo_sqlsrv/PDO47_FetchClass.phpt | 3 +++ test/functional/pdo_sqlsrv/PDO49_FetchFunc.phpt | 2 ++ test/functional/pdo_sqlsrv/PDO50_FetchObject.phpt | 1 + test/functional/pdo_sqlsrv/PDO94_Extend1.phpt | 2 ++ test/functional/pdo_sqlsrv/pdo_connect_driver.phpt | 4 ++-- .../functional/pdo_sqlsrv/pdo_fetch_fetchinto_query_args.phpt | 3 +++ test/functional/pdo_sqlsrv/pdo_simple_update_variants.phpt | 1 + 9 files changed, 16 insertions(+), 2 deletions(-) diff --git a/test/functional/pdo_sqlsrv/PDO31_Statement.phpt b/test/functional/pdo_sqlsrv/PDO31_Statement.phpt index f082113c..adb1ab2a 100644 --- a/test/functional/pdo_sqlsrv/PDO31_Statement.phpt +++ b/test/functional/pdo_sqlsrv/PDO31_Statement.phpt @@ -59,6 +59,7 @@ function ExecStmt() EndTest($testName); } +#[AllowDynamicProperties] class Test { function __construct($name = 'N/A') diff --git a/test/functional/pdo_sqlsrv/PDO37_FetchMode.phpt b/test/functional/pdo_sqlsrv/PDO37_FetchMode.phpt index 5067ea90..34e6c7d2 100644 --- a/test/functional/pdo_sqlsrv/PDO37_FetchMode.phpt +++ b/test/functional/pdo_sqlsrv/PDO37_FetchMode.phpt @@ -48,6 +48,7 @@ function FetchMode() EndTest($testName); } +#[AllowDynamicProperties] class Test { function __construct($name = 'N/A') diff --git a/test/functional/pdo_sqlsrv/PDO47_FetchClass.phpt b/test/functional/pdo_sqlsrv/PDO47_FetchClass.phpt index 3a40b5b6..f4c8b298 100644 --- a/test/functional/pdo_sqlsrv/PDO47_FetchClass.phpt +++ b/test/functional/pdo_sqlsrv/PDO47_FetchClass.phpt @@ -72,6 +72,7 @@ function FetchAll() EndTest($testName); } +#[AllowDynamicProperties] class Test1 { public function __construct() @@ -80,6 +81,7 @@ class Test1 } } +#[AllowDynamicProperties] class Test2 { public function __construct() @@ -88,6 +90,7 @@ class Test2 } } +#[AllowDynamicProperties] class Test3 { public function __construct() diff --git a/test/functional/pdo_sqlsrv/PDO49_FetchFunc.phpt b/test/functional/pdo_sqlsrv/PDO49_FetchFunc.phpt index 43e9b6c8..b9398ff6 100644 --- a/test/functional/pdo_sqlsrv/PDO49_FetchFunc.phpt +++ b/test/functional/pdo_sqlsrv/PDO49_FetchFunc.phpt @@ -64,6 +64,7 @@ function FetchAll() EndTest($testName); } +#[AllowDynamicProperties] class DerivedStatement extends PDOStatement { private function __construct($name, $conn) @@ -78,6 +79,7 @@ class DerivedStatement extends PDOStatement } } +#[AllowDynamicProperties] class Test1 { public function __construct($id, $val) diff --git a/test/functional/pdo_sqlsrv/PDO50_FetchObject.phpt b/test/functional/pdo_sqlsrv/PDO50_FetchObject.phpt index c925323b..ce777ac5 100644 --- a/test/functional/pdo_sqlsrv/PDO50_FetchObject.phpt +++ b/test/functional/pdo_sqlsrv/PDO50_FetchObject.phpt @@ -10,6 +10,7 @@ PHPT_EXEC=true diff --git a/test/functional/pdo_sqlsrv/pdo_fetch_fetchinto_query_args.phpt b/test/functional/pdo_sqlsrv/pdo_fetch_fetchinto_query_args.phpt index 50a5cf1a..0aa66410 100644 --- a/test/functional/pdo_sqlsrv/pdo_fetch_fetchinto_query_args.phpt +++ b/test/functional/pdo_sqlsrv/pdo_fetch_fetchinto_query_args.phpt @@ -8,6 +8,8 @@ This test should not use temporary table as it might occasionally cause deadlock