When using PhpStorm, code completion doesn't work smoothly on classes which
extend `PHPUnit_Framework_TestCase` because there are two copies: the real
copy and then a placeholder class used by `tools/scripts/phpunit-ls`.
Wrapping the placeholder copy in `eval()` prevents PhpStorm from
identifying.
// 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