Pre-register methodExists hook

Fixes #29
This commit is contained in:
Matthew Brown 2019-04-27 16:15:45 -04:00 committed by GitHub
parent 902dadb745
commit fdd731151a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,12 @@ class TestCaseHandler implements
}
$method_storage->suppressed_issues[] = 'PossiblyUnusedMethod';
$codebase->methodExists(
$declaring_method_id,
null,
'PHPUnit\Framework\TestSuite::run',
'/vendor/phpunit/phpunit/src/Framework/TestSuite.php'
);
if (!isset($specials['dataProvider'])) {
continue;