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
c38958de
Commit
c38958de
authored
Jul 28, 2007
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed output of cli testrunner
parent
4e4dc0a6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
7 deletions
+36
-7
ColumnAggregationInheritanceTestCase.php
tests/ColumnAggregationInheritanceTestCase.php
+0
-1
Test.php
tests/Test.php
+4
-0
coverage.php
tests/coverage.php
+30
-5
coverage.txt
tests/coverage.txt
+1
-1
run.php
tests/run.php
+1
-0
No files found.
tests/ColumnAggregationInheritanceTestCase.php
View file @
c38958de
...
...
@@ -36,7 +36,6 @@ class Doctrine_ColumnAggregationInheritance_TestCase extends Doctrine_UnitTestCa
public
function
prepareData
()
{
parent
::
prepareData
();
//we create a test entity that is not a user and not a group
$entity
=
new
Entity
();
...
...
tests/Test.php
View file @
c38958de
...
...
@@ -26,6 +26,10 @@ class GroupTest extends UnitTestCase
$this
->
_messages
=
array_merge
(
$this
->
_messages
,
$testCase
->
getMessages
());
$this
->
_testCases
[
$k
]
=
null
;
if
(
PHP_SAPI
===
"cli"
){
echo
"."
;
}
set_time_limit
(
900
);
}
$reporter
->
setTestCase
(
$this
);
...
...
tests/coverage.php
View file @
c38958de
...
...
@@ -8,8 +8,32 @@ $path = "/home/bjartka/workspace/doctrine/lib/";
<html>
<head>
<style
type=
"text/css"
>
.covered
{
background
:
#eee
;}
.covered
{
background
:
green
;}
.normal
{
background
:
white
;}
.error
{
background
:
red
;}
dl
.table-display
{
margin
:
2em
0
;
padding
:
0
;
font-family
:
georgia
,
times
,
serif
;
}
.table-display
dt
{
float
:
left
;
margin
:
0
0
0
0
;
padding
:
0
.5em
0
.5em
;
}
/* commented backslash hack for mac-ie5 \*/
dt
{
clear
:
both
;
}
/* end hack */
.table-display
dd
{
float
:
left
;
margin
:
0
0
0
0
;
}
</style>
</head>
<body>
...
...
@@ -24,19 +48,20 @@ function getCoverageReport($file){
}
$coveredLines
=
$coverage
[
$file
];
$fileArray
=
file
(
$file
);
$html
.=
'<dl class="
filelist
">'
.
"
\n
"
;
$html
.=
'<dl class="
table-display
">'
.
"
\n
"
;
foreach
(
$fileArray
as
$num
=>
$line
){
$linenum
=
$num
+
1
;
$html
.=
'<dt>'
.
$linenum
.
'</dt>'
.
"
\n
"
;
$class
=
"normal"
;
if
(
isset
(
$coveredLines
[
$linenum
])
&&
$coveredLines
[
$linenum
]
==
1
){
$class
=
"covered"
;
}
else
if
(
isset
(
$coveredLines
[
$linenum
])
&&
$coveredLines
[
$linenum
]
==
-
1
){
$class
=
"error"
;
}
$html
.=
'<dd class="'
.
$class
.
'">'
.
htmlspecialchars
(
$line
)
.
'</dd>'
.
"
\n
"
;
}
$html
.=
'</dl></div>'
;
return
$html
;
}
if
(
isset
(
$_GET
[
"file"
])){
...
...
tests/coverage.txt
View file @
c38958de
This source diff could not be displayed because it is too large. You can
view the blob
instead.
tests/run.php
View file @
c38958de
...
...
@@ -358,6 +358,7 @@ class CliReporter extends HtmlReporter{
echo
"====================
\n
"
;
}
public
function
paintFooter
(){
echo
"
\n
"
;
foreach
(
$this
->
_test
->
getMessages
()
as
$message
)
{
print
$message
.
"
\n
"
;
}
...
...
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