Commit 20561717 authored by Andreas Pohl's avatar Andreas Pohl Committed by Steve Müller

corrected functional tests

removed unnecessary  setup/teardown-methods
parent 05c4d3fb
<?php <?php
namespace Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere; namespace Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere;
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 \Doctrine\DBAL\Driver\SQLAnywhere\Driver)) {
$this->markTestSkipped('sqlanywhere only test.');
}
}
protected function tearDown()
{
parent::tearDown();
}
public function testNonPersistentConnection() public function testNonPersistentConnection()
{ {
$params = $this->_conn->getParams(); $params = $this->_conn->getParams();
......
<?php <?php
namespace Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere; namespace Doctrine\Tests\DBAL\Functional\Driver\SQLAnywhere;
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 \Doctrine\DBAL\Driver\SQLAnywhere\Driver)) {
$this->markTestSkipped('sqlanywhere only test.');
}
}
protected function tearDown()
{
parent::tearDown();
}
public function testNonPersistentStatement() public function testNonPersistentStatement()
{ {
$params = $this->_conn->getParams(); $params = $this->_conn->getParams();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment