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
73134d0f
Commit
73134d0f
authored
Feb 10, 2017
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make functional sqlanywhere driver tests conditional
parent
dc871b00
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 @
73134d0f
...
@@ -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 @
73134d0f
...
@@ -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