Commit | Line | Data |
---|---|---|
f03dc6b0 TO |
1 | #!/usr/bin/env php |
2 | <?php | |
fef71e55 | 3 | |
f03dc6b0 TO |
4 | require_once dirname(dirname(__DIR__)) . '/tests/phpunit/CiviTest/bootstrap.php'; |
5 | error_reporting(E_ALL); | |
fef71e55 TO |
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 | ||
3e80ffc6 TO |
12 | // Note: Use eval() to prevent IDE scanners from tripping up on this. |
13 | eval(' | |
fef71e55 | 14 | class PHPUnit_Framework_TestCase {} |
fef71e55 | 15 | class PHPUnit_Extensions_SeleniumTestCase {} |
1d1aae93 | 16 | '); |
fef71e55 TO |
17 | } |
18 | ||
e64b8b49 | 19 | \Civi\CiUtil\Command\LsCommand::main($argv); |