X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tools%2Fscripts%2Fphpunit-ls;h=0e5ff4bb5a8167750841e3eb486cbf4ffa0ee7ce;hb=e93a81422ed0d9d7310abec4d99793e36b5a7847;hp=cc617906a8fd8516717b87cd3055ffb2ae5aca7f;hpb=e68d4035151c218b5e504883725fecd62eaea4ac;p=civicrm-core.git diff --git a/tools/scripts/phpunit-ls b/tools/scripts/phpunit-ls index cc617906a8..0e5ff4bb5a 100755 --- a/tools/scripts/phpunit-ls +++ b/tools/scripts/phpunit-ls @@ -9,9 +9,11 @@ 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 +\Civi\CiUtil\Command\LsCommand::main($argv);