Project

General

Profile

Download (610 Bytes) Statistics
| Branch: | Tag: | Revision:
1 6657531f Andreas Kohlbecker
<?php
2
3
if(empty($_ENV['LD_LIBRARY_PATH'])){
4
  print('environment variable "LD_LIBRARY_PATH" should contain the path to the php executables.');
5
  exit(-1);
6
}
7
8
$php_bin= $_ENV['LD_LIBRARY_PATH'];
9
10
// assemble the required command arguments for to be delegated to phpunit
11
// we have to skip the first arguemnt since this is containing this very
12
// script!
13
$args = $GLOBALS['argv'];
14
array_shift($args);
15
$arg_str = implode(' ', $args);
16
17
// execute phpunit, we are using here the backtick operator:
18
// see http://php.net/manual/language.operators.execution.php
19
$execute = `$php_bin/phpunit $arg_str`;
20
echo $execute;