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
bd3f6ec0
Commit
bd3f6ec0
authored
Mar 11, 2017
by
Dustin Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instance variables are camel-cased
parent
94df8b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
SchemaManagerFunctionalTestCase.php
...BAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
+8
-8
No files found.
tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
View file @
bd3f6ec0
...
@@ -199,10 +199,10 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
...
@@ -199,10 +199,10 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this
->
_sm
->
dropAndCreateTable
(
$table
);
$this
->
_sm
->
dropAndCreateTable
(
$table
);
$columns
=
$this
->
_sm
->
listTableColumns
(
'list_table_columns'
);
$columns
=
$this
->
_sm
->
listTableColumns
(
'list_table_columns'
);
$columns
_k
eys
=
array_keys
(
$columns
);
$columns
K
eys
=
array_keys
(
$columns
);
$this
->
assertArrayHasKey
(
'id'
,
$columns
);
$this
->
assertArrayHasKey
(
'id'
,
$columns
);
$this
->
assertEquals
(
0
,
array_search
(
'id'
,
$columns
_k
eys
));
$this
->
assertEquals
(
0
,
array_search
(
'id'
,
$columns
K
eys
));
$this
->
assertEquals
(
'id'
,
strtolower
(
$columns
[
'id'
]
->
getname
()));
$this
->
assertEquals
(
'id'
,
strtolower
(
$columns
[
'id'
]
->
getname
()));
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\IntegerType'
,
$columns
[
'id'
]
->
gettype
());
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\IntegerType'
,
$columns
[
'id'
]
->
gettype
());
$this
->
assertEquals
(
false
,
$columns
[
'id'
]
->
getunsigned
());
$this
->
assertEquals
(
false
,
$columns
[
'id'
]
->
getunsigned
());
...
@@ -211,7 +211,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
...
@@ -211,7 +211,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this
->
assertInternalType
(
'array'
,
$columns
[
'id'
]
->
getPlatformOptions
());
$this
->
assertInternalType
(
'array'
,
$columns
[
'id'
]
->
getPlatformOptions
());
$this
->
assertArrayHasKey
(
'test'
,
$columns
);
$this
->
assertArrayHasKey
(
'test'
,
$columns
);
$this
->
assertEquals
(
1
,
array_search
(
'test'
,
$columns
_k
eys
));
$this
->
assertEquals
(
1
,
array_search
(
'test'
,
$columns
K
eys
));
$this
->
assertEquals
(
'test'
,
strtolower
(
$columns
[
'test'
]
->
getname
()));
$this
->
assertEquals
(
'test'
,
strtolower
(
$columns
[
'test'
]
->
getname
()));
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\StringType'
,
$columns
[
'test'
]
->
gettype
());
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\StringType'
,
$columns
[
'test'
]
->
gettype
());
$this
->
assertEquals
(
255
,
$columns
[
'test'
]
->
getlength
());
$this
->
assertEquals
(
255
,
$columns
[
'test'
]
->
getlength
());
...
@@ -221,7 +221,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
...
@@ -221,7 +221,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this
->
assertInternalType
(
'array'
,
$columns
[
'test'
]
->
getPlatformOptions
());
$this
->
assertInternalType
(
'array'
,
$columns
[
'test'
]
->
getPlatformOptions
());
$this
->
assertEquals
(
'foo'
,
strtolower
(
$columns
[
'foo'
]
->
getname
()));
$this
->
assertEquals
(
'foo'
,
strtolower
(
$columns
[
'foo'
]
->
getname
()));
$this
->
assertEquals
(
2
,
array_search
(
'foo'
,
$columns
_k
eys
));
$this
->
assertEquals
(
2
,
array_search
(
'foo'
,
$columns
K
eys
));
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\TextType'
,
$columns
[
'foo'
]
->
gettype
());
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\TextType'
,
$columns
[
'foo'
]
->
gettype
());
$this
->
assertEquals
(
false
,
$columns
[
'foo'
]
->
getunsigned
());
$this
->
assertEquals
(
false
,
$columns
[
'foo'
]
->
getunsigned
());
$this
->
assertEquals
(
false
,
$columns
[
'foo'
]
->
getfixed
());
$this
->
assertEquals
(
false
,
$columns
[
'foo'
]
->
getfixed
());
...
@@ -230,7 +230,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
...
@@ -230,7 +230,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this
->
assertInternalType
(
'array'
,
$columns
[
'foo'
]
->
getPlatformOptions
());
$this
->
assertInternalType
(
'array'
,
$columns
[
'foo'
]
->
getPlatformOptions
());
$this
->
assertEquals
(
'bar'
,
strtolower
(
$columns
[
'bar'
]
->
getname
()));
$this
->
assertEquals
(
'bar'
,
strtolower
(
$columns
[
'bar'
]
->
getname
()));
$this
->
assertEquals
(
3
,
array_search
(
'bar'
,
$columns
_k
eys
));
$this
->
assertEquals
(
3
,
array_search
(
'bar'
,
$columns
K
eys
));
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\DecimalType'
,
$columns
[
'bar'
]
->
gettype
());
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\DecimalType'
,
$columns
[
'bar'
]
->
gettype
());
$this
->
assertEquals
(
null
,
$columns
[
'bar'
]
->
getlength
());
$this
->
assertEquals
(
null
,
$columns
[
'bar'
]
->
getlength
());
$this
->
assertEquals
(
10
,
$columns
[
'bar'
]
->
getprecision
());
$this
->
assertEquals
(
10
,
$columns
[
'bar'
]
->
getprecision
());
...
@@ -242,21 +242,21 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
...
@@ -242,21 +242,21 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this
->
assertInternalType
(
'array'
,
$columns
[
'bar'
]
->
getPlatformOptions
());
$this
->
assertInternalType
(
'array'
,
$columns
[
'bar'
]
->
getPlatformOptions
());
$this
->
assertEquals
(
'baz1'
,
strtolower
(
$columns
[
'baz1'
]
->
getname
()));
$this
->
assertEquals
(
'baz1'
,
strtolower
(
$columns
[
'baz1'
]
->
getname
()));
$this
->
assertEquals
(
4
,
array_search
(
'baz1'
,
$columns
_k
eys
));
$this
->
assertEquals
(
4
,
array_search
(
'baz1'
,
$columns
K
eys
));
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\DateTimeType'
,
$columns
[
'baz1'
]
->
gettype
());
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Types\DateTimeType'
,
$columns
[
'baz1'
]
->
gettype
());
$this
->
assertEquals
(
true
,
$columns
[
'baz1'
]
->
getnotnull
());
$this
->
assertEquals
(
true
,
$columns
[
'baz1'
]
->
getnotnull
());
$this
->
assertEquals
(
null
,
$columns
[
'baz1'
]
->
getdefault
());
$this
->
assertEquals
(
null
,
$columns
[
'baz1'
]
->
getdefault
());
$this
->
assertInternalType
(
'array'
,
$columns
[
'baz1'
]
->
getPlatformOptions
());
$this
->
assertInternalType
(
'array'
,
$columns
[
'baz1'
]
->
getPlatformOptions
());
$this
->
assertEquals
(
'baz2'
,
strtolower
(
$columns
[
'baz2'
]
->
getname
()));
$this
->
assertEquals
(
'baz2'
,
strtolower
(
$columns
[
'baz2'
]
->
getname
()));
$this
->
assertEquals
(
5
,
array_search
(
'baz2'
,
$columns
_k
eys
));
$this
->
assertEquals
(
5
,
array_search
(
'baz2'
,
$columns
K
eys
));
$this
->
assertContains
(
$columns
[
'baz2'
]
->
gettype
()
->
getName
(),
array
(
'time'
,
'date'
,
'datetime'
));
$this
->
assertContains
(
$columns
[
'baz2'
]
->
gettype
()
->
getName
(),
array
(
'time'
,
'date'
,
'datetime'
));
$this
->
assertEquals
(
true
,
$columns
[
'baz2'
]
->
getnotnull
());
$this
->
assertEquals
(
true
,
$columns
[
'baz2'
]
->
getnotnull
());
$this
->
assertEquals
(
null
,
$columns
[
'baz2'
]
->
getdefault
());
$this
->
assertEquals
(
null
,
$columns
[
'baz2'
]
->
getdefault
());
$this
->
assertInternalType
(
'array'
,
$columns
[
'baz2'
]
->
getPlatformOptions
());
$this
->
assertInternalType
(
'array'
,
$columns
[
'baz2'
]
->
getPlatformOptions
());
$this
->
assertEquals
(
'baz3'
,
strtolower
(
$columns
[
'baz3'
]
->
getname
()));
$this
->
assertEquals
(
'baz3'
,
strtolower
(
$columns
[
'baz3'
]
->
getname
()));
$this
->
assertEquals
(
6
,
array_search
(
'baz3'
,
$columns
_k
eys
));
$this
->
assertEquals
(
6
,
array_search
(
'baz3'
,
$columns
K
eys
));
$this
->
assertContains
(
$columns
[
'baz3'
]
->
gettype
()
->
getName
(),
array
(
'time'
,
'date'
,
'datetime'
));
$this
->
assertContains
(
$columns
[
'baz3'
]
->
gettype
()
->
getName
(),
array
(
'time'
,
'date'
,
'datetime'
));
$this
->
assertEquals
(
true
,
$columns
[
'baz3'
]
->
getnotnull
());
$this
->
assertEquals
(
true
,
$columns
[
'baz3'
]
->
getnotnull
());
$this
->
assertEquals
(
null
,
$columns
[
'baz3'
]
->
getdefault
());
$this
->
assertEquals
(
null
,
$columns
[
'baz3'
]
->
getdefault
());
...
...
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