File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use Doctrine \Common \Annotations \AnnotationRegistry ;
15
15
use PHPUnit \Framework \AssertionFailedError ;
16
+ use PHPUnit \Framework \DataProviderTestSuite ;
16
17
use PHPUnit \Framework \RiskyTestError ;
17
18
use PHPUnit \Framework \TestCase ;
18
19
use PHPUnit \Framework \TestSuite ;
@@ -196,7 +197,13 @@ public function startTestSuite($suite)
196
197
public function addSkippedTest ($ test , \Exception $ e , $ time )
197
198
{
198
199
if (0 < $ this ->state ) {
199
- $ this ->isSkipped [\get_class ($ test )][$ test ->getName ()] = 1 ;
200
+ if ($ test instanceof DataProviderTestSuite) {
201
+ foreach ($ test ->tests () as $ testWithDataProvider ) {
202
+ $ this ->isSkipped [\get_class ($ testWithDataProvider )][$ testWithDataProvider ->getName ()] = 1 ;
203
+ }
204
+ } else {
205
+ $ this ->isSkipped [\get_class ($ test )][$ test ->getName ()] = 1 ;
206
+ }
200
207
}
201
208
}
202
209
You can’t perform that action at this time.
0 commit comments