Merge pull request #11086 from agileware/CRM-21277
[civicrm-core.git] / tools / scripts / phpunit-ls
index cc617906a8fd8516717b87cd3055ffb2ae5aca7f..8e330c9f4a99db5b4e5bd0d1891fb357da75b692 100755 (executable)
@@ -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