Skip to content

Commit

Permalink
Fix for #2922
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos authored and sebastianbergmann committed Dec 17, 2017
1 parent 58cc67d commit 8c174fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Framework/TestSuite.php
Expand Up @@ -348,7 +348,7 @@ public function addTestFile($filename)
}

foreach ($newClasses as $className) {
if ($className === 'PHPUnit_Framework_TestSuite_DataProvider') {
if (strpos($className, 'PHPUnit_Framework') === 0) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/_files/DataProviderIssue2922/FirstTest.php
Expand Up @@ -19,6 +19,6 @@ public function testFirst($x)

public function provide()
{
throw new \FooException();
throw new \Exception();
}
}

0 comments on commit 8c174fb

Please sign in to comment.