X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tools%2Fscripts%2Fphpunit-ls;h=8e330c9f4a99db5b4e5bd0d1891fb357da75b692;hb=b94eea5170f9b25e817067941198129b5de3224c;hp=cc617906a8fd8516717b87cd3055ffb2ae5aca7f;hpb=ffae152baa52f9744ee875f8417d5e2650a9135e;p=civicrm-core.git diff --git a/tools/scripts/phpunit-ls b/tools/scripts/phpunit-ls index cc617906a8..8e330c9f4a 100755 --- a/tools/scripts/phpunit-ls +++ b/tools/scripts/phpunit-ls @@ -9,9 +9,12 @@ if (!class_exists('PHPUnit_Framework_TestCase')) { // but the scanner will try to read metadata about our test-classes, and // that requires having the parent-classes defined. + // Note: Use eval() to prevent IDE scanners from tripping up on this. + eval(' class PHPUnit_Framework_TestCase {} class PHPUnit_Extensions_Database_TestCase {} class PHPUnit_Extensions_SeleniumTestCase {} + '); } \Civi\CiUtil\Command\LsCommand::main($argv); \ No newline at end of file