From fdd731151a34f59890198407fb74264604ab4eef Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Sat, 27 Apr 2019 16:15:45 -0400 Subject: [PATCH] Pre-register methodExists hook Fixes #29 --- hooks/TestCaseHandler.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hooks/TestCaseHandler.php b/hooks/TestCaseHandler.php index c0dd3e0..7751611 100644 --- a/hooks/TestCaseHandler.php +++ b/hooks/TestCaseHandler.php @@ -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;