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
45007d37
Commit
45007d37
authored
Sep 11, 2015
by
Bill Schaller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove DbalPerformanceTestCase::setUp and rename lastRunTime var to just runTime
parent
82411db8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
DbalPerformanceTestCase.php
tests/Doctrine/Tests/DbalPerformanceTestCase.php
+4
-12
No files found.
tests/Doctrine/Tests/DbalPerformanceTestCase.php
View file @
45007d37
...
...
@@ -26,15 +26,7 @@ class DbalPerformanceTestCase extends DbalFunctionalTestCase
*
* @var float
*/
private
$lastRunTime
;
public
function
setUp
()
{
parent
::
setUp
();
// Reset timing vars
$this
->
startTime
=
$this
->
lastRunTime
=
null
;
}
private
$runTime
;
/**
* {@inheritdoc}
...
...
@@ -43,7 +35,7 @@ class DbalPerformanceTestCase extends DbalFunctionalTestCase
{
// If a perf test doesn't start or stop, it fails.
$this
->
assertNotNull
(
$this
->
startTime
,
"Test timing was started"
);
$this
->
assertNotNull
(
$this
->
lastR
unTime
,
"Test timing was stopped"
);
$this
->
assertNotNull
(
$this
->
r
unTime
,
"Test timing was stopped"
);
}
/**
...
...
@@ -59,7 +51,7 @@ class DbalPerformanceTestCase extends DbalFunctionalTestCase
*/
protected
function
stopTiming
()
{
$this
->
lastR
unTime
=
microtime
(
true
)
-
$this
->
startTime
;
$this
->
r
unTime
=
microtime
(
true
)
-
$this
->
startTime
;
}
/**
...
...
@@ -67,6 +59,6 @@ class DbalPerformanceTestCase extends DbalFunctionalTestCase
*/
public
function
getTime
()
{
return
$this
->
lastR
unTime
;
return
$this
->
r
unTime
;
}
}
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