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
641ad645
Commit
641ad645
authored
Sep 10, 2015
by
Bill Schaller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #848 from deeky666/DBAL-1219
[DBAL-1219] Add missing functional driver test cases
parents
8317b026
f6d28a64
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
228 additions
and
0 deletions
+228
-0
DB2DriverTest.php
...ine/Tests/DBAL/Functional/Driver/IBMDB2/DB2DriverTest.php
+46
-0
DriverTest.php
...ctrine/Tests/DBAL/Functional/Driver/Mysqli/DriverTest.php
+30
-0
DriverTest.php
...Doctrine/Tests/DBAL/Functional/Driver/OCI8/DriverTest.php
+46
-0
DriverTest.php
...rine/Tests/DBAL/Functional/Driver/PDOMySql/DriverTest.php
+30
-0
DriverTest.php
...ine/Tests/DBAL/Functional/Driver/PDOOracle/DriverTest.php
+46
-0
DriverTest.php
...ine/Tests/DBAL/Functional/Driver/PDOSqlite/DriverTest.php
+30
-0
No files found.
tests/Doctrine/Tests/DBAL/Functional/Driver/IBMDB2/DB2DriverTest.php
0 → 100644
View file @
641ad645
<?php
namespace
Doctrine\Tests\DBAL\Functional\Driver\IBMDB2
;
use
Doctrine\DBAL\Driver\IBMDB2\DB2Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
class
DB2DriverTest
extends
AbstractDriverTest
{
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'ibm_db2'
))
{
$this
->
markTestSkipped
(
'ibm_db2 is not installed.'
);
}
parent
::
setUp
();
if
(
!
$this
->
_conn
->
getDriver
()
instanceof
DB2Driver
)
{
$this
->
markTestSkipped
(
'ibm_db2 only test.'
);
}
}
/**
* {@inheritdoc}
*/
public
function
testConnectsWithoutDatabaseNameParameter
()
{
$this
->
markTestSkipped
(
'IBM DB2 does not support connecting without database name.'
);
}
/**
* {@inheritdoc}
*/
public
function
testReturnsDatabaseNameWithoutDatabaseNameParameter
()
{
$this
->
markTestSkipped
(
'IBM DB2 does not support connecting without database name.'
);
}
/**
* {@inheritdoc}
*/
protected
function
createDriver
()
{
return
new
DB2Driver
();
}
}
tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/DriverTest.php
0 → 100644
View file @
641ad645
<?php
namespace
Doctrine\Tests\DBAL\Functional\Driver\Mysqli
;
use
Doctrine\DBAL\Driver\Mysqli\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
class
DriverTest
extends
AbstractDriverTest
{
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'mysqli'
))
{
$this
->
markTestSkipped
(
'mysqli is not installed.'
);
}
parent
::
setUp
();
if
(
!
$this
->
_conn
->
getDriver
()
instanceof
Driver
)
{
$this
->
markTestSkipped
(
'MySQLi only test.'
);
}
}
/**
* {@inheritdoc}
*/
protected
function
createDriver
()
{
return
new
Driver
();
}
}
tests/Doctrine/Tests/DBAL/Functional/Driver/OCI8/DriverTest.php
0 → 100644
View file @
641ad645
<?php
namespace
Doctrine\Tests\DBAL\Functional\Driver\OCI8
;
use
Doctrine\DBAL\Driver\OCI8\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
class
DriverTest
extends
AbstractDriverTest
{
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'oci8'
))
{
$this
->
markTestSkipped
(
'oci8 is not installed.'
);
}
parent
::
setUp
();
if
(
!
$this
->
_conn
->
getDriver
()
instanceof
Driver
)
{
$this
->
markTestSkipped
(
'oci8 only test.'
);
}
}
/**
* {@inheritdoc}
*/
public
function
testConnectsWithoutDatabaseNameParameter
()
{
$this
->
markTestSkipped
(
'Oracle does not support connecting without database name.'
);
}
/**
* {@inheritdoc}
*/
public
function
testReturnsDatabaseNameWithoutDatabaseNameParameter
()
{
$this
->
markTestSkipped
(
'Oracle does not support connecting without database name.'
);
}
/**
* {@inheritdoc}
*/
protected
function
createDriver
()
{
return
new
Driver
();
}
}
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOMySql/DriverTest.php
0 → 100644
View file @
641ad645
<?php
namespace
Doctrine\Tests\DBAL\Functional\Driver\PDOMySql
;
use
Doctrine\DBAL\Driver\PDOMySql\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
class
DriverTest
extends
AbstractDriverTest
{
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'pdo_mysql'
))
{
$this
->
markTestSkipped
(
'pdo_mysql is not installed.'
);
}
parent
::
setUp
();
if
(
!
$this
->
_conn
->
getDriver
()
instanceof
Driver
)
{
$this
->
markTestSkipped
(
'pdo_mysql only test.'
);
}
}
/**
* {@inheritdoc}
*/
protected
function
createDriver
()
{
return
new
Driver
();
}
}
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOOracle/DriverTest.php
0 → 100644
View file @
641ad645
<?php
namespace
Doctrine\Tests\DBAL\Functional\Driver\PDOOracle
;
use
Doctrine\DBAL\Driver\PDOOracle\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
class
DriverTest
extends
AbstractDriverTest
{
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'PDO_OCI'
))
{
$this
->
markTestSkipped
(
'PDO_OCI is not installed.'
);
}
parent
::
setUp
();
if
(
!
$this
->
_conn
->
getDriver
()
instanceof
Driver
)
{
$this
->
markTestSkipped
(
'PDO_OCI only test.'
);
}
}
/**
* {@inheritdoc}
*/
public
function
testConnectsWithoutDatabaseNameParameter
()
{
$this
->
markTestSkipped
(
'Oracle does not support connecting without database name.'
);
}
/**
* {@inheritdoc}
*/
public
function
testReturnsDatabaseNameWithoutDatabaseNameParameter
()
{
$this
->
markTestSkipped
(
'Oracle does not support connecting without database name.'
);
}
/**
* {@inheritdoc}
*/
protected
function
createDriver
()
{
return
new
Driver
();
}
}
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOSqlite/DriverTest.php
0 → 100644
View file @
641ad645
<?php
namespace
Doctrine\Tests\DBAL\Functional\Driver\PDOSqlite
;
use
Doctrine\DBAL\Driver\PDOSqlite\Driver
;
use
Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest
;
class
DriverTest
extends
AbstractDriverTest
{
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'pdo_sqlite'
))
{
$this
->
markTestSkipped
(
'pdo_sqlite is not installed.'
);
}
parent
::
setUp
();
if
(
!
$this
->
_conn
->
getDriver
()
instanceof
Driver
)
{
$this
->
markTestSkipped
(
'pdo_sqlite only test.'
);
}
}
/**
* {@inheritdoc}
*/
protected
function
createDriver
()
{
return
new
Driver
();
}
}
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