Some PDO test fixes

This commit is contained in:
v-makouz 2022-12-08 10:16:14 -08:00
parent efd594b8cf
commit 93802526c0
9 changed files with 16 additions and 2 deletions

View file

@ -59,6 +59,7 @@ function ExecStmt()
EndTest($testName);
}
#[AllowDynamicProperties]
class Test
{
function __construct($name = 'N/A')

View file

@ -48,6 +48,7 @@ function FetchMode()
EndTest($testName);
}
#[AllowDynamicProperties]
class Test
{
function __construct($name = 'N/A')

View file

@ -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()

View file

@ -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)

View file

@ -10,6 +10,7 @@ PHPT_EXEC=true
<?php
include 'MsCommon.inc';
#[AllowDynamicProperties]
class TestClass
{
private $set_calls = 0;

View file

@ -48,6 +48,7 @@ function Extend()
EndTest($testName);
}
#[AllowDynamicProperties]
class ExPDO extends PDO
{
public $test1 = 1;
@ -74,6 +75,7 @@ class ExPDO extends PDO
}
}
#[AllowDynamicProperties]
class ExPDOStatement extends PDOStatement
{
protected function __construct()

View file

@ -122,11 +122,11 @@ function testWrongODBC()
{
global $msodbcsqlMaj;
$value = "ODBC Driver 18 for SQL Server";
$value = "ODBC Driver 13 for SQL Server";
$connectionOptions = "Driver = $value;";
$expected = "The specified ODBC Driver is not found.";
connectVerifyOutput($connectionOptions, "Connect with ODBC 18", $expected);
connectVerifyOutput($connectionOptions, "Connect with ODBC 13", $expected);
}
?>

View file

@ -8,6 +8,8 @@ This test should not use temporary table as it might occasionally cause deadlock
<?php
include 'MsCommon.inc';
#[AllowDynamicProperties]
class PdoTestClass
{
function __construct ()
@ -16,6 +18,7 @@ class PdoTestClass
}
}
#[AllowDynamicProperties]
class PdoTestClass2
{
function __construct ($a1, $a2)

View file

@ -8,6 +8,7 @@ ORDER BY should work with sql_variants
<?php
require_once("MsCommon_mid-refactor.inc");
#[AllowDynamicProperties]
class Food
{
public function getFood()