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
92e52488
Commit
92e52488
authored
Sep 02, 2007
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed very simple support for subGrouping in tests
parent
63cba020
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
Test.php
tests/Test.php
+9
-2
NjeroTestCase.php
tests/Ticket/NjeroTestCase.php
+1
-0
run.php
tests/run.php
+3
-5
No files found.
tests/Test.php
View file @
92e52488
...
...
@@ -12,8 +12,13 @@ class GroupTest extends UnitTestCase
public
function
addTestCase
(
UnitTestCase
$testCase
)
{
$this
->
_testCases
[]
=
$testCase
;
if
(
$testCase
instanceOf
GroupTest
)
{
$this
->
_testCases
=
array_merge
(
$this
->
_testCases
,
$testCase
->
getTestCases
());
}
else
{
$this
->
_testCases
[
spl_object_hash
(
$testCase
)]
=
$testCase
;
}
}
public
function
run
(
HtmlReporter
$reporter
)
{
...
...
@@ -41,7 +46,9 @@ class GroupTest extends UnitTestCase
return
count
(
$this
->
_testCases
);
}
public
function
getTestCases
(){
return
$this
->
_testCases
;
}
}
class
HtmlReporter
{
...
...
tests/Ticket/NjeroTestCase.php
View file @
92e52488
...
...
@@ -84,3 +84,4 @@ class Doctrine_Ticket_Njero_TestCase extends Doctrine_UnitTestCase
#echo "Values " . serialize(array($c, $c2, $c3));
}
}
tests/run.php
View file @
92e52488
...
...
@@ -69,12 +69,10 @@ error_reporting(E_ALL | E_STRICT);
$test
=
new
GroupTest
(
'Doctrine Framework Unit Tests'
);
// DATABASE ABSTRACTION tests
//TICKET test cases
$test
->
addTestCase
(
new
Doctrine_Ticket_Njero_TestCase
());
$tickets
=
new
GroupTest
(
'Tickets tests'
);
$tickets
->
addTestCase
(
new
Doctrine_Ticket_Njero_TestCase
());
$test
->
addTestCase
(
$tickets
);
// Connection drivers (not yet fully tested)
$test
->
addTestCase
(
new
Doctrine_Connection_Pgsql_TestCase
());
...
...
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