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
22792e7a
Commit
22792e7a
authored
Jul 23, 2007
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed new reporters
parent
239c8422
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
15 deletions
+41
-15
run.php
tests/run.php
+41
-15
No files found.
tests/run.php
View file @
22792e7a
...
...
@@ -282,7 +282,7 @@ $test->addTestCase(new Doctrine_Query_AggregateValue_TestCase());
$test
->
addTestCase
(
new
Doctrine_NewCore_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Ticket337_TestCase
());
//
$test->addTestCase(new Doctrine_Ticket337_TestCase());
// Record
...
...
@@ -352,10 +352,43 @@ $test->addTestCase(new Doctrine_NestedSet_SingleRoot_TestCase());
//$test->addTestCase(new Doctrine_Cache_TestCase());
class
CliReporter
extends
HtmlReporter
{
public
function
paintHeader
(){
echo
"Doctrine UnitTests
\n
"
;
echo
"====================
\n
"
;
}
public
function
paintFooter
(){
foreach
(
$this
->
_test
->
getMessages
()
as
$message
)
{
print
$message
.
"
\n
"
;
}
echo
"====================
\n
"
;
print
"Tested: "
.
$this
->
_test
->
getTestCaseCount
()
.
' test cases'
.
"
\n
"
;
print
"Successes: "
.
$this
->
_test
->
getPassCount
()
.
" passes.
\n
"
;
print
"Failures: "
.
$this
->
_test
->
getFailCount
()
.
" fails.
\n
"
;
}
}
class
MyReporter
extends
HtmlReporter
{
public
function
paintHeader
()
{}
public
function
paintHeader
()
{
?>
<html>
<head>
<title>
Doctrine Unit Tests
</title>
<style>
.fail
{
color
:
red
;
}
pre
{
background-color
:
lightgray
;
}
</style>
</head>
<body>
<h1>
Doctrine Unit Tests
</h1>
<?php
}
public
function
paintFooter
()
{
print
"<pre>"
;
foreach
(
$this
->
_test
->
getMessages
()
as
$message
)
{
print
$message
.
"
\n
"
;
...
...
@@ -375,20 +408,13 @@ class MyReporter extends HtmlReporter {
?>
<html>
<head>
<title>
Doctrine Unit Tests
</title>
<style>
.fail
{
color
:
red
;
}
pre
{
background-color
:
lightgray
;
}
</style>
</head>
<body>
<h1>
Doctrine Unit Tests
</h1>
<?php
$test
->
run
(
new
MyReporter
());
if
(
PHP_SAPI
===
"cli"
){
$reporter
=
new
CliReporter
();
}
else
{
$reporter
=
new
MyReporter
();
}
$test
->
run
(
$reporter
);
$path
=
Doctrine
::
getPath
()
.
DIRECTORY_SEPARATOR
;
?>
...
...
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