Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
f88dc282
Unverified
Commit
f88dc282
authored
Jun 11, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify test suite configuration
parent
0ad4c165
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
165 additions
and
288 deletions
+165
-288
phpunit.xml.dist
phpunit.xml.dist
+10
-10
DriverTest.php
tests/Doctrine/Tests/DBAL/Driver/PDOPgSql/DriverTest.php
+26
-40
ConnectionTest.php
...ne/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php
+6
-7
DriverTest.php
...ine/Tests/DBAL/Functional/Driver/PDOSqlsrv/DriverTest.php
+6
-6
OracleSchemaManagerTest.php
.../Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
+6
-6
AbstractTestCase.php
...octrine/Tests/DBAL/Sharding/SQLAzure/AbstractTestCase.php
+4
-4
TestUtil.php
tests/Doctrine/Tests/TestUtil.php
+59
-77
mssql.sql2008r2sp2.sqlsrv.appveyor.xml
tests/appveyor/mssql.sql2008r2sp2.sqlsrv.appveyor.xml
+3
-10
mssql.sql2012sp1.sqlsrv.appveyor.xml
tests/appveyor/mssql.sql2012sp1.sqlsrv.appveyor.xml
+3
-10
mssql.sql2017.pdo_sqlsrv.appveyor.xml
tests/appveyor/mssql.sql2017.pdo_sqlsrv.appveyor.xml
+3
-10
mssql.sql2017.sqlsrv.appveyor.xml
tests/appveyor/mssql.sql2017.sqlsrv.appveyor.xml
+3
-10
oci8.phpunit.continuousphp.xml
tests/continuousphp/oci8.phpunit.continuousphp.xml
+6
-8
pdo-oci.phpunit.xml
tests/continuousphp/pdo-oci.phpunit.xml
+6
-8
ibm_db2.travis.xml
tests/travis/ibm_db2.travis.xml
+3
-11
mariadb.docker.travis.xml
tests/travis/mariadb.docker.travis.xml
+3
-10
mariadb.mysqli.docker.travis.xml
tests/travis/mariadb.mysqli.docker.travis.xml
+3
-10
mysql.docker.travis.xml
tests/travis/mysql.docker.travis.xml
+3
-10
mysqli.docker.travis.xml
tests/travis/mysqli.docker.travis.xml
+3
-10
pdo_sqlsrv.travis.xml
tests/travis/pdo_sqlsrv.travis.xml
+3
-10
pgsql.travis.xml
tests/travis/pgsql.travis.xml
+3
-11
sqlsrv.travis.xml
tests/travis/sqlsrv.travis.xml
+3
-10
No files found.
phpunit.xml.dist
View file @
f88dc282
...
@@ -22,24 +22,24 @@
...
@@ -22,24 +22,24 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<!--
"Real" test database
-->
<!--
Test connection parameters
-->
<!-- Uncomment, otherwise SQLite runs
<!-- Uncomment, otherwise SQLite runs
<var name="db_
type
" value="pdo_mysql"/>
<var name="db_
driver
" value="pdo_mysql"/>
<var name="db_host" value="localhost" />
<var name="db_host" value="localhost" />
<var name="db_username" value="root" />
<var name="db_password" value="" />
<var name="db_name" value="doctrine_tests" />
<var name="db_port" value="3306"/>
<var name="db_port" value="3306"/>
<var name="db_user" value="root" />
<var name="db_password" value="" />
<var name="db_dbname" value="doctrine_tests" />
-->
-->
<!--<var name="db_event_subscribers" value="Doctrine\DBAL\Event\Listeners\OracleSessionInit">-->
<!--<var name="db_event_subscribers" value="Doctrine\DBAL\Event\Listeners\OracleSessionInit">-->
<!--
Database for temporary connections (i.e. to drop/create the main database)
-->
<!--
Privileged user connection parameters. Used to create and drop the test database
-->
<var
name=
"tmpdb_
type
"
value=
"pdo_mysql"
/>
<var
name=
"tmpdb_
driver
"
value=
"pdo_mysql"
/>
<var
name=
"tmpdb_host"
value=
"localhost"
/>
<var
name=
"tmpdb_host"
value=
"localhost"
/>
<var
name=
"tmpdb_username"
value=
"root"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_name"
value=
"doctrine_tests_tmp"
/>
<var
name=
"tmpdb_port"
value=
"3306"
/>
<var
name=
"tmpdb_port"
value=
"3306"
/>
<var
name=
"tmpdb_user"
value=
"root"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_dbname"
value=
"doctrine_tests_tmp"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/Doctrine/Tests/DBAL/Driver/PDOPgSql/DriverTest.php
View file @
f88dc282
...
@@ -6,9 +6,9 @@ use Doctrine\DBAL\Driver as DriverInterface;
...
@@ -6,9 +6,9 @@ use Doctrine\DBAL\Driver as DriverInterface;
use
Doctrine\DBAL\Driver\PDOConnection
;
use
Doctrine\DBAL\Driver\PDOConnection
;
use
Doctrine\DBAL\Driver\PDOPgSql\Driver
;
use
Doctrine\DBAL\Driver\PDOPgSql\Driver
;
use
Doctrine\Tests\DBAL\Driver\AbstractPostgreSQLDriverTest
;
use
Doctrine\Tests\DBAL\Driver\AbstractPostgreSQLDriverTest
;
use
Doctrine\Tests\TestUtil
;
use
PDO
;
use
PDO
;
use
PDOException
;
use
PDOException
;
use
function
defined
;
class
DriverTest
extends
AbstractPostgreSQLDriverTest
class
DriverTest
extends
AbstractPostgreSQLDriverTest
{
{
...
@@ -22,18 +22,9 @@ class DriverTest extends AbstractPostgreSQLDriverTest
...
@@ -22,18 +22,9 @@ class DriverTest extends AbstractPostgreSQLDriverTest
*/
*/
public
function
testConnectionDisablesPreparesOnPhp56
()
:
void
public
function
testConnectionDisablesPreparesOnPhp56
()
:
void
{
{
$this
->
skipWhenNotUsingPhp56AndPdoPgsql
();
$this
->
skipWhenNotUsingPdoPgsql
();
$connection
=
$this
->
createDriver
()
->
connect
(
[
'host'
=>
$GLOBALS
[
'db_host'
],
'port'
=>
$GLOBALS
[
'db_port'
],
],
$GLOBALS
[
'db_username'
],
$GLOBALS
[
'db_password'
]
);
self
::
assertInstanceOf
(
PDOConnection
::
class
,
$connection
);
$connection
=
$this
->
connect
([]
);
try
{
try
{
self
::
assertTrue
(
$connection
->
getAttribute
(
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
));
self
::
assertTrue
(
$connection
->
getAttribute
(
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
));
...
@@ -48,20 +39,12 @@ class DriverTest extends AbstractPostgreSQLDriverTest
...
@@ -48,20 +39,12 @@ class DriverTest extends AbstractPostgreSQLDriverTest
*/
*/
public
function
testConnectionDoesNotDisablePreparesOnPhp56WhenAttributeDefined
()
:
void
public
function
testConnectionDoesNotDisablePreparesOnPhp56WhenAttributeDefined
()
:
void
{
{
$this
->
skipWhenNotUsingPhp56AndPdoPgsql
();
$this
->
skipWhenNotUsingPdoPgsql
();
$connection
=
$this
->
createDriver
()
->
connect
(
$connection
=
$this
->
connect
(
[
'host'
=>
$GLOBALS
[
'db_host'
],
'port'
=>
$GLOBALS
[
'db_port'
],
],
$GLOBALS
[
'db_username'
],
$GLOBALS
[
'db_password'
],
[
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
=>
false
]
[
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
=>
false
]
);
);
self
::
assertInstanceOf
(
PDOConnection
::
class
,
$connection
);
try
{
try
{
self
::
assertNotSame
(
true
,
$connection
->
getAttribute
(
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
));
self
::
assertNotSame
(
true
,
$connection
->
getAttribute
(
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
));
}
catch
(
PDOException
$ignored
)
{
}
catch
(
PDOException
$ignored
)
{
...
@@ -75,20 +58,12 @@ class DriverTest extends AbstractPostgreSQLDriverTest
...
@@ -75,20 +58,12 @@ class DriverTest extends AbstractPostgreSQLDriverTest
*/
*/
public
function
testConnectionDisablePreparesOnPhp56WhenDisablePreparesIsExplicitlyDefined
()
:
void
public
function
testConnectionDisablePreparesOnPhp56WhenDisablePreparesIsExplicitlyDefined
()
:
void
{
{
$this
->
skipWhenNotUsingPhp56AndPdoPgsql
();
$this
->
skipWhenNotUsingPdoPgsql
();
$connection
=
$this
->
createDriver
()
->
connect
(
$connection
=
$this
->
connect
(
[
'host'
=>
$GLOBALS
[
'db_host'
],
'port'
=>
$GLOBALS
[
'db_port'
],
],
$GLOBALS
[
'db_username'
],
$GLOBALS
[
'db_password'
],
[
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
=>
true
]
[
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
=>
true
]
);
);
self
::
assertInstanceOf
(
PDOConnection
::
class
,
$connection
);
try
{
try
{
self
::
assertTrue
(
$connection
->
getAttribute
(
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
));
self
::
assertTrue
(
$connection
->
getAttribute
(
PDO
::
PGSQL_ATTR_DISABLE_PREPARES
));
}
catch
(
PDOException
$ignored
)
{
}
catch
(
PDOException
$ignored
)
{
...
@@ -102,16 +77,27 @@ class DriverTest extends AbstractPostgreSQLDriverTest
...
@@ -102,16 +77,27 @@ class DriverTest extends AbstractPostgreSQLDriverTest
return
new
Driver
();
return
new
Driver
();
}
}
private
function
skipWhenNotUsingP
hp56AndP
doPgsql
()
:
void
private
function
skipWhenNotUsingPdoPgsql
()
:
void
{
{
if
(
!
defined
(
'PDO::PGSQL_ATTR_DISABLE_PREPARES'
))
{
if
(
isset
(
$GLOBALS
[
'db_driver'
])
&&
$GLOBALS
[
'db_driver'
]
===
'pdo_pgsql'
)
{
$this
->
markTestSkipped
(
'Test requires PHP 5.6+'
);
}
if
(
isset
(
$GLOBALS
[
'db_type'
])
&&
$GLOBALS
[
'db_type'
]
===
'pdo_pgsql'
)
{
return
;
return
;
}
}
$this
->
markTestSkipped
(
'Test enabled only when using pdo_pgsql specific phpunit.xml'
);
$this
->
markTestSkipped
(
'Test enabled only when using pdo_pgsql specific phpunit.xml'
);
}
}
/**
* @param array<int,mixed> $driverOptions
*/
private
function
connect
(
array
$driverOptions
)
:
PDOConnection
{
$params
=
TestUtil
::
getConnectionParams
();
return
$this
->
createDriver
()
->
connect
(
$params
,
$params
[
'user'
]
??
''
,
$params
[
'password'
]
??
''
,
$driverOptions
);
}
}
}
tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php
View file @
f88dc282
...
@@ -6,6 +6,7 @@ use Doctrine\DBAL\Driver\Mysqli\Driver;
...
@@ -6,6 +6,7 @@ use Doctrine\DBAL\Driver\Mysqli\Driver;
use
Doctrine\DBAL\Driver\Mysqli\MysqliConnection
;
use
Doctrine\DBAL\Driver\Mysqli\MysqliConnection
;
use
Doctrine\DBAL\Driver\Mysqli\MysqliException
;
use
Doctrine\DBAL\Driver\Mysqli\MysqliException
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\TestUtil
;
use
function
extension_loaded
;
use
function
extension_loaded
;
use
const
MYSQLI_OPT_CONNECT_TIMEOUT
;
use
const
MYSQLI_OPT_CONNECT_TIMEOUT
;
...
@@ -57,14 +58,12 @@ class ConnectionTest extends DbalFunctionalTestCase
...
@@ -57,14 +58,12 @@ class ConnectionTest extends DbalFunctionalTestCase
*/
*/
private
function
getConnection
(
array
$driverOptions
)
:
MysqliConnection
private
function
getConnection
(
array
$driverOptions
)
:
MysqliConnection
{
{
$params
=
TestUtil
::
getConnectionParams
();
return
new
MysqliConnection
(
return
new
MysqliConnection
(
[
$params
,
'host'
=>
$GLOBALS
[
'db_host'
],
$params
[
'user'
]
??
''
,
'dbname'
=>
$GLOBALS
[
'db_name'
],
$params
[
'password'
]
??
''
,
'port'
=>
$GLOBALS
[
'db_port'
],
],
$GLOBALS
[
'db_username'
],
$GLOBALS
[
'db_password'
],
$driverOptions
$driverOptions
);
);
}
}
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOSqlsrv/DriverTest.php
View file @
f88dc282
...
@@ -6,6 +6,7 @@ use Doctrine\DBAL\Driver as DriverInterface;
...
@@ -6,6 +6,7 @@ use Doctrine\DBAL\Driver as DriverInterface;
use
Doctrine\DBAL\Driver\Connection
;
use
Doctrine\DBAL\Driver\Connection
;
use
Doctrine\DBAL\Driver\PDOSqlsrv\Driver
;
use
Doctrine\DBAL\Driver\PDOSqlsrv\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\TestUtil
;
use
PDO
;
use
PDO
;
use
function
extension_loaded
;
use
function
extension_loaded
;
...
@@ -41,13 +42,12 @@ class DriverTest extends AbstractDriverTest
...
@@ -41,13 +42,12 @@ class DriverTest extends AbstractDriverTest
*/
*/
protected
function
getConnection
(
array
$driverOptions
)
:
Connection
protected
function
getConnection
(
array
$driverOptions
)
:
Connection
{
{
$params
=
TestUtil
::
getConnectionParams
();
return
$this
->
connection
->
getDriver
()
->
connect
(
return
$this
->
connection
->
getDriver
()
->
connect
(
[
$params
,
'host'
=>
$GLOBALS
[
'db_host'
],
$params
[
'user'
]
??
''
,
'port'
=>
$GLOBALS
[
'db_port'
],
$params
[
'password'
]
??
''
,
],
$GLOBALS
[
'db_username'
],
$GLOBALS
[
'db_password'
],
$driverOptions
$driverOptions
);
);
}
}
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
View file @
f88dc282
...
@@ -22,12 +22,12 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
...
@@ -22,12 +22,12 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
return
;
return
;
}
}
if
(
!
isset
(
$GLOBALS
[
'db_user
name
'
]))
{
if
(
!
isset
(
$GLOBALS
[
'db_user'
]))
{
self
::
markTestSkipped
(
'Username must be explicitly specified in connection parameters for this test'
);
self
::
markTestSkipped
(
'Username must be explicitly specified in connection parameters for this test'
);
}
}
TestUtil
::
get
Temp
Connection
()
TestUtil
::
get
Privileged
Connection
()
->
exec
(
'GRANT ALL PRIVILEGES TO '
.
$GLOBALS
[
'db_user
name
'
]);
->
exec
(
'GRANT ALL PRIVILEGES TO '
.
$GLOBALS
[
'db_user'
]);
self
::
$privilegesGranted
=
true
;
self
::
$privilegesGranted
=
true
;
}
}
...
@@ -104,8 +104,8 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
...
@@ -104,8 +104,8 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
public
function
testListDatabases
()
:
void
public
function
testListDatabases
()
:
void
{
{
// We need
the temp connection that has privileges to create a
database.
// We need
a privileged connection to create the
database.
$sm
=
TestUtil
::
get
Temp
Connection
()
->
getSchemaManager
();
$sm
=
TestUtil
::
get
Privileged
Connection
()
->
getSchemaManager
();
$sm
->
dropAndCreateDatabase
(
'c##test_create_database'
);
$sm
->
dropAndCreateDatabase
(
'c##test_create_database'
);
...
@@ -233,7 +233,7 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
...
@@ -233,7 +233,7 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
$otherTable
=
new
Table
(
$table
->
getName
());
$otherTable
=
new
Table
(
$table
->
getName
());
$otherTable
->
addColumn
(
'id'
,
Types
::
STRING
);
$otherTable
->
addColumn
(
'id'
,
Types
::
STRING
);
TestUtil
::
get
Temp
Connection
()
->
getSchemaManager
()
->
dropAndCreateTable
(
$otherTable
);
TestUtil
::
get
Privileged
Connection
()
->
getSchemaManager
()
->
dropAndCreateTable
(
$otherTable
);
$columns
=
$this
->
schemaManager
->
listTableColumns
(
$table
->
getName
(),
$this
->
connection
->
getUsername
());
$columns
=
$this
->
schemaManager
->
listTableColumns
(
$table
->
getName
(),
$this
->
connection
->
getUsername
());
self
::
assertCount
(
7
,
$columns
);
self
::
assertCount
(
7
,
$columns
);
...
...
tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/AbstractTestCase.php
View file @
f88dc282
...
@@ -19,14 +19,14 @@ abstract class AbstractTestCase extends TestCase
...
@@ -19,14 +19,14 @@ abstract class AbstractTestCase extends TestCase
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
isset
(
$GLOBALS
[
'db_
type'
])
||
strpos
(
$GLOBALS
[
'db_type
'
],
'sqlsrv'
)
===
false
)
{
if
(
!
isset
(
$GLOBALS
[
'db_
driver'
])
||
strpos
(
$GLOBALS
[
'db_driver
'
],
'sqlsrv'
)
===
false
)
{
$this
->
markTestSkipped
(
'No driver or sqlserver driver specified.'
);
$this
->
markTestSkipped
(
'No driver or sqlserver driver specified.'
);
}
}
$params
=
[
$params
=
[
'driver'
=>
$GLOBALS
[
'db_
type
'
],
'driver'
=>
$GLOBALS
[
'db_
driver
'
],
'dbname'
=>
$GLOBALS
[
'db_name'
],
'dbname'
=>
$GLOBALS
[
'db_
db
name'
],
'user'
=>
$GLOBALS
[
'db_user
name
'
],
'user'
=>
$GLOBALS
[
'db_user'
],
'password'
=>
$GLOBALS
[
'db_password'
],
'password'
=>
$GLOBALS
[
'db_password'
],
'host'
=>
$GLOBALS
[
'db_host'
],
'host'
=>
$GLOBALS
[
'db_host'
],
'sharding'
=>
[
'sharding'
=>
[
...
...
tests/Doctrine/Tests/TestUtil.php
View file @
f88dc282
...
@@ -18,24 +18,22 @@ class TestUtil
...
@@ -18,24 +18,22 @@ class TestUtil
private
static
$initialized
=
false
;
private
static
$initialized
=
false
;
/**
/**
*
Gets a <b>real
</b> database connection using the following parameters
*
Creates a new <b>test
</b> database connection using the following parameters
* of the $GLOBALS array:
* of the $GLOBALS array:
*
*
* 'db_
type' :
The name of the Doctrine DBAL database driver to use.
* 'db_
driver':
The name of the Doctrine DBAL database driver to use.
* 'db_user
name' :
The username to use for connecting.
* 'db_user
':
The username to use for connecting.
* 'db_password'
: The password to use for connecting.
* 'db_password': The password to use for connecting.
* 'db_host'
:
The hostname of the database to connect to.
* 'db_host'
:
The hostname of the database to connect to.
* 'db_server'
:
The server name of the database to connect to
* 'db_server'
:
The server name of the database to connect to
* (optional, some vendors allow multiple server instances with different names on the same host).
*
(optional, some vendors allow multiple server instances with different names on the same host).
* 'db_
name' :
The name of the database to connect to.
* 'db_
dbname':
The name of the database to connect to.
* 'db_port'
:
The port of the database to connect to.
* 'db_port'
:
The port of the database to connect to.
*
*
* Usually these variables of the $GLOBALS array are filled by PHPUnit based
* Usually these variables of the $GLOBALS array are filled by PHPUnit based
* on an XML configuration file. If no such parameters exist, an SQLite
* on an XML configuration file. If no such parameters exist, an SQLite
* in-memory database is used.
* in-memory database is used.
*
*
* IMPORTANT: Each invocation of this method returns a NEW database connection.
*
* @return Connection The database connection instance.
* @return Connection The database connection instance.
*/
*/
public
static
function
getConnection
()
:
Connection
public
static
function
getConnection
()
:
Connection
...
@@ -58,7 +56,7 @@ class TestUtil
...
@@ -58,7 +56,7 @@ class TestUtil
public
static
function
getConnectionParams
()
:
array
public
static
function
getConnectionParams
()
:
array
{
{
if
(
self
::
hasRequiredConnectionParams
())
{
if
(
self
::
hasRequiredConnectionParams
())
{
return
self
::
get
ParamsForMainConnection
();
return
self
::
get
TestConnectionParameters
();
}
}
return
self
::
getFallbackConnectionParams
();
return
self
::
getFallbackConnectionParams
();
...
@@ -66,50 +64,36 @@ class TestUtil
...
@@ -66,50 +64,36 @@ class TestUtil
private
static
function
hasRequiredConnectionParams
()
:
bool
private
static
function
hasRequiredConnectionParams
()
:
bool
{
{
return
isset
(
return
isset
(
$GLOBALS
[
'db_driver'
]);
$GLOBALS
[
'db_type'
],
$GLOBALS
[
'db_username'
],
$GLOBALS
[
'db_password'
],
$GLOBALS
[
'db_host'
],
$GLOBALS
[
'db_name'
],
$GLOBALS
[
'db_port'
]
)
&&
isset
(
$GLOBALS
[
'tmpdb_type'
],
$GLOBALS
[
'tmpdb_username'
],
$GLOBALS
[
'tmpdb_password'
],
$GLOBALS
[
'tmpdb_host'
],
$GLOBALS
[
'tmpdb_port'
]
);
}
}
private
static
function
initializeDatabase
()
:
void
private
static
function
initializeDatabase
()
:
void
{
{
$
realDbParams
=
self
::
getParamsForMainConnection
();
$
testConnParams
=
self
::
getTestConnectionParameters
();
$
tmpDbParams
=
self
::
getParamsForTemporaryConnection
();
$
privConnParams
=
self
::
getPrivilegedConnectionParameters
();
$
realConn
=
DriverManager
::
getConnection
(
$realDb
Params
);
$
testConn
=
DriverManager
::
getConnection
(
$testConn
Params
);
// Connect
to tmpdb in order to drop and create the real test db
.
// Connect
as a privileged user to create and drop the test database
.
$
tmpConn
=
DriverManager
::
getConnection
(
$tmpDb
Params
);
$
privConn
=
DriverManager
::
getConnection
(
$privConn
Params
);
$platform
=
$
tmp
Conn
->
getDatabasePlatform
();
$platform
=
$
priv
Conn
->
getDatabasePlatform
();
if
(
$platform
->
supportsCreateDropDatabase
())
{
if
(
$platform
->
supportsCreateDropDatabase
())
{
$dbname
=
$
real
Conn
->
getDatabase
();
$dbname
=
$
test
Conn
->
getDatabase
();
$
real
Conn
->
close
();
$
test
Conn
->
close
();
$
tmp
Conn
->
getSchemaManager
()
->
dropAndCreateDatabase
(
$dbname
);
$
priv
Conn
->
getSchemaManager
()
->
dropAndCreateDatabase
(
$dbname
);
$
tmp
Conn
->
close
();
$
priv
Conn
->
close
();
}
else
{
}
else
{
$sm
=
$
real
Conn
->
getSchemaManager
();
$sm
=
$
test
Conn
->
getSchemaManager
();
$schema
=
$sm
->
createSchema
();
$schema
=
$sm
->
createSchema
();
$stmts
=
$schema
->
toDropSql
(
$
real
Conn
->
getDatabasePlatform
());
$stmts
=
$schema
->
toDropSql
(
$
test
Conn
->
getDatabasePlatform
());
foreach
(
$stmts
as
$stmt
)
{
foreach
(
$stmts
as
$stmt
)
{
$
real
Conn
->
exec
(
$stmt
);
$
test
Conn
->
exec
(
$stmt
);
}
}
}
}
}
}
...
@@ -152,59 +136,57 @@ class TestUtil
...
@@ -152,59 +136,57 @@ class TestUtil
/**
/**
* @return mixed[]
* @return mixed[]
*/
*/
private
static
function
getP
aramsForTemporaryConnection
()
:
array
private
static
function
getP
rivilegedConnectionParameters
()
:
array
{
{
$connectionParams
=
[
if
(
isset
(
$GLOBALS
[
'tmpdb_driver'
]))
{
'driver'
=>
$GLOBALS
[
'tmpdb_type'
],
return
self
::
mapConnectionParameters
(
$GLOBALS
,
'tmpdb_'
);
'user'
=>
$GLOBALS
[
'tmpdb_username'
],
'password'
=>
$GLOBALS
[
'tmpdb_password'
],
'host'
=>
$GLOBALS
[
'tmpdb_host'
],
'dbname'
=>
null
,
'port'
=>
$GLOBALS
[
'tmpdb_port'
],
];
if
(
isset
(
$GLOBALS
[
'tmpdb_name'
]))
{
$connectionParams
[
'dbname'
]
=
$GLOBALS
[
'tmpdb_name'
];
}
}
if
(
isset
(
$GLOBALS
[
'tmpdb_server'
]))
{
$parameters
=
self
::
mapConnectionParameters
(
$GLOBALS
,
'db_'
);
$connectionParams
[
'server'
]
=
$GLOBALS
[
'tmpdb_server'
];
unset
(
$parameters
[
'dbname'
]);
}
if
(
isset
(
$GLOBALS
[
'tmpdb_unix_socket'
]))
{
return
$parameters
;
$connectionParams
[
'unix_socket'
]
=
$GLOBALS
[
'tmpdb_unix_socket'
];
}
return
$connectionParams
;
}
}
/**
/**
* @return mixed[]
* @return mixed[]
*/
*/
private
static
function
get
ParamsForMainConnection
()
:
array
private
static
function
get
TestConnectionParameters
()
:
array
{
{
$connectionParams
=
[
return
self
::
mapConnectionParameters
(
$GLOBALS
,
'db_'
);
'driver'
=>
$GLOBALS
[
'db_type'
],
}
'user'
=>
$GLOBALS
[
'db_username'
],
'password'
=>
$GLOBALS
[
'db_password'
],
'host'
=>
$GLOBALS
[
'db_host'
],
'dbname'
=>
$GLOBALS
[
'db_name'
],
'port'
=>
$GLOBALS
[
'db_port'
],
];
if
(
isset
(
$GLOBALS
[
'db_server'
]))
{
/**
$connectionParams
[
'server'
]
=
$GLOBALS
[
'db_server'
];
* @param array<string,mixed> $configuration
}
*
* @return array<string,mixed>
*/
private
static
function
mapConnectionParameters
(
array
$configuration
,
string
$prefix
)
:
array
{
$parameters
=
[];
foreach
([
'driver'
,
'user'
,
'password'
,
'host'
,
'dbname'
,
'port'
,
'server'
,
'unix_socket'
,
]
as
$parameter
)
{
if
(
!
isset
(
$configuration
[
$prefix
.
$parameter
]))
{
continue
;
}
if
(
isset
(
$GLOBALS
[
'db_unix_socket'
]))
{
$parameters
[
$parameter
]
=
$configuration
[
$prefix
.
$parameter
];
$connectionParams
[
'unix_socket'
]
=
$GLOBALS
[
'db_unix_socket'
];
}
}
return
$
connectionParam
s
;
return
$
parameter
s
;
}
}
public
static
function
get
Temp
Connection
()
:
Connection
public
static
function
get
Privileged
Connection
()
:
Connection
{
{
return
DriverManager
::
getConnection
(
self
::
getP
aramsForTemporaryConnection
());
return
DriverManager
::
getConnection
(
self
::
getP
rivilegedConnectionParameters
());
}
}
}
}
tests/appveyor/mssql.sql2008r2sp2.sqlsrv.appveyor.xml
View file @
f88dc282
...
@@ -11,18 +11,11 @@
...
@@ -11,18 +11,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"sqlsrv"
/>
<var
name=
"db_
driver
"
value=
"sqlsrv"
/>
<var
name=
"db_host"
value=
"(local)\SQL2008R2SP2"
/>
<var
name=
"db_host"
value=
"(local)\SQL2008R2SP2"
/>
<var
name=
"db_user
name
"
value=
"sa"
/>
<var
name=
"db_user"
value=
"sa"
/>
<var
name=
"db_password"
value=
"Password12!"
/>
<var
name=
"db_password"
value=
"Password12!"
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"1433"
/>
<var
name=
"tmpdb_type"
value=
"sqlsrv"
/>
<var
name=
"tmpdb_host"
value=
"(local)\SQL2008R2SP2"
/>
<var
name=
"tmpdb_username"
value=
"sa"
/>
<var
name=
"tmpdb_password"
value=
"Password12!"
/>
<var
name=
"tmpdb_port"
value=
"1433"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/appveyor/mssql.sql2012sp1.sqlsrv.appveyor.xml
View file @
f88dc282
...
@@ -11,18 +11,11 @@
...
@@ -11,18 +11,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"sqlsrv"
/>
<var
name=
"db_
driver
"
value=
"sqlsrv"
/>
<var
name=
"db_host"
value=
"(local)\SQL2012SP1"
/>
<var
name=
"db_host"
value=
"(local)\SQL2012SP1"
/>
<var
name=
"db_user
name
"
value=
"sa"
/>
<var
name=
"db_user"
value=
"sa"
/>
<var
name=
"db_password"
value=
"Password12!"
/>
<var
name=
"db_password"
value=
"Password12!"
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"1433"
/>
<var
name=
"tmpdb_type"
value=
"sqlsrv"
/>
<var
name=
"tmpdb_host"
value=
"(local)\SQL2012SP1"
/>
<var
name=
"tmpdb_username"
value=
"sa"
/>
<var
name=
"tmpdb_password"
value=
"Password12!"
/>
<var
name=
"tmpdb_port"
value=
"1433"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/appveyor/mssql.sql2017.pdo_sqlsrv.appveyor.xml
View file @
f88dc282
...
@@ -11,18 +11,11 @@
...
@@ -11,18 +11,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"pdo_sqlsrv"
/>
<var
name=
"db_
driver
"
value=
"pdo_sqlsrv"
/>
<var
name=
"db_host"
value=
"(local)\SQL2017"
/>
<var
name=
"db_host"
value=
"(local)\SQL2017"
/>
<var
name=
"db_user
name
"
value=
"sa"
/>
<var
name=
"db_user"
value=
"sa"
/>
<var
name=
"db_password"
value=
"Password12!"
/>
<var
name=
"db_password"
value=
"Password12!"
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"1433"
/>
<var
name=
"tmpdb_type"
value=
"pdo_sqlsrv"
/>
<var
name=
"tmpdb_host"
value=
"(local)\SQL2017"
/>
<var
name=
"tmpdb_username"
value=
"sa"
/>
<var
name=
"tmpdb_password"
value=
"Password12!"
/>
<var
name=
"tmpdb_port"
value=
"1433"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/appveyor/mssql.sql2017.sqlsrv.appveyor.xml
View file @
f88dc282
...
@@ -11,18 +11,11 @@
...
@@ -11,18 +11,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"sqlsrv"
/>
<var
name=
"db_
driver
"
value=
"sqlsrv"
/>
<var
name=
"db_host"
value=
"(local)\SQL2017"
/>
<var
name=
"db_host"
value=
"(local)\SQL2017"
/>
<var
name=
"db_user
name
"
value=
"sa"
/>
<var
name=
"db_user"
value=
"sa"
/>
<var
name=
"db_password"
value=
"Password12!"
/>
<var
name=
"db_password"
value=
"Password12!"
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"1433"
/>
<var
name=
"tmpdb_type"
value=
"sqlsrv"
/>
<var
name=
"tmpdb_host"
value=
"(local)\SQL2017"
/>
<var
name=
"tmpdb_username"
value=
"sa"
/>
<var
name=
"tmpdb_password"
value=
"Password12!"
/>
<var
name=
"tmpdb_port"
value=
"1433"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/continuousphp/oci8.phpunit.continuousphp.xml
View file @
f88dc282
...
@@ -11,20 +11,18 @@
...
@@ -11,20 +11,18 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"oci8"
/>
<var
name=
"db_
driver
"
value=
"oci8"
/>
<var
name=
"db_host"
value=
"oracle-xe-11"
/>
<var
name=
"db_host"
value=
"oracle-xe-11"
/>
<var
name=
"db_user
name
"
value=
"C##doctrine"
/>
<var
name=
"db_user"
value=
"C##doctrine"
/>
<var
name=
"db_password"
value=
"ORACLE"
/>
<var
name=
"db_password"
value=
"ORACLE"
/>
<var
name=
"db_name"
value=
"XE"
/>
<var
name=
"db_dbname"
value=
"XE"
/>
<var
name=
"db_port"
value=
"1521"
/>
<var
name=
"db_event_subscribers"
value=
"Doctrine\DBAL\Event\Listeners\OracleSessionInit"
/>
<var
name=
"db_event_subscribers"
value=
"Doctrine\DBAL\Event\Listeners\OracleSessionInit"
/>
<var
name=
"tmpdb_
type
"
value=
"oci8"
/>
<var
name=
"tmpdb_
driver
"
value=
"oci8"
/>
<var
name=
"tmpdb_host"
value=
"oracle-xe-11"
/>
<var
name=
"tmpdb_host"
value=
"oracle-xe-11"
/>
<var
name=
"tmpdb_user
name
"
value=
"ORACLE"
/>
<var
name=
"tmpdb_user"
value=
"ORACLE"
/>
<var
name=
"tmpdb_password"
value=
"ORACLE"
/>
<var
name=
"tmpdb_password"
value=
"ORACLE"
/>
<var
name=
"tmpdb_name"
value=
"XE"
/>
<var
name=
"tmpdb_dbname"
value=
"XE"
/>
<var
name=
"tmpdb_port"
value=
"1521"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/continuousphp/pdo-oci.phpunit.xml
View file @
f88dc282
...
@@ -9,20 +9,18 @@
...
@@ -9,20 +9,18 @@
bootstrap=
"bootstrap.php"
bootstrap=
"bootstrap.php"
>
>
<php>
<php>
<var
name=
"db_
type
"
value=
"pdo_oci"
/>
<var
name=
"db_
driver
"
value=
"pdo_oci"
/>
<var
name=
"db_host"
value=
"oracle-xe-11"
/>
<var
name=
"db_host"
value=
"oracle-xe-11"
/>
<var
name=
"db_user
name
"
value=
"C##doctrine"
/>
<var
name=
"db_user"
value=
"C##doctrine"
/>
<var
name=
"db_password"
value=
"ORACLE"
/>
<var
name=
"db_password"
value=
"ORACLE"
/>
<var
name=
"db_name"
value=
"XE"
/>
<var
name=
"db_dbname"
value=
"XE"
/>
<var
name=
"db_port"
value=
"1521"
/>
<var
name=
"db_event_subscribers"
value=
"Doctrine\DBAL\Event\Listeners\OracleSessionInit"
/>
<var
name=
"db_event_subscribers"
value=
"Doctrine\DBAL\Event\Listeners\OracleSessionInit"
/>
<var
name=
"tmpdb_
type
"
value=
"pdo_oci"
/>
<var
name=
"tmpdb_
driver
"
value=
"pdo_oci"
/>
<var
name=
"tmpdb_host"
value=
"oracle-xe-11"
/>
<var
name=
"tmpdb_host"
value=
"oracle-xe-11"
/>
<var
name=
"tmpdb_user
name
"
value=
"ORACLE"
/>
<var
name=
"tmpdb_user"
value=
"ORACLE"
/>
<var
name=
"tmpdb_password"
value=
"ORACLE"
/>
<var
name=
"tmpdb_password"
value=
"ORACLE"
/>
<var
name=
"tmpdb_name"
value=
"XE"
/>
<var
name=
"tmpdb_dbname"
value=
"XE"
/>
<var
name=
"tmpdb_port"
value=
"1521"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/travis/ibm_db2.travis.xml
View file @
f88dc282
...
@@ -10,19 +10,11 @@
...
@@ -10,19 +10,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"ibm_db2"
/>
<var
name=
"db_
driver
"
value=
"ibm_db2"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_user
name
"
value=
"db2inst1"
/>
<var
name=
"db_user"
value=
"db2inst1"
/>
<var
name=
"db_password"
value=
"Doctrine2018"
/>
<var
name=
"db_password"
value=
"Doctrine2018"
/>
<var
name=
"db_name"
value=
"HOSTNAME=127.0.0.1;UID=db2inst1;PWD=Doctrine2018;DATABASE=doctrine"
/>
<var
name=
"db_dbname"
value=
"HOSTNAME=127.0.0.1;UID=db2inst1;PWD=Doctrine2018;DATABASE=doctrine"
/>
<var
name=
"db_port"
value=
"50000"
/>
<var
name=
"tmpdb_type"
value=
"ibm_db2"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"db2inst1"
/>
<var
name=
"tmpdb_password"
value=
"Doctrine2018"
/>
<var
name=
"tmpdb_name"
value=
"HOSTNAME=127.0.0.1;UID=db2inst1;PWD=Doctrine2018;DATABASE=doctrine"
/>
<var
name=
"tmpdb_port"
value=
"50000"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/travis/mariadb.docker.travis.xml
View file @
f88dc282
...
@@ -10,18 +10,11 @@
...
@@ -10,18 +10,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"pdo_mysql"
/>
<var
name=
"db_
driver
"
value=
"pdo_mysql"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_username"
value=
"root"
/>
<var
name=
"db_password"
value=
""
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_user"
value=
"root"
/>
<var
name=
"tmpdb_type"
value=
"pdo_mysql"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"root"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_port"
value=
"33306"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/travis/mariadb.mysqli.docker.travis.xml
View file @
f88dc282
...
@@ -10,18 +10,11 @@
...
@@ -10,18 +10,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"mysqli"
/>
<var
name=
"db_
driver
"
value=
"mysqli"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_username"
value=
"root"
/>
<var
name=
"db_password"
value=
""
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_user"
value=
"root"
/>
<var
name=
"tmpdb_type"
value=
"mysqli"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"root"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_port"
value=
"33306"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/travis/mysql.docker.travis.xml
View file @
f88dc282
...
@@ -10,18 +10,11 @@
...
@@ -10,18 +10,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"pdo_mysql"
/>
<var
name=
"db_
driver
"
value=
"pdo_mysql"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_username"
value=
"root"
/>
<var
name=
"db_password"
value=
""
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_user"
value=
"root"
/>
<var
name=
"tmpdb_type"
value=
"pdo_mysql"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"root"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_port"
value=
"33306"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/travis/mysqli.docker.travis.xml
View file @
f88dc282
...
@@ -10,18 +10,11 @@
...
@@ -10,18 +10,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"mysqli"
/>
<var
name=
"db_
driver
"
value=
"mysqli"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_username"
value=
"root"
/>
<var
name=
"db_password"
value=
""
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_port"
value=
"33306"
/>
<var
name=
"db_user"
value=
"root"
/>
<var
name=
"tmpdb_type"
value=
"mysqli"
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"root"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_port"
value=
"33306"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/travis/pdo_sqlsrv.travis.xml
View file @
f88dc282
...
@@ -10,18 +10,11 @@
...
@@ -10,18 +10,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"pdo_sqlsrv"
/>
<var
name=
"db_
driver
"
value=
"pdo_sqlsrv"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_user
name
"
value=
"sa"
/>
<var
name=
"db_user"
value=
"sa"
/>
<var
name=
"db_password"
value=
"Doctrine2018"
/>
<var
name=
"db_password"
value=
"Doctrine2018"
/>
<var
name=
"db_name"
value=
"doctrine"
/>
<var
name=
"db_dbname"
value=
"doctrine"
/>
<var
name=
"db_port"
value=
"1433"
/>
<var
name=
"tmpdb_type"
value=
"pdo_sqlsrv"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"sa"
/>
<var
name=
"tmpdb_password"
value=
"Doctrine2018"
/>
<var
name=
"tmpdb_port"
value=
"1433"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/travis/pgsql.travis.xml
View file @
f88dc282
...
@@ -10,18 +10,10 @@
...
@@ -10,18 +10,10 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"pdo_pgsql"
/>
<var
name=
"db_
driver
"
value=
"pdo_pgsql"
/>
<var
name=
"db_host"
value=
"localhost"
/>
<var
name=
"db_host"
value=
"localhost"
/>
<var
name=
"db_username"
value=
"postgres"
/>
<var
name=
"db_user"
value=
"postgres"
/>
<var
name=
"db_password"
value=
""
/>
<var
name=
"db_dbname"
value=
"doctrine_tests"
/>
<var
name=
"db_name"
value=
"doctrine_tests"
/>
<var
name=
"db_port"
value=
"5432"
/>
<var
name=
"tmpdb_type"
value=
"pdo_pgsql"
/>
<var
name=
"tmpdb_host"
value=
"localhost"
/>
<var
name=
"tmpdb_username"
value=
"postgres"
/>
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_port"
value=
"5432"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
tests/travis/sqlsrv.travis.xml
View file @
f88dc282
...
@@ -10,18 +10,11 @@
...
@@ -10,18 +10,11 @@
<php>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<var
name=
"db_
type
"
value=
"sqlsrv"
/>
<var
name=
"db_
driver
"
value=
"sqlsrv"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_host"
value=
"127.0.0.1"
/>
<var
name=
"db_user
name
"
value=
"sa"
/>
<var
name=
"db_user"
value=
"sa"
/>
<var
name=
"db_password"
value=
"Doctrine2018"
/>
<var
name=
"db_password"
value=
"Doctrine2018"
/>
<var
name=
"db_name"
value=
"doctrine"
/>
<var
name=
"db_dbname"
value=
"doctrine"
/>
<var
name=
"db_port"
value=
"1433"
/>
<var
name=
"tmpdb_type"
value=
"sqlsrv"
/>
<var
name=
"tmpdb_host"
value=
"127.0.0.1"
/>
<var
name=
"tmpdb_username"
value=
"sa"
/>
<var
name=
"tmpdb_password"
value=
"Doctrine2018"
/>
<var
name=
"tmpdb_port"
value=
"1433"
/>
</php>
</php>
<testsuites>
<testsuites>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment