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
b6a19efc
Unverified
Commit
b6a19efc
authored
Jun 28, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework detection of loaded PHP extensions in tests
parent
60f9ff70
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
81 additions
and
140 deletions
+81
-140
DB2ConnectionTest.php
...s/Doctrine/Tests/DBAL/Driver/IBMDB2/DB2ConnectionTest.php
+3
-5
MysqliConnectionTest.php
...octrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php
+3
-5
OCI8ConnectionTest.php
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8ConnectionTest.php
+3
-5
OCI8StatementTest.php
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php
+3
-10
PDOExceptionTest.php
tests/Doctrine/Tests/DBAL/Driver/PDOExceptionTest.php
+3
-5
SQLAnywhereConnectionTest.php
...sts/DBAL/Driver/SQLAnywhere/SQLAnywhereConnectionTest.php
+3
-5
SQLSrvConnectionTest.php
...octrine/Tests/DBAL/Driver/SQLSrv/SQLSrvConnectionTest.php
+3
-5
DB2DriverTest.php
...ine/Tests/DBAL/Functional/Driver/IBMDB2/DB2DriverTest.php
+3
-5
DB2StatementTest.php
.../Tests/DBAL/Functional/Driver/IBMDB2/DB2StatementTest.php
+3
-5
ConnectionTest.php
...ne/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php
+3
-5
DriverTest.php
...ctrine/Tests/DBAL/Functional/Driver/Mysqli/DriverTest.php
+3
-5
DriverTest.php
...Doctrine/Tests/DBAL/Functional/Driver/OCI8/DriverTest.php
+3
-5
OCI8ConnectionTest.php
.../Tests/DBAL/Functional/Driver/OCI8/OCI8ConnectionTest.php
+3
-5
StatementTest.php
...trine/Tests/DBAL/Functional/Driver/OCI8/StatementTest.php
+3
-5
PDOConnectionTest.php
...ctrine/Tests/DBAL/Functional/Driver/PDOConnectionTest.php
+3
-5
DriverTest.php
...rine/Tests/DBAL/Functional/Driver/PDOMySql/DriverTest.php
+3
-5
DriverTest.php
...ine/Tests/DBAL/Functional/Driver/PDOOracle/DriverTest.php
+3
-5
DriverTest.php
...rine/Tests/DBAL/Functional/Driver/PDOPgSql/DriverTest.php
+3
-5
PDOPgsqlConnectionTest.php
...e/Tests/DBAL/Functional/Driver/PDOPgsqlConnectionTest.php
+3
-5
DriverTest.php
...ine/Tests/DBAL/Functional/Driver/PDOSqlite/DriverTest.php
+3
-5
DriverTest.php
...ine/Tests/DBAL/Functional/Driver/PDOSqlsrv/DriverTest.php
+3
-5
ConnectionTest.php
...sts/DBAL/Functional/Driver/SQLAnywhere/ConnectionTest.php
+3
-5
DriverTest.php
...e/Tests/DBAL/Functional/Driver/SQLAnywhere/DriverTest.php
+3
-5
StatementTest.php
...ests/DBAL/Functional/Driver/SQLAnywhere/StatementTest.php
+3
-5
DriverTest.php
...ctrine/Tests/DBAL/Functional/Driver/SQLSrv/DriverTest.php
+3
-5
StatementTest.php
...ine/Tests/DBAL/Functional/Driver/SQLSrv/StatementTest.php
+3
-5
PDOStatementTest.php
tests/Doctrine/Tests/DBAL/Functional/PDOStatementTest.php
+3
-5
No files found.
tests/Doctrine/Tests/DBAL/Driver/IBMDB2/DB2ConnectionTest.php
View file @
b6a19efc
...
@@ -5,8 +5,10 @@ namespace Doctrine\Tests\DBAL\Driver\IBMDB2;
...
@@ -5,8 +5,10 @@ namespace Doctrine\Tests\DBAL\Driver\IBMDB2;
use
Doctrine\DBAL\Driver\IBMDB2\DB2Connection
;
use
Doctrine\DBAL\Driver\IBMDB2\DB2Connection
;
use
Doctrine\Tests\DbalTestCase
;
use
Doctrine\Tests\DbalTestCase
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
function
extension_loaded
;
/**
* @requires extension ibm_db2
*/
class
DB2ConnectionTest
extends
DbalTestCase
class
DB2ConnectionTest
extends
DbalTestCase
{
{
/**
/**
...
@@ -18,10 +20,6 @@ class DB2ConnectionTest extends DbalTestCase
...
@@ -18,10 +20,6 @@ class DB2ConnectionTest extends DbalTestCase
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'ibm_db2'
))
{
$this
->
markTestSkipped
(
'ibm_db2 is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
$this
->
connectionMock
=
$this
->
getMockBuilder
(
DB2Connection
::
class
)
$this
->
connectionMock
=
$this
->
getMockBuilder
(
DB2Connection
::
class
)
...
...
tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php
View file @
b6a19efc
...
@@ -7,10 +7,12 @@ use Doctrine\DBAL\Driver\Mysqli\MysqliException;
...
@@ -7,10 +7,12 @@ use Doctrine\DBAL\Driver\Mysqli\MysqliException;
use
Doctrine\DBAL\Platforms\MySqlPlatform
;
use
Doctrine\DBAL\Platforms\MySqlPlatform
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
function
extension_loaded
;
use
function
restore_error_handler
;
use
function
restore_error_handler
;
use
function
set_error_handler
;
use
function
set_error_handler
;
/**
* @requires extension mysqli
*/
class
MysqliConnectionTest
extends
DbalFunctionalTestCase
class
MysqliConnectionTest
extends
DbalFunctionalTestCase
{
{
/**
/**
...
@@ -22,10 +24,6 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
...
@@ -22,10 +24,6 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'mysqli'
))
{
$this
->
markTestSkipped
(
'mysqli is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
!
$this
->
connection
->
getDatabasePlatform
()
instanceof
MySqlPlatform
)
{
if
(
!
$this
->
connection
->
getDatabasePlatform
()
instanceof
MySqlPlatform
)
{
...
...
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8ConnectionTest.php
View file @
b6a19efc
...
@@ -5,8 +5,10 @@ namespace Doctrine\Tests\DBAL\Driver\OCI8;
...
@@ -5,8 +5,10 @@ namespace Doctrine\Tests\DBAL\Driver\OCI8;
use
Doctrine\DBAL\Driver\OCI8\OCI8Connection
;
use
Doctrine\DBAL\Driver\OCI8\OCI8Connection
;
use
Doctrine\Tests\DbalTestCase
;
use
Doctrine\Tests\DbalTestCase
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
function
extension_loaded
;
/**
* @requires extension oci8
*/
class
OCI8ConnectionTest
extends
DbalTestCase
class
OCI8ConnectionTest
extends
DbalTestCase
{
{
/**
/**
...
@@ -18,10 +20,6 @@ class OCI8ConnectionTest extends DbalTestCase
...
@@ -18,10 +20,6 @@ class OCI8ConnectionTest extends DbalTestCase
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'oci8'
))
{
$this
->
markTestSkipped
(
'oci8 is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
$this
->
connectionMock
=
$this
->
getMockBuilder
(
OCI8Connection
::
class
)
$this
->
connectionMock
=
$this
->
getMockBuilder
(
OCI8Connection
::
class
)
...
...
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php
View file @
b6a19efc
...
@@ -7,19 +7,12 @@ use Doctrine\DBAL\Driver\OCI8\OCI8Exception;
...
@@ -7,19 +7,12 @@ use Doctrine\DBAL\Driver\OCI8\OCI8Exception;
use
Doctrine\DBAL\Driver\OCI8\OCI8Statement
;
use
Doctrine\DBAL\Driver\OCI8\OCI8Statement
;
use
Doctrine\Tests\DbalTestCase
;
use
Doctrine\Tests\DbalTestCase
;
use
ReflectionProperty
;
use
ReflectionProperty
;
use
function
extension_loaded
;
/**
* @requires extension oci8
*/
class
OCI8StatementTest
extends
DbalTestCase
class
OCI8StatementTest
extends
DbalTestCase
{
{
protected
function
setUp
()
:
void
{
if
(
!
extension_loaded
(
'oci8'
))
{
$this
->
markTestSkipped
(
'oci8 is not installed.'
);
}
parent
::
setUp
();
}
/**
/**
* This scenario shows that when the first parameter is not null
* This scenario shows that when the first parameter is not null
* it properly sets $hasZeroIndex to 1 and calls bindValue starting at 1.
* it properly sets $hasZeroIndex to 1 and calls bindValue starting at 1.
...
...
tests/Doctrine/Tests/DBAL/Driver/PDOExceptionTest.php
View file @
b6a19efc
...
@@ -5,8 +5,10 @@ namespace Doctrine\Tests\DBAL\Driver;
...
@@ -5,8 +5,10 @@ namespace Doctrine\Tests\DBAL\Driver;
use
Doctrine\DBAL\Driver\PDOException
;
use
Doctrine\DBAL\Driver\PDOException
;
use
Doctrine\Tests\DbalTestCase
;
use
Doctrine\Tests\DbalTestCase
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
function
extension_loaded
;
/**
* @requires extension pdo
*/
class
PDOExceptionTest
extends
DbalTestCase
class
PDOExceptionTest
extends
DbalTestCase
{
{
public
const
ERROR_CODE
=
666
;
public
const
ERROR_CODE
=
666
;
...
@@ -31,10 +33,6 @@ class PDOExceptionTest extends DbalTestCase
...
@@ -31,10 +33,6 @@ class PDOExceptionTest extends DbalTestCase
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'PDO'
))
{
$this
->
markTestSkipped
(
'PDO is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
$this
->
wrappedException
=
new
\PDOException
(
self
::
MESSAGE
,
self
::
SQLSTATE
);
$this
->
wrappedException
=
new
\PDOException
(
self
::
MESSAGE
,
self
::
SQLSTATE
);
...
...
tests/Doctrine/Tests/DBAL/Driver/SQLAnywhere/SQLAnywhereConnectionTest.php
View file @
b6a19efc
...
@@ -5,8 +5,10 @@ namespace Doctrine\Tests\DBAL\Driver\SQLAnywhere;
...
@@ -5,8 +5,10 @@ namespace Doctrine\Tests\DBAL\Driver\SQLAnywhere;
use
Doctrine\DBAL\Driver\SQLAnywhere\SQLAnywhereConnection
;
use
Doctrine\DBAL\Driver\SQLAnywhere\SQLAnywhereConnection
;
use
Doctrine\Tests\DbalTestCase
;
use
Doctrine\Tests\DbalTestCase
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
function
extension_loaded
;
/**
* @requires extension sqlanywhere
*/
class
SQLAnywhereConnectionTest
extends
DbalTestCase
class
SQLAnywhereConnectionTest
extends
DbalTestCase
{
{
/**
/**
...
@@ -18,10 +20,6 @@ class SQLAnywhereConnectionTest extends DbalTestCase
...
@@ -18,10 +20,6 @@ class SQLAnywhereConnectionTest extends DbalTestCase
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'sqlanywhere'
))
{
$this
->
markTestSkipped
(
'sqlanywhere is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
$this
->
connectionMock
=
$this
->
getMockBuilder
(
SQLAnywhereConnection
::
class
)
$this
->
connectionMock
=
$this
->
getMockBuilder
(
SQLAnywhereConnection
::
class
)
...
...
tests/Doctrine/Tests/DBAL/Driver/SQLSrv/SQLSrvConnectionTest.php
View file @
b6a19efc
...
@@ -5,7 +5,6 @@ namespace Doctrine\Tests\DBAL\Driver\SQLSrv;
...
@@ -5,7 +5,6 @@ namespace Doctrine\Tests\DBAL\Driver\SQLSrv;
use
Doctrine\DBAL\Driver\SQLSrv\SQLSrvConnection
;
use
Doctrine\DBAL\Driver\SQLSrv\SQLSrvConnection
;
use
Doctrine\Tests\DbalTestCase
;
use
Doctrine\Tests\DbalTestCase
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
function
extension_loaded
;
class
SQLSrvConnectionTest
extends
DbalTestCase
class
SQLSrvConnectionTest
extends
DbalTestCase
{
{
...
@@ -16,12 +15,11 @@ class SQLSrvConnectionTest extends DbalTestCase
...
@@ -16,12 +15,11 @@ class SQLSrvConnectionTest extends DbalTestCase
*/
*/
private
$connectionMock
;
private
$connectionMock
;
/**
* @requires extension sqlsrv
*/
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'sqlsrv'
))
{
$this
->
markTestSkipped
(
'sqlsrv is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
$this
->
connectionMock
=
$this
->
getMockBuilder
(
SQLSrvConnection
::
class
)
$this
->
connectionMock
=
$this
->
getMockBuilder
(
SQLSrvConnection
::
class
)
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/IBMDB2/DB2DriverTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\IBMDB2;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\IBMDB2;
use
Doctrine\DBAL\Driver
;
use
Doctrine\DBAL\Driver
;
use
Doctrine\DBAL\Driver\IBMDB2\DB2Driver
;
use
Doctrine\DBAL\Driver\IBMDB2\DB2Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
function
extension_loaded
;
/**
* @requires extension ibm_db2
*/
class
DB2DriverTest
extends
AbstractDriverTest
class
DB2DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'ibm_db2'
))
{
$this
->
markTestSkipped
(
'ibm_db2 is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
DB2Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
DB2Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/IBMDB2/DB2StatementTest.php
View file @
b6a19efc
...
@@ -7,16 +7,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\IBMDB2;
...
@@ -7,16 +7,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\IBMDB2;
use
Doctrine\DBAL\Driver\IBMDB2\DB2Driver
;
use
Doctrine\DBAL\Driver\IBMDB2\DB2Driver
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
PHPUnit\Framework\Error\Notice
;
use
PHPUnit\Framework\Error\Notice
;
use
function
extension_loaded
;
/**
* @requires extension ibm_db2
*/
class
DB2StatementTest
extends
DbalFunctionalTestCase
class
DB2StatementTest
extends
DbalFunctionalTestCase
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'ibm_db2'
))
{
$this
->
markTestSkipped
(
'ibm_db2 is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
DB2Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
DB2Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php
View file @
b6a19efc
...
@@ -7,17 +7,15 @@ use Doctrine\DBAL\Driver\Mysqli\MysqliConnection;
...
@@ -7,17 +7,15 @@ 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
Doctrine\Tests\TestUtil
;
use
function
extension_loaded
;
use
const
MYSQLI_OPT_CONNECT_TIMEOUT
;
use
const
MYSQLI_OPT_CONNECT_TIMEOUT
;
/**
* @requires extension mysqli
*/
class
ConnectionTest
extends
DbalFunctionalTestCase
class
ConnectionTest
extends
DbalFunctionalTestCase
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'mysqli'
))
{
$this
->
markTestSkipped
(
'mysqli is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/DriverTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\Mysqli;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\Mysqli;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver\Mysqli\Driver
;
use
Doctrine\DBAL\Driver\Mysqli\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
function
extension_loaded
;
/**
* @requires extension mysqli
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'mysqli'
))
{
$this
->
markTestSkipped
(
'mysqli is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/OCI8/DriverTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\OCI8;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\OCI8;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver\OCI8\Driver
;
use
Doctrine\DBAL\Driver\OCI8\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
function
extension_loaded
;
/**
* @requires extension oci8
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'oci8'
))
{
$this
->
markTestSkipped
(
'oci8 is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/OCI8/OCI8ConnectionTest.php
View file @
b6a19efc
...
@@ -6,8 +6,10 @@ use Doctrine\DBAL\Driver\OCI8\Driver;
...
@@ -6,8 +6,10 @@ use Doctrine\DBAL\Driver\OCI8\Driver;
use
Doctrine\DBAL\Driver\OCI8\OCI8Connection
;
use
Doctrine\DBAL\Driver\OCI8\OCI8Connection
;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
function
extension_loaded
;
/**
* @requires extension oci8
*/
class
OCI8ConnectionTest
extends
DbalFunctionalTestCase
class
OCI8ConnectionTest
extends
DbalFunctionalTestCase
{
{
/** @var OCI8Connection */
/** @var OCI8Connection */
...
@@ -15,10 +17,6 @@ class OCI8ConnectionTest extends DbalFunctionalTestCase
...
@@ -15,10 +17,6 @@ class OCI8ConnectionTest extends DbalFunctionalTestCase
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'oci8'
))
{
$this
->
markTestSkipped
(
'oci8 is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
!
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
!
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/OCI8/StatementTest.php
View file @
b6a19efc
...
@@ -4,16 +4,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\OCI8;
...
@@ -4,16 +4,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\OCI8;
use
Doctrine\DBAL\Driver\OCI8\Driver
;
use
Doctrine\DBAL\Driver\OCI8\Driver
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
function
extension_loaded
;
/**
* @requires extension oci8
*/
class
StatementTest
extends
DbalFunctionalTestCase
class
StatementTest
extends
DbalFunctionalTestCase
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'oci8'
))
{
$this
->
markTestSkipped
(
'oci8 is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOConnectionTest.php
View file @
b6a19efc
...
@@ -9,10 +9,12 @@ use Doctrine\DBAL\Driver\PDOPgSql\Driver as PDOPgSQLDriver;
...
@@ -9,10 +9,12 @@ use Doctrine\DBAL\Driver\PDOPgSql\Driver as PDOPgSQLDriver;
use
Doctrine\DBAL\Driver\PDOSqlsrv\Driver
as
PDOSQLSRVDriver
;
use
Doctrine\DBAL\Driver\PDOSqlsrv\Driver
as
PDOSQLSRVDriver
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
PDO
;
use
PDO
;
use
function
extension_loaded
;
use
function
get_class
;
use
function
get_class
;
use
function
sprintf
;
use
function
sprintf
;
/**
* @requires extension pdo
*/
class
PDOConnectionTest
extends
DbalFunctionalTestCase
class
PDOConnectionTest
extends
DbalFunctionalTestCase
{
{
/**
/**
...
@@ -24,10 +26,6 @@ class PDOConnectionTest extends DbalFunctionalTestCase
...
@@ -24,10 +26,6 @@ class PDOConnectionTest extends DbalFunctionalTestCase
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'PDO'
))
{
$this
->
markTestSkipped
(
'PDO is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
$this
->
driverConnection
=
$this
->
connection
->
getWrappedConnection
();
$this
->
driverConnection
=
$this
->
connection
->
getWrappedConnection
();
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOMySql/DriverTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\PDOMySql;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\PDOMySql;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver\PDOMySql\Driver
;
use
Doctrine\DBAL\Driver\PDOMySql\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
function
extension_loaded
;
/**
* @requires extension pdo_mysql
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'pdo_mysql'
))
{
$this
->
markTestSkipped
(
'pdo_mysql is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOOracle/DriverTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\PDOOracle;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\PDOOracle;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver\PDOOracle\Driver
;
use
Doctrine\DBAL\Driver\PDOOracle\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
function
extension_loaded
;
/**
* @requires extension pdo_oci
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'PDO_OCI'
))
{
$this
->
markTestSkipped
(
'PDO_OCI is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOPgSql/DriverTest.php
View file @
b6a19efc
...
@@ -8,18 +8,16 @@ use Doctrine\DBAL\Driver\PDOPgSql\Driver;
...
@@ -8,18 +8,16 @@ use Doctrine\DBAL\Driver\PDOPgSql\Driver;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\TestUtil
;
use
Doctrine\Tests\TestUtil
;
use
function
array_key_exists
;
use
function
array_key_exists
;
use
function
extension_loaded
;
use
function
microtime
;
use
function
microtime
;
use
function
sprintf
;
use
function
sprintf
;
/**
* @requires extension pdo_pgsql
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'pdo_pgsql'
))
{
$this
->
markTestSkipped
(
'pdo_pgsql is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOPgsqlConnectionTest.php
View file @
b6a19efc
...
@@ -6,16 +6,14 @@ use Doctrine\DBAL\DriverManager;
...
@@ -6,16 +6,14 @@ use Doctrine\DBAL\DriverManager;
use
Doctrine\DBAL\FetchMode
;
use
Doctrine\DBAL\FetchMode
;
use
Doctrine\DBAL\Platforms\PostgreSqlPlatform
;
use
Doctrine\DBAL\Platforms\PostgreSqlPlatform
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
function
extension_loaded
;
/**
* @requires extension pdo_pgsql
*/
class
PDOPgsqlConnectionTest
extends
DbalFunctionalTestCase
class
PDOPgsqlConnectionTest
extends
DbalFunctionalTestCase
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'pdo_pgsql'
))
{
$this
->
markTestSkipped
(
'pdo_pgsql is not loaded.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDatabasePlatform
()
instanceof
PostgreSqlPlatform
)
{
if
(
$this
->
connection
->
getDatabasePlatform
()
instanceof
PostgreSqlPlatform
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOSqlite/DriverTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\PDOSqlite;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\PDOSqlite;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver\PDOSqlite\Driver
;
use
Doctrine\DBAL\Driver\PDOSqlite\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
function
extension_loaded
;
/**
* @requires extension pdo_sqlite
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'pdo_sqlite'
))
{
$this
->
markTestSkipped
(
'pdo_sqlite is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOSqlsrv/DriverTest.php
View file @
b6a19efc
...
@@ -8,16 +8,14 @@ use Doctrine\DBAL\Driver\PDOSqlsrv\Driver;
...
@@ -8,16 +8,14 @@ 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
Doctrine\Tests\TestUtil
;
use
PDO
;
use
PDO
;
use
function
extension_loaded
;
/**
* @requires extension pdo_sqlsrv
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'pdo_sqlsrv'
))
{
$this
->
markTestSkipped
(
'pdo_sqlsrv is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLAnywhere/ConnectionTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere;
use
Doctrine\DBAL\Driver\SQLAnywhere\Driver
;
use
Doctrine\DBAL\Driver\SQLAnywhere\Driver
;
use
Doctrine\DBAL\DriverManager
;
use
Doctrine\DBAL\DriverManager
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
function
extension_loaded
;
/**
* @requires extension sqlanywhere
*/
class
ConnectionTest
extends
DbalFunctionalTestCase
class
ConnectionTest
extends
DbalFunctionalTestCase
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'sqlanywhere'
))
{
$this
->
markTestSkipped
(
'sqlanywhere is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLAnywhere/DriverTest.php
View file @
b6a19efc
...
@@ -6,16 +6,14 @@ use Doctrine\DBAL\Connection;
...
@@ -6,16 +6,14 @@ use Doctrine\DBAL\Connection;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver\SQLAnywhere\Driver
;
use
Doctrine\DBAL\Driver\SQLAnywhere\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
function
extension_loaded
;
/**
* @requires extension sqlanywhere
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'sqlanywhere'
))
{
$this
->
markTestSkipped
(
'sqlanywhere is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLAnywhere/StatementTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere;
use
Doctrine\DBAL\Driver\SQLAnywhere\Driver
;
use
Doctrine\DBAL\Driver\SQLAnywhere\Driver
;
use
Doctrine\DBAL\DriverManager
;
use
Doctrine\DBAL\DriverManager
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
function
extension_loaded
;
/**
* @requires extension sqlanywhere
*/
class
StatementTest
extends
DbalFunctionalTestCase
class
StatementTest
extends
DbalFunctionalTestCase
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'sqlanywhere'
))
{
$this
->
markTestSkipped
(
'sqlanywhere is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLSrv/DriverTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\SQLSrv;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\SQLSrv;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver
as
DriverInterface
;
use
Doctrine\DBAL\Driver\SQLSrv\Driver
;
use
Doctrine\DBAL\Driver\SQLSrv\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
use
function
extension_loaded
;
/**
* @requires extension sqlsrv
*/
class
DriverTest
extends
AbstractDriverTest
class
DriverTest
extends
AbstractDriverTest
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'sqlsrv'
))
{
$this
->
markTestSkipped
(
'sqlsrv is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLSrv/StatementTest.php
View file @
b6a19efc
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\SQLSrv;
...
@@ -5,16 +5,14 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\SQLSrv;
use
Doctrine\DBAL\Driver\SQLSrv\Driver
;
use
Doctrine\DBAL\Driver\SQLSrv\Driver
;
use
Doctrine\DBAL\Driver\SQLSrv\SQLSrvException
;
use
Doctrine\DBAL\Driver\SQLSrv\SQLSrvException
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
function
extension_loaded
;
/**
* @requires extension sqlsrv
*/
class
StatementTest
extends
DbalFunctionalTestCase
class
StatementTest
extends
DbalFunctionalTestCase
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'sqlsrv'
))
{
self
::
markTestSkipped
(
'sqlsrv is not installed.'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
if
(
$this
->
connection
->
getDriver
()
instanceof
Driver
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/PDOStatementTest.php
View file @
b6a19efc
...
@@ -6,16 +6,14 @@ use Doctrine\DBAL\Driver\PDOConnection;
...
@@ -6,16 +6,14 @@ use Doctrine\DBAL\Driver\PDOConnection;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
PDO
;
use
PDO
;
use
function
extension_loaded
;
/**
* @requires extension pdo
*/
class
PDOStatementTest
extends
DbalFunctionalTestCase
class
PDOStatementTest
extends
DbalFunctionalTestCase
{
{
protected
function
setUp
()
:
void
protected
function
setUp
()
:
void
{
{
if
(
!
extension_loaded
(
'pdo'
))
{
$this
->
markTestSkipped
(
'PDO is not installed'
);
}
parent
::
setUp
();
parent
::
setUp
();
if
(
!
$this
->
connection
->
getWrappedConnection
()
instanceof
PDOConnection
)
{
if
(
!
$this
->
connection
->
getWrappedConnection
()
instanceof
PDOConnection
)
{
...
...
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