зеркало из https://github.com/microsoft/msphpsql.git
Some PDO test fixes
This commit is contained in:
Родитель
efd594b8cf
Коммит
93802526c0
|
@ -59,6 +59,7 @@ function ExecStmt()
|
|||
EndTest($testName);
|
||||
}
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class Test
|
||||
{
|
||||
function __construct($name = 'N/A')
|
||||
|
|
|
@ -48,6 +48,7 @@ function FetchMode()
|
|||
EndTest($testName);
|
||||
}
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class Test
|
||||
{
|
||||
function __construct($name = 'N/A')
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -10,6 +10,7 @@ PHPT_EXEC=true
|
|||
<?php
|
||||
include 'MsCommon.inc';
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class TestClass
|
||||
{
|
||||
private $set_calls = 0;
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -8,6 +8,7 @@ ORDER BY should work with sql_variants
|
|||
<?php
|
||||
require_once("MsCommon_mid-refactor.inc");
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class Food
|
||||
{
|
||||
public function getFood()
|
||||
|
|
Загрузка…
Ссылка в новой задаче