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
79018e14
Commit
79018e14
authored
Sep 17, 2014
by
Endre Fejes
Committed by
Steve Müller
Sep 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up unused uses
parent
2ecac19a
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
42 additions
and
48 deletions
+42
-48
Connection.php
lib/Doctrine/DBAL/Portability/Connection.php
+0
-1
AbstractSchemaManager.php
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
+0
-1
Db2SchemaManagerTest.php
...ine/Tests/DBAL/Functional/Schema/Db2SchemaManagerTest.php
+1
-3
MockPlatform.php
tests/Doctrine/Tests/DBAL/Mocks/MockPlatform.php
+2
-2
MySqlSchemaManagerTest.php
tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php
+0
-1
PostgreSQLSchemaManagerTest.php
...octrine/Tests/DBAL/Schema/PostgreSQLSchemaManagerTest.php
+0
-1
ArrayTest.php
tests/Doctrine/Tests/DBAL/Types/ArrayTest.php
+3
-3
BinaryTest.php
tests/Doctrine/Tests/DBAL/Types/BinaryTest.php
+2
-2
BlobTest.php
tests/Doctrine/Tests/DBAL/Types/BlobTest.php
+2
-2
BooleanTest.php
tests/Doctrine/Tests/DBAL/Types/BooleanTest.php
+3
-3
DateTest.php
tests/Doctrine/Tests/DBAL/Types/DateTest.php
+2
-2
DateTimeTest.php
tests/Doctrine/Tests/DBAL/Types/DateTimeTest.php
+2
-2
DateTimeTzTest.php
tests/Doctrine/Tests/DBAL/Types/DateTimeTzTest.php
+2
-2
DecimalTest.php
tests/Doctrine/Tests/DBAL/Types/DecimalTest.php
+3
-3
FloatTest.php
tests/Doctrine/Tests/DBAL/Types/FloatTest.php
+3
-3
GuidTypeTest.php
tests/Doctrine/Tests/DBAL/Types/GuidTypeTest.php
+2
-2
IntegerTest.php
tests/Doctrine/Tests/DBAL/Types/IntegerTest.php
+3
-3
ObjectTest.php
tests/Doctrine/Tests/DBAL/Types/ObjectTest.php
+3
-3
SmallIntTest.php
tests/Doctrine/Tests/DBAL/Types/SmallIntTest.php
+3
-3
StringTest.php
tests/Doctrine/Tests/DBAL/Types/StringTest.php
+2
-2
TimeTest.php
tests/Doctrine/Tests/DBAL/Types/TimeTest.php
+2
-2
VarDateTimeTest.php
tests/Doctrine/Tests/DBAL/Types/VarDateTimeTest.php
+2
-2
No files found.
lib/Doctrine/DBAL/Portability/Connection.php
View file @
79018e14
...
...
@@ -19,7 +19,6 @@
namespace
Doctrine\DBAL\Portability
;
use
Doctrine\DBAL\Driver
;
use
Doctrine\DBAL\Cache\QueryCacheProfile
;
/**
...
...
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
View file @
79018e14
...
...
@@ -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
;
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/Db2SchemaManagerTest.php
View file @
79018e14
...
...
@@ -2,11 +2,9 @@
namespace
Doctrine\Tests\DBAL\Functional\Schema
;
use
Doctrine\DBAL\Schema
;
require_once
__DIR__
.
'/../../../TestInit.php'
;
class
Db2SchemaManagerTest
extends
SchemaManagerFunctionalTestCase
{
}
\ No newline at end of file
}
tests/Doctrine/Tests/DBAL/Mocks/MockPlatform.php
View file @
79018e14
...
...
@@ -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.
...
...
tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php
View file @
79018e14
...
...
@@ -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
{
...
...
tests/Doctrine/Tests/DBAL/Schema/PostgreSQLSchemaManagerTest.php
View file @
79018e14
...
...
@@ -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
{
...
...
tests/Doctrine/Tests/DBAL/Types/ArrayTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
@@ -58,4 +58,4 @@ class ArrayTest extends \Doctrine\Tests\DbalTestCase
{
$this
->
assertFalse
(
$this
->
_type
->
convertToPHPValue
(
serialize
(
false
),
$this
->
_platform
));
}
}
\ No newline at end of file
}
tests/Doctrine/Tests/DBAL/Types/BinaryTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
tests/Doctrine/Tests/DBAL/Types/BlobTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
tests/Doctrine/Tests/DBAL/Types/BooleanTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
@@ -33,4 +33,4 @@ class BooleanTest extends \Doctrine\Tests\DbalTestCase
{
$this
->
assertNull
(
$this
->
_type
->
convertToPHPValue
(
null
,
$this
->
_platform
));
}
}
\ No newline at end of file
}
tests/Doctrine/Tests/DBAL/Types/DateTest.php
View file @
79018e14
...
...
@@ -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
();
}
...
...
tests/Doctrine/Tests/DBAL/Types/DateTimeTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
tests/Doctrine/Tests/DBAL/Types/DateTimeTzTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
tests/Doctrine/Tests/DBAL/Types/DecimalTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
@@ -28,4 +28,4 @@ class DecimalTest extends \Doctrine\Tests\DbalTestCase
{
$this
->
assertNull
(
$this
->
_type
->
convertToPHPValue
(
null
,
$this
->
_platform
));
}
}
\ No newline at end of file
}
tests/Doctrine/Tests/DBAL/Types/FloatTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
@@ -36,4 +36,4 @@ class FloatTest extends \Doctrine\Tests\DbalTestCase
{
$this
->
assertNull
(
$this
->
_type
->
convertToDatabaseValue
(
null
,
$this
->
_platform
));
}
}
\ No newline at end of file
}
tests/Doctrine/Tests/DBAL/Types/GuidTypeTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
tests/Doctrine/Tests/DBAL/Types/IntegerTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
@@ -29,4 +29,4 @@ class IntegerTest extends \Doctrine\Tests\DbalTestCase
{
$this
->
assertNull
(
$this
->
_type
->
convertToPHPValue
(
null
,
$this
->
_platform
));
}
}
\ No newline at end of file
}
tests/Doctrine/Tests/DBAL/Types/ObjectTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
@@ -53,4 +53,4 @@ class ObjectTest extends \Doctrine\Tests\DbalTestCase
{
$this
->
assertFalse
(
$this
->
_type
->
convertToPHPValue
(
serialize
(
false
),
$this
->
_platform
));
}
}
\ No newline at end of file
}
tests/Doctrine/Tests/DBAL/Types/SmallIntTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
@@ -29,4 +29,4 @@ class SmallIntTest extends \Doctrine\Tests\DbalTestCase
{
$this
->
assertNull
(
$this
->
_type
->
convertToPHPValue
(
null
,
$this
->
_platform
));
}
}
\ No newline at end of file
}
tests/Doctrine/Tests/DBAL/Types/StringTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
tests/Doctrine/Tests/DBAL/Types/TimeTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
tests/Doctrine/Tests/DBAL/Types/VarDateTimeTest.php
View file @
79018e14
...
...
@@ -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'
);
}
...
...
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