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
32b564e7
Commit
32b564e7
authored
Apr 18, 2007
by
pookey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor change to test suite making it behave better in cases of exceptions and fatal errors
parent
772701ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
+25
-22
run.php
tests/run.php
+25
-22
No files found.
tests/run.php
View file @
32b564e7
<?php
ob_start
();
ini_set
(
'max_execution_time'
,
900
);
...
...
@@ -55,7 +54,6 @@ require_once dirname(__FILE__) . '/UnitTestCase.php';
require_once
dirname
(
__FILE__
)
.
'/DriverTestCase.php'
;
error_reporting
(
E_ALL
);
print
'<pre>'
;
$test
=
new
GroupTest
(
'Doctrine Framework Unit Tests'
);
...
...
@@ -274,28 +272,8 @@ if (TextReporter::inCli()) {
$password
=
$argv
[
3
];
}
exit
(
$test
->
run
(
new
TextReporter
())
?
0
:
1
);
}
else
{
if
(
isset
(
$_POST
))
{
$dsn
=
isset
(
$_POST
[
"dsn"
])
?
$_POST
[
"dsn"
]
:
null
;
$username
=
isset
(
$_POST
[
"username"
])
?
$_POST
[
"username"
]
:
null
;
$password
=
isset
(
$_POST
[
"password"
])
?
$_POST
[
"password"
]
:
null
;
}
$test
->
run
(
new
MyReporter
());
$output
=
ob_get_clean
();
}
/**
$cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler();
if(isset($cache)) {
$a = $cache->getQueries();
print "Executed cache queries: ".count($a)."\n";
foreach($a as $query) {
print $query."\n";
}
}
*/
?>
<html>
<head>
...
...
@@ -332,6 +310,31 @@ if(isset($cache)) {
</form>
<h3>
Tests
</h3>
<pre>
<?php
ob_start
();
if
(
isset
(
$_POST
))
{
$dsn
=
isset
(
$_POST
[
"dsn"
])
?
$_POST
[
"dsn"
]
:
null
;
$username
=
isset
(
$_POST
[
"username"
])
?
$_POST
[
"username"
]
:
null
;
$password
=
isset
(
$_POST
[
"password"
])
?
$_POST
[
"password"
]
:
null
;
}
$test
->
run
(
new
MyReporter
());
$output
=
ob_get_clean
();
/**
$cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler();
if(isset($cache)) {
$a = $cache->getQueries();
print "Executed cache queries: ".count($a)."\n";
foreach($a as $query) {
print $query."\n";
}
}
*/
?>
<?php
echo
$output
;
?>
</pre>
<h3>
Queries
</h3>
...
...
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