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
eaafa67e
Commit
eaafa67e
authored
Feb 10, 2017
by
Marco Pivetta
Committed by
GitHub
Feb 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2654 from deeky666/fix-sqlanywhere-functional-driver-tests
Make functional sqlanywhere driver tests conditional
parents
dc871b00
73134d0f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
ConnectionTest.php
...sts/DBAL/Functional/Driver/SQLAnywhere/ConnectionTest.php
+14
-0
StatementTest.php
...ests/DBAL/Functional/Driver/SQLAnywhere/StatementTest.php
+14
-0
No files found.
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLAnywhere/ConnectionTest.php
View file @
eaafa67e
...
@@ -2,10 +2,24 @@
...
@@ -2,10 +2,24 @@
namespace
Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere
;
namespace
Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere
;
use
Doctrine\DBAL\Driver\SQLAnywhere\Driver
;
use
Doctrine\DBAL\DriverManager
;
use
Doctrine\DBAL\DriverManager
;
class
ConnectionTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
class
ConnectionTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
{
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'sqlanywhere'
))
{
$this
->
markTestSkipped
(
'sqlanywhere is not installed.'
);
}
parent
::
setUp
();
if
(
!
$this
->
_conn
->
getDriver
()
instanceof
Driver
)
{
$this
->
markTestSkipped
(
'sqlanywhere only test.'
);
}
}
public
function
testNonPersistentConnection
()
public
function
testNonPersistentConnection
()
{
{
$params
=
$this
->
_conn
->
getParams
();
$params
=
$this
->
_conn
->
getParams
();
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLAnywhere/StatementTest.php
View file @
eaafa67e
...
@@ -2,10 +2,24 @@
...
@@ -2,10 +2,24 @@
namespace
Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere
;
namespace
Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere
;
use
Doctrine\DBAL\Driver\SQLAnywhere\Driver
;
use
Doctrine\DBAL\DriverManager
;
use
Doctrine\DBAL\DriverManager
;
class
StatementTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
class
StatementTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
{
protected
function
setUp
()
{
if
(
!
extension_loaded
(
'sqlanywhere'
))
{
$this
->
markTestSkipped
(
'sqlanywhere is not installed.'
);
}
parent
::
setUp
();
if
(
!
$this
->
_conn
->
getDriver
()
instanceof
Driver
)
{
$this
->
markTestSkipped
(
'sqlanywhere only test.'
);
}
}
public
function
testNonPersistentStatement
()
public
function
testNonPersistentStatement
()
{
{
$params
=
$this
->
_conn
->
getParams
();
$params
=
$this
->
_conn
->
getParams
();
...
...
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