Skip to content

Commit

Permalink
Merge pull request #9535 from totten/master-phpunit-phpstorm
Browse files Browse the repository at this point in the history
tools/scripts/phpunit-ls - Fix PhpStorm lookup of PHPUnit_Framework_TestCase
  • Loading branch information
eileenmcnaughton authored Dec 19, 2016
2 parents b74fe88 + 3e80ffc commit bfee51f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/scripts/phpunit-ls
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit bfee51f

Please sign in to comment.