File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1313
1414use Doctrine \Common \Annotations \AnnotationRegistry ;
1515use PHPUnit \Framework \AssertionFailedError ;
16+ use PHPUnit \Framework \DataProviderTestSuite ;
1617use PHPUnit \Framework \RiskyTestError ;
1718use PHPUnit \Framework \TestCase ;
1819use PHPUnit \Framework \TestSuite ;
@@ -196,7 +197,13 @@ public function startTestSuite($suite)
196197 public function addSkippedTest ($ test , \Exception $ e , $ time )
197198 {
198199 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+ }
200207 }
201208 }
202209
You can’t perform that action at this time.
0 commit comments