Open Journal Systems  3.3.0
phpunit.php
1 #!/usr/bin/env php
2 <?php
14 // This script may not be executed remotely.
15 if (isset($_SERVER['SERVER_NAME'])) {
16  die('This script can only be executed from the command-line');
17 }
18 
19 if (extension_loaded('xdebug')) {
20  xdebug_disable();
21 }
22 
23 define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
24 
25 require 'PHPUnit' . DIRECTORY_SEPARATOR . 'Autoload.php';
26 
27 PHPUnit_TextUI_Command::main();