Commit 79018e14 authored by Endre Fejes's avatar Endre Fejes Committed by Steve Müller

Clean up unused uses

parent 2ecac19a
......@@ -19,7 +19,6 @@
namespace Doctrine\DBAL\Portability;
use Doctrine\DBAL\Driver;
use Doctrine\DBAL\Cache\QueryCacheProfile;
/**
......
......@@ -22,7 +22,6 @@ namespace Doctrine\DBAL\Schema;
use Doctrine\DBAL\Events;
use Doctrine\DBAL\Event\SchemaColumnDefinitionEventArgs;
use Doctrine\DBAL\Event\SchemaIndexDefinitionEventArgs;
use Doctrine\DBAL\Types;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Platforms\AbstractPlatform;
......
......@@ -2,8 +2,6 @@
namespace Doctrine\Tests\DBAL\Functional\Schema;
use Doctrine\DBAL\Schema;
require_once __DIR__ . '/../../../TestInit.php';
class Db2SchemaManagerTest extends SchemaManagerFunctionalTestCase
......
......@@ -3,9 +3,9 @@
namespace Doctrine\Tests\DBAL\Mocks;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Platforms;
use Doctrine\DBAL\Platforms\AbstractPlatform;
class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
class MockPlatform extends AbstractPlatform
{
/**
* Gets the SQL Snippet used to declare a BLOB column type.
......
......@@ -5,7 +5,6 @@ namespace Doctrine\Tests\DBAL\Schema;
use Doctrine\Common\EventManager;
use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\Schema\MySqlSchemaManager;
use Doctrine\Tests\DBAL\Mocks;
class MySqlSchemaManagerTest extends \PHPUnit_Framework_TestCase
{
......
......@@ -5,7 +5,6 @@ namespace Doctrine\Tests\DBAL\Schema;
use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\Schema\PostgreSqlSchemaManager;
use Doctrine\DBAL\Schema\Sequence;
use Doctrine\Tests\DBAL\Mocks;
class PostgreSQLSchemaManagerTest extends \PHPUnit_Framework_TestCase
{
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class ArrayTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('array');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -24,7 +24,7 @@ class BinaryTest extends \Doctrine\Tests\DbalTestCase
*/
protected function setUp()
{
$this->platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->platform = new MockPlatform();
$this->type = Type::getType('binary');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -24,7 +24,7 @@ class BlobTest extends \Doctrine\Tests\DbalTestCase
*/
protected function setUp()
{
$this->platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->platform = new MockPlatform();
$this->type = Type::getType('blob');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class BooleanTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('boolean');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -16,7 +16,7 @@ class DateTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('date');
$this->_tz = date_default_timezone_get();
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class DateTimeTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('datetime');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class DateTimeTzTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('datetimetz');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class DecimalTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('decimal');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -13,7 +13,7 @@ class FloatTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('float');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class GuidTest extends \Doctrine\Tests\DbalTestCase
{
......@@ -13,7 +13,7 @@ class GuidTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('guid');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class IntegerTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('integer');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class ObjectTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('object');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class SmallIntTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('smallint');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class StringTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('string');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class TimeTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
$this->_type = Type::getType('time');
}
......
......@@ -3,7 +3,7 @@
namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DBAL\Mocks;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
require_once __DIR__ . '/../../TestInit.php';
......@@ -15,7 +15,7 @@ class VarDateTimeTest extends \Doctrine\Tests\DbalTestCase
protected function setUp()
{
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
$this->_platform = new MockPlatform();
if (!Type::hasType('vardatetime')) {
Type::addType('vardatetime', 'Doctrine\DBAL\Types\VarDateTimeType');
}
......
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