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
42e76aa7
Commit
42e76aa7
authored
Sep 02, 2007
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding functionality to testrunnner to spscify both group name and classname on the command line
parent
810b1d66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
run.php
tests/run.php
+12
-9
No files found.
tests/run.php
View file @
42e76aa7
...
@@ -341,7 +341,7 @@ $test->addTestCase(new Doctrine_Template_TestCase());
...
@@ -341,7 +341,7 @@ $test->addTestCase(new Doctrine_Template_TestCase());
$test->addTestCase(new Doctrine_Import_Builder_TestCase());
$test->addTestCase(new Doctrine_Import_Builder_TestCase());
$test->addTestCase(new Doctrine_Search_TestCase());
$test->addTestCase(new Doctrine_Search_TestCase());
*/
*/
//$test->addTestCase(new Doctrine_IntegrityAction_TestCase());
//$test->addTestCase(new Doctrine_IntegrityAction_TestCase());
//$test->addTestCase(new Doctrine_AuditLog_TestCase());
//$test->addTestCase(new Doctrine_AuditLog_TestCase());
...
@@ -377,7 +377,7 @@ class CliReporter extends HtmlReporter{
...
@@ -377,7 +377,7 @@ class CliReporter extends HtmlReporter{
class
MyReporter
extends
HtmlReporter
{
class
MyReporter
extends
HtmlReporter
{
public
function
paintHeader
()
{
public
function
paintHeader
()
{
?>
?>
<html>
<html>
<head>
<head>
<title>
Doctrine Unit Tests
</title>
<title>
Doctrine Unit Tests
</title>
...
@@ -419,28 +419,31 @@ class MyReporter extends HtmlReporter {
...
@@ -419,28 +419,31 @@ class MyReporter extends HtmlReporter {
if
(
PHP_SAPI
===
"cli"
)
{
if
(
PHP_SAPI
===
"cli"
)
{
$reporter
=
new
CliReporter
();
$reporter
=
new
CliReporter
();
}
else
{
}
else
{
$reporter
=
new
MyReporter
();
$reporter
=
new
MyReporter
();
}
}
$argv
=
$_SERVER
[
"argv"
];
$argv
=
$_SERVER
[
"argv"
];
$coverage
=
false
;
array_shift
(
$argv
);
array_shift
(
$argv
);
$coverage
=
false
;
if
(
isset
(
$argv
[
0
])
&&
$argv
[
0
]
==
"coverage"
){
if
(
isset
(
$argv
[
0
])
&&
$argv
[
0
]
==
"coverage"
){
array_shift
(
$argv
);
array_shift
(
$argv
);
$coverage
=
true
;
$coverage
=
true
;
}
}
if
(
!
empty
(
$argv
))
{
if
(
!
empty
(
$argv
))
{
$testGroup
=
new
GroupTest
(
"Custom"
);
$testGroup
=
new
GroupTest
(
"Custom"
);
foreach
(
$argv
as
$group
)
{
foreach
(
$argv
as
$group
)
{
if
(
!
isset
(
$$group
))
{
if
(
!
isset
(
$$group
))
{
if
(
class_exists
(
$group
))
{
$testGroup
->
addTestCase
(
new
$group
);
}
die
(
$group
.
" is not a valid group of tests
\n
"
);
die
(
$group
.
" is not a valid group of tests
\n
"
);
}
}
$testGroup
->
addTestCase
(
$$group
);
$testGroup
->
addTestCase
(
$$group
);
}
}
}
else
{
}
else
{
$testGroup
=
$test
;
$testGroup
=
$test
;
}
}
if
(
$coverage
)
{
if
(
$coverage
)
{
xdebug_start_code_coverage
(
XDEBUG_CC_UNUSED
|
XDEBUG_CC_DEAD_CODE
);
xdebug_start_code_coverage
(
XDEBUG_CC_UNUSED
|
XDEBUG_CC_DEAD_CODE
);
$testGroup
->
run
(
$reporter
);
$testGroup
->
run
(
$reporter
);
...
...
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