Merge pull request #7797 from JKingsnorth/CRM-17977
[civicrm-core.git] / tools / scripts / phpunit-ls
1 #!/usr/bin/env php
2 <?php
3
4 require_once dirname(dirname(__DIR__)) . '/tests/phpunit/CiviTest/bootstrap.php';
5 error_reporting(E_ALL);
6
7 if (!class_exists('PHPUnit_Framework_TestCase')) {
8 // Oooph. PHPUnit isn't available, and we don't really need its services,
9 // but the scanner will try to read metadata about our test-classes, and
10 // that requires having the parent-classes defined.
11
12 class PHPUnit_Framework_TestCase {}
13 class PHPUnit_Extensions_Database_TestCase {}
14 class PHPUnit_Extensions_SeleniumTestCase {}
15 }
16
17 \Civi\CiUtil\Command\LsCommand::main($argv);