Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EcomDev_PHPUnit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open
EcomDev_PHPUnit
Commits
af844fb1
Commit
af844fb1
authored
Mar 04, 2014
by
Fabrizio Branca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#179: Enabling group annotation on data provider
parent
bfa5970e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
app/code/community/EcomDev/PHPUnit/Test/Suite/Group.php
app/code/community/EcomDev/PHPUnit/Test/Suite/Group.php
+11
-2
No files found.
app/code/community/EcomDev/PHPUnit/Test/Suite/Group.php
View file @
af844fb1
...
@@ -68,9 +68,18 @@ class EcomDev_PHPUnit_Test_Suite_Group extends PHPUnit_Framework_TestSuite
...
@@ -68,9 +68,18 @@ class EcomDev_PHPUnit_Test_Suite_Group extends PHPUnit_Framework_TestSuite
* impossibility for specifying group by parent test case
* impossibility for specifying group by parent test case
* Because it is a very dirty hack :(
* Because it is a very dirty hack :(
**/
**/
$testGroups
=
array
();
$testGroups
=
EcomDev_Utils_Reflection
::
getRestrictedPropertyValue
(
$test
,
'groups'
);
foreach
(
$groups
as
$group
)
{
foreach
(
$groups
as
$group
)
{
if
(
!
isset
(
$testGroups
[
$group
]))
{
$testGroups
[
$group
]
=
$test
->
tests
();
$testGroups
[
$group
]
=
$test
->
tests
();
}
else
{
foreach
(
$test
->
tests
()
as
$subTest
)
{
if
(
!
in_array
(
$subTest
,
$testGroups
[
$group
],
true
))
{
$testGroups
[
$group
][]
=
$subTest
;
}
}
}
}
}
EcomDev_Utils_Reflection
::
setRestrictedPropertyValue
(
EcomDev_Utils_Reflection
::
setRestrictedPropertyValue
(
...
...
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