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
93f452cd
Commit
93f452cd
authored
Sep 05, 2007
by
jackbravo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate correctly test messages when running from the browser, and get the variables through _GET
parent
543cd86f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
run.php
tests/run.php
+5
-4
No files found.
tests/run.php
View file @
93f452cd
...
...
@@ -375,7 +375,7 @@ class MyReporter extends HtmlReporter {
print
'<pre>'
;
foreach
(
$this
->
_test
->
getMessages
()
as
$message
)
{
print
$message
;
print
"<p>
$message
</p>"
;
}
print
'</pre>'
;
$colour
=
(
$this
->
_test
->
getFailCount
()
>
0
?
'red'
:
'green'
);
...
...
@@ -394,13 +394,14 @@ class MyReporter extends HtmlReporter {
<?php
if
(
PHP_SAPI
===
'cli'
)
{
$reporter
=
new
CliReporter
();
$argv
=
$_SERVER
[
'argv'
];
array_shift
(
$argv
);
$options
=
parseOptions
(
$argv
);
}
else
{
$options
=
$_GET
;
$reporter
=
new
MyReporter
();
}
$argv
=
isset
(
$_SERVER
[
'argv'
])
?
$_SERVER
[
'argv'
]
:
array
();
array_shift
(
$argv
);
$options
=
parseOptions
(
$argv
);
if
(
isset
(
$options
[
'group'
]))
{
$testGroup
=
new
GroupTest
(
'Custom'
);
...
...
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