Commit dfb44bda authored by Marco Pivetta's avatar Marco Pivetta

Merge pull request #778 from deeky666/cleanup-phpunit-testsuite-init

[DBAL-1122] Cleanup PHPUnit test suite bootstrap
parents 9e7a971c d4b2930e
...@@ -22,8 +22,6 @@ namespace Doctrine\Tests\DBAL; ...@@ -22,8 +22,6 @@ namespace Doctrine\Tests\DBAL;
use Doctrine\DBAL\Configuration; use Doctrine\DBAL\Configuration;
use Doctrine\Tests\DbalTestCase; use Doctrine\Tests\DbalTestCase;
require_once __DIR__ . '/../TestInit.php';
/** /**
* Unit tests for the configuration container. * Unit tests for the configuration container.
* *
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL; namespace Doctrine\Tests\DBAL;
require_once __DIR__ . '/../TestInit.php';
use Doctrine\Common\EventManager; use Doctrine\Common\EventManager;
use Doctrine\DBAL\Configuration; use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL; namespace Doctrine\Tests\DBAL;
require_once __DIR__ . '/../../../TestInit.php';
class OCI8StatementTest extends \Doctrine\Tests\DbalTestCase class OCI8StatementTest extends \Doctrine\Tests\DbalTestCase
{ {
public function setUp() public function setUp()
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL; namespace Doctrine\Tests\DBAL;
require_once __DIR__ . '/../TestInit.php';
class DriverManagerTest extends \Doctrine\Tests\DbalTestCase class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
{ {
/** /**
...@@ -114,7 +112,7 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase ...@@ -114,7 +112,7 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
$conn = \Doctrine\DBAL\DriverManager::getConnection($options); $conn = \Doctrine\DBAL\DriverManager::getConnection($options);
$this->assertInstanceOf('Doctrine\DBAL\Driver\PDOMySql\Driver', $conn->getDriver()); $this->assertInstanceOf('Doctrine\DBAL\Driver\PDOMySql\Driver', $conn->getDriver());
} }
/** /**
* @dataProvider databaseUrls * @dataProvider databaseUrls
*/ */
...@@ -123,13 +121,13 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase ...@@ -123,13 +121,13 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
$options = is_array($url) ? $url : array( $options = is_array($url) ? $url : array(
'url' => $url, 'url' => $url,
); );
if ($expected === false) { if ($expected === false) {
$this->setExpectedException('Doctrine\DBAL\DBALException'); $this->setExpectedException('Doctrine\DBAL\DBALException');
} }
$conn = \Doctrine\DBAL\DriverManager::getConnection($options); $conn = \Doctrine\DBAL\DriverManager::getConnection($options);
$params = $conn->getParams(); $params = $conn->getParams();
foreach ($expected as $key => $value) { foreach ($expected as $key => $value) {
if ($key == 'driver') { if ($key == 'driver') {
...@@ -139,7 +137,7 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase ...@@ -139,7 +137,7 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
} }
} }
} }
public function databaseUrls() public function databaseUrls()
{ {
return array( return array(
......
...@@ -7,8 +7,6 @@ use Doctrine\DBAL\Event\Listeners\MysqlSessionInit; ...@@ -7,8 +7,6 @@ use Doctrine\DBAL\Event\Listeners\MysqlSessionInit;
use Doctrine\DBAL\Events; use Doctrine\DBAL\Events;
use Doctrine\Tests\DbalTestCase; use Doctrine\Tests\DbalTestCase;
require_once __DIR__ . '/../../TestInit.php';
class MysqlSessionInitTest extends DbalTestCase class MysqlSessionInitTest extends DbalTestCase
{ {
public function testPostConnect() public function testPostConnect()
......
...@@ -7,8 +7,6 @@ use Doctrine\DBAL\Event\Listeners\OracleSessionInit; ...@@ -7,8 +7,6 @@ use Doctrine\DBAL\Event\Listeners\OracleSessionInit;
use Doctrine\DBAL\Events; use Doctrine\DBAL\Events;
use Doctrine\Tests\DbalTestCase; use Doctrine\Tests\DbalTestCase;
require_once __DIR__ . '/../../TestInit.php';
class OracleSessionInitTest extends DbalTestCase class OracleSessionInitTest extends DbalTestCase
{ {
public function testPostConnect() public function testPostConnect()
......
...@@ -7,8 +7,6 @@ use Doctrine\DBAL\Event\Listeners\SQLSessionInit; ...@@ -7,8 +7,6 @@ use Doctrine\DBAL\Event\Listeners\SQLSessionInit;
use Doctrine\DBAL\Events; use Doctrine\DBAL\Events;
use Doctrine\Tests\DbalTestCase; use Doctrine\Tests\DbalTestCase;
require_once __DIR__ . '/../../TestInit.php';
/** /**
* @group DBAL-169 * @group DBAL-169
*/ */
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Functional; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Functional;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use PDO; use PDO;
require_once __DIR__ . '/../../TestInit.php';
/** /**
* @group DBAL-6 * @group DBAL-6
*/ */
......
...@@ -6,8 +6,6 @@ use Doctrine\DBAL\ConnectionException; ...@@ -6,8 +6,6 @@ use Doctrine\DBAL\ConnectionException;
use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
require_once __DIR__ . '/../../TestInit.php';
class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
public function setUp() public function setUp()
......
...@@ -7,8 +7,6 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -7,8 +7,6 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use PDO; use PDO;
require_once __DIR__ . '/../../TestInit.php';
class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
static private $generated = false; static private $generated = false;
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Functional; namespace Doctrine\Tests\DBAL\Functional;
require_once __DIR__ . '/../../TestInit.php';
class ModifyLimitQueryTest extends \Doctrine\Tests\DbalFunctionalTestCase class ModifyLimitQueryTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
private static $tableCreated = false; private static $tableCreated = false;
......
...@@ -5,9 +5,6 @@ namespace Doctrine\Tests\DBAL\Functional\Ticket; ...@@ -5,9 +5,6 @@ namespace Doctrine\Tests\DBAL\Functional\Ticket;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
use PDO; use PDO;
require_once __DIR__ . '/../../TestInit.php';
/** /**
* @group DDC-1372 * @group DDC-1372
*/ */
......
...@@ -7,8 +7,6 @@ use Doctrine\DBAL\DriverManager; ...@@ -7,8 +7,6 @@ use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Portability\Connection as ConnectionPortability; use Doctrine\DBAL\Portability\Connection as ConnectionPortability;
use PDO; use PDO;
require_once __DIR__ . '/../../TestInit.php';
/** /**
* @group DBAL-56 * @group DBAL-56
*/ */
......
...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional; ...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional;
use Doctrine\DBAL\Cache\QueryCacheProfile; use Doctrine\DBAL\Cache\QueryCacheProfile;
use PDO; use PDO;
require_once __DIR__ . '/../../TestInit.php';
/** /**
* @group DDC-217 * @group DDC-217
*/ */
...@@ -64,7 +62,7 @@ class ResultCacheTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -64,7 +62,7 @@ class ResultCacheTest extends \Doctrine\Tests\DbalFunctionalTestCase
} }
$this->assertCacheNonCacheSelectSameFetchModeAreEqual($expectedResult, \PDO::FETCH_BOTH); $this->assertCacheNonCacheSelectSameFetchModeAreEqual($expectedResult, \PDO::FETCH_BOTH);
} }
public function testFetchColumn() public function testFetchColumn()
{ {
$expectedResult = array(); $expectedResult = array();
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Functional\Schema; namespace Doctrine\Tests\DBAL\Functional\Schema;
require_once __DIR__ . '/../../../TestInit.php';
class Db2SchemaManagerTest extends SchemaManagerFunctionalTestCase class Db2SchemaManagerTest extends SchemaManagerFunctionalTestCase
{ {
......
...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional\Schema; ...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional\Schema;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
require_once __DIR__ . '/../../../TestInit.php';
class DrizzleSchemaManagerTest extends SchemaManagerFunctionalTestCase class DrizzleSchemaManagerTest extends SchemaManagerFunctionalTestCase
{ {
public function testListTableWithBinary() public function testListTableWithBinary()
......
...@@ -8,8 +8,6 @@ use Doctrine\DBAL\Schema\Schema; ...@@ -8,8 +8,6 @@ use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
require_once __DIR__ . '/../../../TestInit.php';
class MySqlSchemaManagerTest extends SchemaManagerFunctionalTestCase class MySqlSchemaManagerTest extends SchemaManagerFunctionalTestCase
{ {
protected function setUp() protected function setUp()
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Functional\Schema; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Functional\Schema;
use Doctrine\DBAL\Schema; use Doctrine\DBAL\Schema;
use Doctrine\Tests\TestUtil; use Doctrine\Tests\TestUtil;
require_once __DIR__ . '/../../../TestInit.php';
class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
{ {
public function setUp() public function setUp()
......
...@@ -6,8 +6,6 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -6,8 +6,6 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Schema; use Doctrine\DBAL\Schema;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
require_once __DIR__ . '/../../../TestInit.php';
class PostgreSqlSchemaManagerTest extends SchemaManagerFunctionalTestCase class PostgreSqlSchemaManagerTest extends SchemaManagerFunctionalTestCase
{ {
public function tearDown() public function tearDown()
......
...@@ -11,8 +11,6 @@ use Doctrine\DBAL\Schema\Table; ...@@ -11,8 +11,6 @@ use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
require_once __DIR__ . '/../../../TestInit.php';
class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTestCase class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
/** /**
......
...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional\Schema; ...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional\Schema;
use Doctrine\DBAL\Schema; use Doctrine\DBAL\Schema;
require_once __DIR__ . '/../../../TestInit.php';
class SqliteSchemaManagerTest extends SchemaManagerFunctionalTestCase class SqliteSchemaManagerTest extends SchemaManagerFunctionalTestCase
{ {
/** /**
......
...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional; ...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
require_once __DIR__ . '/../../TestInit.php';
class TypeConversionTest extends \Doctrine\Tests\DbalFunctionalTestCase class TypeConversionTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
static private $typeCounter = 0; static private $typeCounter = 0;
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Logging; namespace Doctrine\Tests\DBAL\Logging;
require_once __DIR__ . '/../../TestInit.php';
class DebugStackTest extends \Doctrine\Tests\DbalTestCase class DebugStackTest extends \Doctrine\Tests\DbalTestCase
{ {
public function setUp() public function setUp()
......
...@@ -9,8 +9,6 @@ use Doctrine\DBAL\Schema\ForeignKeyConstraint; ...@@ -9,8 +9,6 @@ use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
require_once __DIR__ . '/../../TestInit.php';
class OraclePlatformTest extends AbstractPlatformTestCase class OraclePlatformTest extends AbstractPlatformTestCase
{ {
static public function dataValidIdentifiers() static public function dataValidIdentifiers()
......
...@@ -9,8 +9,6 @@ use Doctrine\DBAL\Schema\Table; ...@@ -9,8 +9,6 @@ use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
require_once __DIR__ . '/../../TestInit.php';
class SqlitePlatformTest extends AbstractPlatformTestCase class SqlitePlatformTest extends AbstractPlatformTestCase
{ {
public function createPlatform() public function createPlatform()
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Portability; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Portability;
use Doctrine\DBAL\Portability\Connection; use Doctrine\DBAL\Portability\Connection;
use Doctrine\DBAL\Portability\Statement; use Doctrine\DBAL\Portability\Statement;
require_once __DIR__ . '/../../TestInit.php';
class StatementTest extends \Doctrine\Tests\DbalTestCase class StatementTest extends \Doctrine\Tests\DbalTestCase
{ {
/** /**
......
...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Query\Expression; ...@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Query\Expression;
use Doctrine\DBAL\Query\Expression\CompositeExpression; use Doctrine\DBAL\Query\Expression\CompositeExpression;
require_once __DIR__ . '/../../../TestInit.php';
/** /**
* @group DBAL-12 * @group DBAL-12
*/ */
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Query\Expression; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Query\Expression;
use Doctrine\DBAL\Query\Expression\CompositeExpression; use Doctrine\DBAL\Query\Expression\CompositeExpression;
use Doctrine\DBAL\Query\Expression\ExpressionBuilder; use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
require_once __DIR__ . '/../../../TestInit.php';
/** /**
* @group DBAL-12 * @group DBAL-12
*/ */
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Query; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Query;
use Doctrine\DBAL\Query\Expression\ExpressionBuilder; use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
use Doctrine\DBAL\Query\QueryBuilder; use Doctrine\DBAL\Query\QueryBuilder;
require_once __DIR__ . '/../../TestInit.php';
/** /**
* @group DBAL-12 * @group DBAL-12
*/ */
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
use Doctrine\DBAL\SQLParserUtils; use Doctrine\DBAL\SQLParserUtils;
require_once __DIR__ . '/../TestInit.php';
/** /**
* @group DBAL-78 * @group DBAL-78
* @group DDC-1372 * @group DDC-1372
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Schema; namespace Doctrine\Tests\DBAL\Schema;
require_once __DIR__ . '/../../TestInit.php';
use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
namespace Doctrine\Tests\DBAL\Schema; namespace Doctrine\Tests\DBAL\Schema;
require_once __DIR__ . '/../../TestInit.php';
use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff; use Doctrine\DBAL\Schema\ColumnDiff;
use Doctrine\DBAL\Schema\Comparator; use Doctrine\DBAL\Schema\Comparator;
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Schema; namespace Doctrine\Tests\DBAL\Schema;
require_once __DIR__ . '/../../TestInit.php';
use Doctrine\DBAL\Schema\Index; use Doctrine\DBAL\Schema\Index;
class IndexTest extends \PHPUnit_Framework_TestCase class IndexTest extends \PHPUnit_Framework_TestCase
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Schema\Platforms; namespace Doctrine\Tests\DBAL\Schema\Platforms;
require_once __DIR__ . '/../../../TestInit.php';
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
class MySQLSchemaTest extends \PHPUnit_Framework_TestCase class MySQLSchemaTest extends \PHPUnit_Framework_TestCase
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Schema; namespace Doctrine\Tests\DBAL\Schema;
require_once __DIR__ . '/../../TestInit.php';
use Doctrine\DBAL\Schema\SchemaDiff; use Doctrine\DBAL\Schema\SchemaDiff;
use Doctrine\DBAL\Schema\Sequence; use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Schema; namespace Doctrine\Tests\DBAL\Schema;
require_once __DIR__ . '/../../TestInit.php';
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\Sequence; use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Schema\Visitor; namespace Doctrine\Tests\DBAL\Schema\Visitor;
require_once __DIR__ . '/../../../TestInit.php';
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
class SchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase class SchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class ArrayTest extends \Doctrine\Tests\DbalTestCase class ArrayTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class BinaryTest extends \Doctrine\Tests\DbalTestCase class BinaryTest extends \Doctrine\Tests\DbalTestCase
{ {
/** /**
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class BlobTest extends \Doctrine\Tests\DbalTestCase class BlobTest extends \Doctrine\Tests\DbalTestCase
{ {
/** /**
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class BooleanTest extends \Doctrine\Tests\DbalTestCase class BooleanTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class DateTest extends \Doctrine\Tests\DbalTestCase class DateTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class DateTimeTest extends \Doctrine\Tests\DbalTestCase class DateTimeTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class DateTimeTzTest extends \Doctrine\Tests\DbalTestCase class DateTimeTzTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class DecimalTest extends \Doctrine\Tests\DbalTestCase class DecimalTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class FloatTest extends \Doctrine\Tests\DbalTestCase class FloatTest extends \Doctrine\Tests\DbalTestCase
{ {
protected $_platform, $_type; protected $_platform, $_type;
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class IntegerTest extends \Doctrine\Tests\DbalTestCase class IntegerTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class JsonArrayTest extends \Doctrine\Tests\DbalTestCase class JsonArrayTest extends \Doctrine\Tests\DbalTestCase
{ {
/** /**
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class ObjectTest extends \Doctrine\Tests\DbalTestCase class ObjectTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class SmallIntTest extends \Doctrine\Tests\DbalTestCase class SmallIntTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class StringTest extends \Doctrine\Tests\DbalTestCase class StringTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class TimeTest extends \Doctrine\Tests\DbalTestCase class TimeTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks\MockPlatform; use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
class VarDateTimeTest extends \Doctrine\Tests\DbalTestCase class VarDateTimeTest extends \Doctrine\Tests\DbalTestCase
{ {
protected protected
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL; namespace Doctrine\Tests\DBAL;
require_once __DIR__ . '/../TestInit.php';
class UtilTest extends \Doctrine\Tests\DbalTestCase class UtilTest extends \Doctrine\Tests\DbalTestCase
{ {
static public function dataConvertPositionalToNamedParameters() static public function dataConvertPositionalToNamedParameters()
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit> <phpunit bootstrap="../Doctrine/Tests/TestInit.php">
<php> <php>
<var name="db_type" value="pdo_mysql"/> <var name="db_type" value="pdo_mysql"/>
<var name="db_host" value="localhost" /> <var name="db_host" value="localhost" />
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<testsuites> <testsuites>
<testsuite name="Doctrine DBAL Test Suite"> <testsuite name="Doctrine DBAL Test Suite">
<directory>./../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit> <phpunit bootstrap="../Doctrine/Tests/TestInit.php">
<php> <php>
<var name="db_type" value="mysqli"/> <var name="db_type" value="mysqli"/>
<var name="db_host" value="localhost" /> <var name="db_host" value="localhost" />
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<testsuites> <testsuites>
<testsuite name="Doctrine DBAL Test Suite"> <testsuite name="Doctrine DBAL Test Suite">
<directory>./../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit> <phpunit bootstrap="../Doctrine/Tests/TestInit.php">
<php> <php>
<var name="db_type" value="pdo_pgsql"/> <var name="db_type" value="pdo_pgsql"/>
<var name="db_host" value="localhost" /> <var name="db_host" value="localhost" />
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</php> </php>
<testsuites> <testsuites>
<testsuite name="Doctrine DBAL Test Suite"> <testsuite name="Doctrine DBAL Test Suite">
<directory>./../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit> <phpunit bootstrap="../Doctrine/Tests/TestInit.php">
<testsuites> <testsuites>
<testsuite name="Doctrine DBAL Test Suite"> <testsuite name="Doctrine DBAL Test Suite">
<directory>./../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
......
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