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
fa9e2b10
Unverified
Commit
fa9e2b10
authored
Jan 02, 2018
by
Adrien Crivelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code style
parent
9f321540
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
SchemaManagerFunctionalTestCase.php
...BAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
+4
-5
No files found.
tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
View file @
fa9e2b10
...
...
@@ -1407,7 +1407,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
*
* @return array
*/
private
function
getEscapedLiterals
()
:
array
private
function
getEscapedLiterals
()
:
array
{
return
[
[
'An ASCII NUL (X\'00\')'
,
"foo
\\
0bar"
],
...
...
@@ -1426,7 +1426,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
];
}
private
function
createTableForDefaultValues
()
:
void
private
function
createTableForDefaultValues
()
:
void
{
$table
=
new
Table
(
'string_escaped_default_value'
);
foreach
(
$this
->
getEscapedLiterals
()
as
$i
=>
$literal
)
{
...
...
@@ -1437,7 +1437,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this
->
_sm
->
dropAndCreateTable
(
$table
);
}
public
function
testEscapedDefaultValueCanBeIntrospected
()
:
void
public
function
testEscapedDefaultValueCanBeIntrospected
()
:
void
{
$this
->
createTableForDefaultValues
();
...
...
@@ -1447,7 +1447,7 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
}
}
public
function
testEscapedDefaultValueCanBeInserted
()
:
void
public
function
testEscapedDefaultValueCanBeInserted
()
:
void
{
$this
->
createTableForDefaultValues
();
...
...
@@ -1455,7 +1455,6 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$row
=
$this
->
_conn
->
fetchAssoc
(
'SELECT * FROM string_escaped_default_value'
);
foreach
(
$this
->
getEscapedLiterals
()
as
$i
=>
$literal
)
{
self
::
assertSame
(
$literal
[
1
],
$row
[
'field'
.
$i
],
'inserted default value should be the configured default value for: '
.
$literal
[
0
]);
}
}
}
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