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
e93ec328
Commit
e93ec328
authored
Aug 06, 2013
by
amakhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
4d845f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DataAccessTest.php
tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php
+2
-2
No files found.
tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php
View file @
e93ec328
...
...
@@ -361,8 +361,8 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase
$diff
=
floor
(
(
strtotime
(
'2010-01-01'
)
-
time
())
/
3600
/
24
);
$this
->
assertEquals
(
$diff
,
(
int
)
$row
[
'diff'
],
"Date difference should be approx. "
.
$diff
.
" days."
,
1
);
$this
->
assertEquals
(
'2010-01-01
03:00'
,
date
(
'Y-m-d H:i'
,
strtotime
(
$row
[
'add_hour'
])),
"Adding date should end up on 2010-01-01 03:0
0"
);
$this
->
assertEquals
(
'20
09-12-31 21:00'
,
date
(
'Y-m-d H:i'
,
strtotime
(
$row
[
'sub_hour'
])),
"Subtracting date should end up on 2009-12-31 21:0
0"
);
$this
->
assertEquals
(
'2010-01-01
13:10'
,
date
(
'Y-m-d H:i'
,
strtotime
(
$row
[
'add_hour'
])),
"Adding date should end up on 2010-01-01 13:1
0"
);
$this
->
assertEquals
(
'20
10-01-01 07:10'
,
date
(
'Y-m-d H:i'
,
strtotime
(
$row
[
'sub_hour'
])),
"Subtracting date should end up on 2010-01-01 07:1
0"
);
$this
->
assertEquals
(
'2010-01-11'
,
date
(
'Y-m-d'
,
strtotime
(
$row
[
'add_days'
])),
"Adding date should end up on 2010-01-11"
);
$this
->
assertEquals
(
'2009-12-22'
,
date
(
'Y-m-d'
,
strtotime
(
$row
[
'sub_days'
])),
"Subtracting date should end up on 2009-12-22"
);
$this
->
assertEquals
(
'2010-03-01'
,
date
(
'Y-m-d'
,
strtotime
(
$row
[
'add_month'
])),
"Adding month should end up on 2010-03-01"
);
...
...
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