Skip to content

Commit b091863

Browse files
committed
Clean up unused uses
1 parent 0d99f15 commit b091863

22 files changed

+42
-48
lines changed

lib/Doctrine/DBAL/Portability/Connection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
namespace Doctrine\DBAL\Portability;
2121

22-
use Doctrine\DBAL\Driver;
2322
use Doctrine\DBAL\Cache\QueryCacheProfile;
2423

2524
/**

lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use Doctrine\DBAL\Events;
2323
use Doctrine\DBAL\Event\SchemaColumnDefinitionEventArgs;
2424
use Doctrine\DBAL\Event\SchemaIndexDefinitionEventArgs;
25-
use Doctrine\DBAL\Types;
2625
use Doctrine\DBAL\DBALException;
2726
use Doctrine\DBAL\Platforms\AbstractPlatform;
2827

tests/Doctrine/Tests/DBAL/Functional/Schema/Db2SchemaManagerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
namespace Doctrine\Tests\DBAL\Functional\Schema;
44

5-
use Doctrine\DBAL\Schema;
6-
75
require_once __DIR__ . '/../../../TestInit.php';
86

97
class Db2SchemaManagerTest extends SchemaManagerFunctionalTestCase
108
{
119

12-
}
10+
}

tests/Doctrine/Tests/DBAL/Mocks/MockPlatform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Doctrine\Tests\DBAL\Mocks;
44

55
use Doctrine\DBAL\DBALException;
6-
use Doctrine\DBAL\Platforms;
6+
use Doctrine\DBAL\Platforms\AbstractPlatform;
77

8-
class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
8+
class MockPlatform extends AbstractPlatform
99
{
1010
/**
1111
* Gets the SQL Snippet used to declare a BLOB column type.

tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Doctrine\Common\EventManager;
66
use Doctrine\DBAL\Configuration;
77
use Doctrine\DBAL\Schema\MySqlSchemaManager;
8-
use Doctrine\Tests\DBAL\Mocks;
98

109
class MySqlSchemaManagerTest extends \PHPUnit_Framework_TestCase
1110
{

tests/Doctrine/Tests/DBAL/Schema/PostgreSQLSchemaManagerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Doctrine\DBAL\Configuration;
66
use Doctrine\DBAL\Schema\PostgreSqlSchemaManager;
77
use Doctrine\DBAL\Schema\Sequence;
8-
use Doctrine\Tests\DBAL\Mocks;
98

109
class PostgreSQLSchemaManagerTest extends \PHPUnit_Framework_TestCase
1110
{

tests/Doctrine/Tests/DBAL/Types/ArrayTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Doctrine\Tests\DBAL\Types;
44

55
use Doctrine\DBAL\Types\Type;
6-
use Doctrine\Tests\DBAL\Mocks;
6+
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
77

88
require_once __DIR__ . '/../../TestInit.php';
99

@@ -15,7 +15,7 @@ class ArrayTest extends \Doctrine\Tests\DbalTestCase
1515

1616
protected function setUp()
1717
{
18-
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
18+
$this->_platform = new MockPlatform();
1919
$this->_type = Type::getType('array');
2020
}
2121

@@ -58,4 +58,4 @@ public function testFalseConversion()
5858
{
5959
$this->assertFalse($this->_type->convertToPHPValue(serialize(false), $this->_platform));
6060
}
61-
}
61+
}

tests/Doctrine/Tests/DBAL/Types/BinaryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Doctrine\Tests\DBAL\Types;
44

55
use Doctrine\DBAL\Types\Type;
6-
use Doctrine\Tests\DBAL\Mocks;
6+
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
77

88
require_once __DIR__ . '/../../TestInit.php';
99

@@ -24,7 +24,7 @@ class BinaryTest extends \Doctrine\Tests\DbalTestCase
2424
*/
2525
protected function setUp()
2626
{
27-
$this->platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
27+
$this->platform = new MockPlatform();
2828
$this->type = Type::getType('binary');
2929
}
3030

tests/Doctrine/Tests/DBAL/Types/BlobTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Doctrine\Tests\DBAL\Types;
44

55
use Doctrine\DBAL\Types\Type;
6-
use Doctrine\Tests\DBAL\Mocks;
6+
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
77

88
require_once __DIR__ . '/../../TestInit.php';
99

@@ -24,7 +24,7 @@ class BlobTest extends \Doctrine\Tests\DbalTestCase
2424
*/
2525
protected function setUp()
2626
{
27-
$this->platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
27+
$this->platform = new MockPlatform();
2828
$this->type = Type::getType('blob');
2929
}
3030

tests/Doctrine/Tests/DBAL/Types/BooleanTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Doctrine\Tests\DBAL\Types;
44

55
use Doctrine\DBAL\Types\Type;
6-
use Doctrine\Tests\DBAL\Mocks;
6+
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
77

88
require_once __DIR__ . '/../../TestInit.php';
99

@@ -15,7 +15,7 @@ class BooleanTest extends \Doctrine\Tests\DbalTestCase
1515

1616
protected function setUp()
1717
{
18-
$this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
18+
$this->_platform = new MockPlatform();
1919
$this->_type = Type::getType('boolean');
2020
}
2121

@@ -33,4 +33,4 @@ public function testBooleanNullConvertsToPHPValue()
3333
{
3434
$this->assertNull($this->_type->convertToPHPValue(null, $this->_platform));
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)